CC ?= clang
CFLAGS = -O0 -g -Wall -Wextra
.PHONY: all
all: day_1 day_2
clean:
rm -rf *.o
rm -rf day_1
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
day_1: day_1.o
$(CC) -o $@ $^
./day_1 day_1.in
day_2: day_2.o
./day_2 day_2.in