This commit is contained in:
Debucquoy
2023-12-21 23:39:12 +01:00
parent babed7eb09
commit df9e43e534
8 changed files with 256 additions and 0 deletions

27
bac2/os/chap4/Makefile Normal file
View File

@ -0,0 +1,27 @@
.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
./$<