Fourth, fifth and sixth tasks are done
This commit is contained in:
parent
9adf0da496
commit
73c90df088
33 changed files with 760 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
FLAGS = -mfpmath=sse -fstack-protector-all -W -Wall -Wextra -Wunused \
|
||||
CFLAGS = -mfpmath=sse -fstack-protector-all -W -Wall -Wextra -Wunused \
|
||||
-Wempty-body -Wlogical-op -Wold-style-declaration -Wmissing-parameter-type \
|
||||
-Wignored-qualifiers -Winit-self -Wswitch-default -Wshadow -Wtype-limits \
|
||||
-Wignored-qualifiers -Winit-self -Wshadow -Wtype-limits \
|
||||
-Wpointer-arith -Wformat-security -Wmissing-format-attribute -Wformat=1 \
|
||||
-Wdeclaration-after-statement -Wbad-function-cast -Wnested-externs \
|
||||
-Wmissing-prototypes -Wmissing-declarations -Wold-style-definition \
|
||||
|
@ -8,14 +8,17 @@ FLAGS = -mfpmath=sse -fstack-protector-all -W -Wall -Wextra -Wunused \
|
|||
-Wwrite-strings -Wno-long-long -std=gnu99 -Wstrict-prototypes \
|
||||
-Wmissing-field-initializers -Wpointer-sign -O3
|
||||
|
||||
a03.exe: main.o array_io.o solve.o init_f.o
|
||||
gcc main.o solve.o array_io.o init_f.o -o a03.exe -lssp
|
||||
TARGET = a03.exe
|
||||
OBJ = main.o array_io.o solve.o init_f.o
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
gcc $(OBJ) -o $(TARGET) -lssp
|
||||
|
||||
main.o: main.c
|
||||
gcc $(CFLAGS) -c main.c
|
||||
|
||||
solve.o: solve.c
|
||||
gcc $(FLAGS) -c solve.c
|
||||
gcc $(CFLAGS) -c solve.c
|
||||
|
||||
array_io.o: array_io.c
|
||||
gcc $(CFLAGS) -c array_io.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue