Makefile (408B)
1 CC=clang 2 UTILS=../utils/reading.o 3 INCLUDES=-I../utils 4 5 all: utils common.o uppga uppgb 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 utils: 17 make -C ../utils 18 19 clean: 20 rm -rf common.o uppga uppgb