aocc22

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

Makefile (302B)


      1 CC=clang
      2 UTILS=../utils/reading.o
      3 INCLUDES=-I../utils
      4 
      5 all: utils common.o uppga
      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 utils:
     14 	make -C ../utils
     15 
     16 clean:
     17 	rm -rf common.o uppga