Add dist and change make_dist

This commit is contained in:
AZEN-SGG 2025-05-19 20:33:04 +03:00
parent a5ffe19dd8
commit 50e9bb6d59
31 changed files with 996 additions and 1 deletions

View file

@ -0,0 +1,18 @@
FLAGS = -fstack-protector-all -W -Wall -Wextra -Wunused -Wcast-align -Werror -pedantic -pedantic-errors -Wfloat-equal -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Wformat=1 -Wwrite-strings -Wcast-align -Wno-long-long -std=gnu99 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wdeclaration-after-statement -Wbad-function-cast -Wnested-externs -O3
OBJ_COMMON = io_node.o
NUMS = 1 2 3 4 5 6 7 8 9 10 11 12
OUTS = $(foreach n,$(NUMS),$(shell printf "a%02d.out\n" "$(n)"))
all: $(OUTS)
%.o: %.c
gcc -c $(FLAGS) $<
a%.out: main_%.o solve_%.o $(OBJ_COMMON)
gcc $(FLAGS) $^ -o $@ -lm
clean:
rm -f *.o *.out