aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-07-14 11:42:13 +0200
committerMosder <xmosder12@gmail.com>2026-07-14 11:42:13 +0200
commit6df63e1db65f934f3a2a17b327380978debec20f (patch)
treeb171931c817e4ab437d56f1b0bf6eeadd22281fe
parent106e1f7a579a66c46cb68356f585917fe7883310 (diff)
feat: added gcc optimizations and stripping
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2455ece..c3bf663 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-iquote ./analyzer
+CFLAGS=-iquote ./analyzer -O2 -flto -s
global: compile
sudo mv branal /usr/bin
@@ -7,7 +7,7 @@ global: compile
local: compile
mv branal ${HOME}/.local/bin
-compile: structures utils capture analyzer parser
+compile: structures utils parser capture analyzer
$(CC) $(CFLAGS) -lpcap *.o main.c -o branal
rm *.o
@@ -21,14 +21,14 @@ utils:
$(CC) $(CFLAGS) -c analyzer/utils/tcp.c
$(CC) $(CFLAGS) -c analyzer/utils/tcp_seq_math.c
+parser:
+ $(CC) $(CFLAGS) -c analyzer/parser/parser.c
+ $(CC) $(CFLAGS) -c analyzer/parser/fight_results.c
+
capture:
$(CC) $(CFLAGS) -c analyzer/capture.c
analyzer:
$(CC) $(CFLAGS) -c analyzer/analyzer.c
-parser:
- $(CC) $(CFLAGS) -c analyzer/parser/parser.c
- $(CC) $(CFLAGS) -c analyzer/parser/fight_results.c
-
.PHONY: analyzer