Убрал утечку памяти

This commit is contained in:
AZEN-SGG 2024-11-27 19:02:11 +03:00
parent 673d0e250d
commit c6539e2868
4 changed files with 47 additions and 8 deletions

View file

@ -1,12 +1,43 @@
CFLAGS = -mfpmath=sse \
-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 \
-D_DEBUG -g \
-c
all: main.o seagwithsob.o tools.o
gcc main.o seagwithsob.o tools.o && rm *.o
./a.out
gcc main.o seagwithsob.o tools.o -lssp && del *.o
a.exe
main.o: main.c
gcc -c main.c
gcc $(CFLAGS) main.c
seagwithsob.o: seagwithsob.c
gcc -c seagwithsob.c
gcc $(CFLAGS) seagwithsob.c
tools.o: tools.c
gcc -c tools.c
gcc $(CFLAGS) tools.c