From a14da2fe3864712dab4e7c4cfb5c323026d668de Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Fri, 10 Jul 2026 16:01:57 +0530 Subject: moving header files to include directory & moving resources in it's own directory i know currently there is race condition, but the code is getting too messy, i will continue to this after i make a vis tool to analyse how i should split up files & stuff the code rn needs intense restructing for it to make any more progress --- build.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'build.c') diff --git a/build.c b/build.c index 516c0ac..cd2d376 100644 --- a/build.c +++ b/build.c @@ -6,7 +6,11 @@ #include #include -#define CC "gcc"//, "-O3" +#define GLOBAL_INCLUDE "-Iinclude/" +#define ENGINE_INCLUDE "-Iinclude/engine" +#define UCI_INCLUDE "-Iinclude/uci" + +#define CC "gcc", "-fsanitize=address", "-g", GLOBAL_INCLUDE #define ENGINE_O "output/engine.o" #define UCI_O "output/uci.o" #define MAIN_O "output/main.o" @@ -109,8 +113,8 @@ int uci_mode(int run_mode) { } RUN_CMD({CC, "-c", "src/ipc.c", "-o", IPC_O, NULL}); - RUN_CMD({CC, "-c", "src/engine.c", "-o", ENGINE_O, NULL}); - RUN_CMD({CC, "-c", "src/uci.c", "-o", UCI_O, NULL}); + RUN_CMD({CC, ENGINE_INCLUDE, "-c", "src/engine.c", "-o", ENGINE_O, NULL}); + RUN_CMD({CC, UCI_INCLUDE, "-c", "src/uci.c", "-o", UCI_O, NULL}); RUN_CMD({CC, UCI_O, ENGINE_O, IPC_O, "-o", MAIN_O, NULL}); return status != 0; } -- cgit v1.2.3