This commit is contained in:
2025-12-03 00:52:18 -06:00
parent 5d24720761
commit 06816c068c
5 changed files with 506 additions and 32 deletions

View File

@@ -1,4 +1,14 @@
all: day1
FILES = $(wildcard ./*)
SRCS = $(filter %.c,$(FILES))
BINS = $(SRCS:%.c=%.elf)
%: %.c
gcc-tree -o $@ -Wall -Werror -pedantic -D_GNU_SOURCE -std=gnu2y -O3 -g $<
CFLAGS = -Wall -Werror -pedantic -D_GNU_SOURCE -std=gnu2y -O3 -g -Wno-unused\
-nostartfiles -static -Ttext=C475000
all: $(BINS)
%.elf: %.c
gcc-tree -o $@ $(CFLAGS) $<
clean:
rm ./*.elf