Makefile (512B)
1 CC=clang 2 UTILS=../utils/reading.o 3 INCLUDES=-I../utils 4 5 all: utils common.o uppga uppgb uppgc 6 7 common.o: common.c common.h 8 $(CC) $(CFLAGS) -c common.c $(INCLUDES) 9 10 uppga: $(UTILS) common.o uppga.c 11 $(CC) -Wall -o uppga uppga.c common.o $(UTILS) $(INCLUDES) 12 13 uppgb: $(UTILS) common.o uppgb.c 14 $(CC) -Wall -o uppgb uppgb.c common.o $(UTILS) $(INCLUDES) 15 16 uppgc: $(UTILS) common.o uppgc.c 17 $(CC) -O3 -o uppgc uppgc.c common.o $(UTILS) $(INCLUDES) 18 19 utils: 20 make -C ../utils 21 22 clean: 23 rm -rf common.o uppga uppgb uppgc