cours_progra/bac2/os/chap4/Makefile

28 lines
336 B
Makefile
Raw Normal View History

2023-12-21 23:39:12 +01:00
.PHONY: clean, mrproper, run
CC = gcc
CFLAGS = -g -Wall
exos = ex4 group
all: $(exos)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
ex1: ex1.o RingBuffer.o
$(CC) $(CFLAGS) -o $@ $+
ex%: ex%.o
$(CC) $(CFLAGS) -o $@ $+
group: group.o
$(CC) $(CFLAGS) -o $@ $+
clean:
rm -f *.o core.*
rm -f out group
rm -f ${exos}
run: group
./$<