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

30 lines
337 B
Makefile
Raw Normal View History

NAME := aoc
FMT := c
2023-12-03 16:47:20 +01:00
CC := cc
CC_OPTIONS := -g -Wall -Wextra -Werror
DBG := gdb
2023-12-03 16:47:20 +01:00
SRCD := src
BIND := out
SRCS := $(wildcard $(SRCD)/*.$(FMT))
BIN := $(BIND)/$(NAME)
2023-12-03 16:47:20 +01:00
all: $(BIND) $(BIN)
run: all
$(BIN)
debug: all
$(DBG) $(BIN)
2023-12-03 16:47:20 +01:00
$(BIND):
mkdir $@
$(BIN): $(SRCS)
$(CC) $(CC_OPTIONS) -o $@ $^
clean:
rm -f $(wildcard $(BIND)/*)