-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·28 lines (21 loc) · 1.47 KB
/
build.sh
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
#!/bin/bash
if [ ! -d "build" ]; then
echo "Creating build directory..."
mkdir build
fi
SDL_VERSION_1="-lSDL -DUSE_SDL_1"
SDL_VERSION_2="-lSDL2 -DUSE_SDL_2"
API_GRAPHIC_LIBRARIES=${SDL_VERSION_2}
# gcc src/sample_fast_triangle.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_triangle.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_render_mesh.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_bezier.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_camera.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_joystick.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_game_engine_api.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_keyboard_events.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_mouse_events.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
gcc src/sample_plane_generator.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc src/sample_texture.c -o build/sample -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
# gcc games/bomberman.c -o build/bomberman -lm ${API_GRAPHIC_LIBRARIES} -O3 --pedantic -Wfatal-errors
echo "Compilation completed."