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

21 lines
256 B
Makefile

BIND := out
BIN := $(BIND)/aoc
.PHONY: all run debug clean
all: $(BIND) $(BIN)
run: all
$(BIN)
debug: all
gdb $(BIN)
$(BIND):
mkdir -p -- $@
$(BIN): $(wildcard src/*.c)
cc -g -Wall -Wextra -Werror -o $@ $^
clean:
rm -f -- $(wildcard $(BIND)/*)