AdventOfCode2025/Makefile

23 lines
378 B
Makefile
Raw Normal View History

2025-12-04 20:40:13 +00:00
# Advent of Code C Makefile
CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -g
SRCS = $(wildcard src/day*.c)
TARGETS = $(SRCS:src/%.c=build/%)
.PHONY: all
all: $(TARGETS)
@echo "Compilation complete. Executables: $(TARGETS)"
build/%: src/%.c
$(CC) $(CFLAGS) $< -o $@
.PHONY: clean
clean:
rm -f $(TARGETS)
@echo "Cleaned up all Advent of Code executables."
.PHONY: all clean