aocc22

Advent of Code 2022
git clone git://www.tkruger.se/aocc22.git
Log | Files | Refs | README

Makefile (439B)


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