From f8c0dc54e36cc201c657aa12e5a22029b092e1bc Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Mon, 13 Jul 2026 21:58:18 +0530 Subject: restructed all the files + uci done now also broke the symbol analyser in the process, i didn't help much, i had to pull out the pen & paper, but it made a cool graph never the less multithreading was a pain! but it got it in the end fixed the structs naming convention, if it's used outside by other files, it's typedeffed, otherwise it's not fixed the recursive imports issued i had in go_args*, where i was casting it to void* in uci to make it work now response.c doesn't deal with ipc, really happy with that change now every single thing has its own responsibility --- build.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build.c') diff --git a/build.c b/build.c index cd2d376..8f799b5 100644 --- a/build.c +++ b/build.c @@ -7,15 +7,15 @@ #include #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" #define IPC_O "output/ipc.o" +#define MAIN_O "output/main.o" + int status; #define RUN_CMD(...) do { \ @@ -113,8 +113,8 @@ int uci_mode(int run_mode) { } RUN_CMD({CC, "-c", "src/ipc.c", "-o", IPC_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}); + 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, "src/main.c", UCI_O, ENGINE_O, IPC_O, "-o", MAIN_O, NULL}); return status != 0; } -- cgit v1.2.3