-
Notifications
You must be signed in to change notification settings - Fork 0
/
cbuild.c
32 lines (24 loc) · 1.07 KB
/
cbuild.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#define EXTRA_COMPILE_FLAGS "-I/opt/homebrew/Cellar/raylib/4.5.0/include"
#define EXTRA_LINK_FLAGS "-L/opt/homebrew/Cellar/raylib/4.5.0/lib", "-lraylib"
// Arch Linux
// #define EXTRA_COMPILE_FLAGS "-I/usr/local/Cellar/raylib/4.2.0/include"
// #define EXTRA_LINK_FLAGS "-L/usr/local/Cellar/raylib/4.2.0/lib", "-lraylib"
// FreeBSD
#define EXTRA_COMPILE_FLAGS "-I/usr/local/include", "-D_THREAD_SAFE", "-pthread"
#define EXTRA_LINK_FLAGS "-L/usr/local/lib", "-lraylib"
//
// Static link for MacOS
//
// #define EXTRA_LINK_FLAGS \
// "-L/opt/homebrew/Cellar/raylib/4.5.0/lib", "-lraylib", "-framework", \
// "Cocoa", "-framework", "OpenGL", "-framework", "IOKit"
#define C_BUILD_IMPLEMENTATION
#include "cbuild.h"
int main(void) {
CB_setup_build_folder();
CB_setup_compiler();
CB_compile_and_build_executable("src/ball.c", "src/game.c", "src/player.c",
"src/scoreboard.c", "src/table.c",
"src/utils.c", "src/main.c", NULL);
}