summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build.c')
-rw-r--r--build.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/build.c b/build.c
index cd2d376..8f799b5 100644
--- a/build.c
+++ b/build.c
@@ -7,15 +7,15 @@
#include <string.h>
#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;
}