Files
aoc2025/Makefile
2025-12-03 18:40:18 -06:00

16 lines
384 B
Makefile

FILES = $(wildcard ./*)
SRCS = $(filter %.c,$(FILES))
BINS = $(SRCS:%.c=%.elf)
CFLAGS = -Wall -Werror -pedantic -Wno-unused -D_GNU_SOURCE -std=gnu2y\
-O3 -g -Ttext=C475000 -static -nostartfiles -fno-stack-protector\
-march=x86-64 -msse2 -msse3 -mssse3 -mpclmul -mpopcnt -madx -mbmi2 -mrdrnd -mrdseed
all: $(BINS)
%.elf: %.c
gcc-tree -o $@ $(CFLAGS) $<
clean:
rm ./*.elf