cours_progra/bac2/os/chap2/Makefile

30 lines
359 B
Makefile
Raw Normal View History

2023-10-18 20:27:40 +02:00
.PHONY: clean, mrproper
CC = gcc
CFLAGS = -g -Wall
all: ex3 ex4 ex5 group
2023-10-18 20:27:40 +02:00
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
ex3: ex3.o
$(CC) $(CFLAGS) -o $@ $+
ex4: ex4.o
$(CC) $(CFLAGS) -o $@ $+
ex5: ex5.o
$(CC) $(CFLAGS) -o $@ $+
group: group.o
$(CC) $(CFLAGS) -o $@ $+
2023-10-18 20:27:40 +02:00
clean:
rm -f *.o core.*
mrproper: clean
rm -f ex3 ex4 ex5 group
2023-10-18 20:27:40 +02:00
run: group
./group