adventofcode/2023/d3/Makefile
2023-12-04 22:21:12 +01:00

21 lines
208 B
Makefile

.PHONY: clean, mrproper, run
CC = gcc
CFLAGS = -g -Wall
all: d3
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
d3: d3.o
$(CC) $(CFLAGS) -o $@ $+
clean:
rm -f *.o core.*
mrproper: clean
rm -f d3
run: d3
./$<