diff options
author | Talha <talha@talhaamir.xyz> | 2024-03-12 03:51:22 +0500 |
---|---|---|
committer | Talha <talha@talhaamir.xyz> | 2024-03-12 03:51:22 +0500 |
commit | c30d924eb6352f76996e6523d04de152dd8f4e2e (patch) | |
tree | a0a48c9a3921a7f5c4cc96f9d86fdd1277d0d58a | |
parent | 538cb8303b5c7ad14f9a6417ff0ae716fcd06571 (diff) |
Added files for building on linux
-rwxr-xr-x | build.sh | 22 | ||||
-rwxr-xr-x | libs/SDL2/libSDL2.so | bin | 0 -> 11138720 bytes |
2 files changed, 22 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a888b43 --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +build_mode="debug" # temporary for now + +build_dir="build" +mkdir -p $build_dir + +include_path=include +include_opts="-I $include_path" + +files="main.c $include_path/glad/glad.c" +build_opts="$build_dir/main" + +lib_path="lib/SDL2" +link_opts="-L $lib_path -lSDL2" + +build_command="g++ -g -Og $include_opts $files $link_opts -o $build_opts" + +printf "Building your sdl2 project.\n\nThis is the build command for posteritys' sake:\n\n" +printf "$build_command\n\n" +$build_command +printf "Build Complete!\n" diff --git a/libs/SDL2/libSDL2.so b/libs/SDL2/libSDL2.so Binary files differnew file mode 100755 index 0000000..31b26b2 --- /dev/null +++ b/libs/SDL2/libSDL2.so |