diff options
| author | Mosder <xmosder12@gmail.com> | 2026-07-23 13:59:15 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-07-23 13:59:15 +0200 |
| commit | 05da5ef05778d0653685a20e9e5847b221a54f59 (patch) | |
| tree | 862c8534959fadb9a69278ea95bd4eeced0af4e8 /Makefile | |
| parent | 196a30821dd1d3459807ed7ad1f45ceda1fa5585 (diff) | |
refactor: generalized command parsing and moved it into a separate file
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 11 insertions, 17 deletions
@@ -10,16 +10,22 @@ local: compile debug: CFLAGS=-iquote ./analyzer -Og -g debug: global -compile: csv structures utils parser capture analyzer render +compile: csv_table_gen main_files structures utils parser $(CC) $(CFLAGS) -lpcap *.o main.c -o branal rm *.o -csv: - $(CC) $(CFLAGS) csv_to_headers.c -o csv_to_headers - ./csv_to_headers - rm csv_to_headers +csv_table_gen: + $(CC) $(CFLAGS) csv_table_gen.c -o csv_table_gen + ./csv_table_gen + rm csv_table_gen $(CC) $(CFLAGS) -c analyzer/csv/*.c +main_files: + $(CC) $(CFLAGS) -c analyzer/commands.c + $(CC) $(CFLAGS) -c analyzer/capture.c + $(CC) $(CFLAGS) -c analyzer/analyzer.c + $(CC) $(CFLAGS) -c analyzer/render.c + structures: $(CC) $(CFLAGS) -c analyzer/structures/hashmap.c $(CC) $(CFLAGS) -c analyzer/structures/heap.c @@ -35,15 +41,3 @@ parser: $(CC) $(CFLAGS) -c analyzer/parser/parser.c $(CC) $(CFLAGS) -c analyzer/parser/structs.c $(CC) $(CFLAGS) -c analyzer/parser/fight_results/fight_results.c - -capture: - $(CC) $(CFLAGS) -c analyzer/capture.c - -analyzer: - $(CC) $(CFLAGS) -c analyzer/analyzer.c - -render: - $(CC) $(CFLAGS) -c analyzer/render.c - -.PHONY: analyzer -.PHONY: csv |
