This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
aoc2023-day1/Makefile

22 lines
256 B
Makefile
Raw Permalink Normal View History

2023-12-03 16:47:20 +01:00
BIND := out
BIN := $(BIND)/aoc
2023-12-03 16:47:20 +01:00
2024-02-20 15:30:49 +01:00
.PHONY: all run debug clean
2023-12-03 16:47:20 +01:00
all: $(BIND) $(BIN)
run: all
$(BIN)
debug: all
gdb $(BIN)
clean:
rm -f -- $(wildcard $(BIND)/*)
2023-12-03 16:47:20 +01:00
$(BIND):
mkdir -p -- $@
2023-12-03 16:47:20 +01:00
$(BIN): $(wildcard src/*.c)
cc -g -Wall -Wextra -Werror -o $@ $^