BUT2/SCR/SCR2/TP01/ex1bis/Makefile

18 lines
244 B
Makefile
Raw Permalink Normal View History

2023-10-12 16:39:49 +02:00
CFLAGS := -Wall -g -O0
SRC=buf.c heap.c huge.c mmap.c null.c stack.c
DEPENDHELPERS=helpers.o
BINARIES=$(SRC:%.c=%)
%.o : %c
gcc -c $+
$(BINARIES): % : %.o $(DEPENDHELPERS)
gcc -o $@ $+
all : $(BINARIES)
clean:
rm -f *.o $(BINARIES)