change Makefile
This commit is contained in:
parent
6ffe18f36a
commit
c1e5e5fb19
4 changed files with 198 additions and 91 deletions
18
2025.05.02/dist/Krivoruchenko_SK/Makefile
vendored
18
2025.05.02/dist/Krivoruchenko_SK/Makefile
vendored
|
|
@ -1,14 +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
|
||||
|
||||
%.out: %.o solve.o init_f.o
|
||||
gcc $(FLAGS) $^ -o $@ -lm
|
||||
OBJ_COMMON = solve.o init_f.o polynom.o array_io.o
|
||||
|
||||
NUMS = 1 2 3 4 5 6 7 8 9
|
||||
|
||||
OUTS = $(foreach n,$(NUMS),$(shell printf "a%02d.out\n" "$(n)"))
|
||||
|
||||
all: $(OUTS)
|
||||
|
||||
%.o: %.c
|
||||
gcc -c $(FLAGS) $<
|
||||
gcc -c $(FLAGS) $<
|
||||
|
||||
all: a01.out a02.out a03.out a04.out a07.out a08.out a09.out
|
||||
|
||||
solve.o: solve.c solve.h
|
||||
init_f.o: init_f.c init_f.h
|
||||
a%.out: a%.o $(OBJ_COMMON)
|
||||
gcc $(FLAGS) $^ -o $@ -lm
|
||||
|
||||
clean:
|
||||
rm -f *.o *.out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue