aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-07-14 17:25:04 +0200
committerMosder <xmosder12@gmail.com>2026-07-14 17:25:04 +0200
commit189fd56b24859a89d71899e070f885e93ffabd97 (patch)
tree41c1ed6470731a959d0168951b3c156071800ffa /Makefile
parentc7277e7654c0d8d0e7a4665373c0762c6e8a038d (diff)
feat: created converter from CSV files to a C header files containing static arrays. Used for creating ID to STR conversion for saturations and items.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e9cec60..ff12d96 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,15 @@ global: compile
local: compile
mv branal ${HOME}/.local/bin
-compile: structures utils parser capture analyzer
+compile: csv structures utils parser capture analyzer
$(CC) $(CFLAGS) -lpcap *.o main.c -o branal
rm *.o
+csv:
+ gcc csv_to_headers.c -o csv_to_headers
+ ./csv_to_headers
+ rm csv_to_headers
+
structures:
$(CC) $(CFLAGS) -c analyzer/structures/hashmap.c
$(CC) $(CFLAGS) -c analyzer/structures/heap.c
@@ -32,3 +37,4 @@ analyzer:
$(CC) $(CFLAGS) -c analyzer/analyzer.c
.PHONY: analyzer
+.PHONY: csv