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