aoc_2024/Makefile

17 lines
189 B
Makefile

CC ?= clang
CFLAGS = -O0 -g -Wall -Wextra
.PHONY: all
all: day_1
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