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