Skip to content

Commit

Permalink
Who needs CMake when you have build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
schwalbe-t authored Aug 30, 2023
1 parent 7354f89 commit 8281cbe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

clear

mkdir release > /dev/null 2>&1

mkdir release/linux > /dev/null 2>&1
gcc src/*.c -o release/linux/silicon-runes -lm -O3

mkdir release/windows > /dev/null 2>&1
x86_64-w64-mingw32-gcc src/*.c -o release/windows/silicon-runes.exe -lm -O3

mkdir release/macosx > /dev/null 2>&1
export PATH="/home/devtaube/osxcross/target/bin:$PATH"
x86_64-apple-darwin14-clang -Wno-everything src/*.c -o release/macosx/silicon-runes -lm -O3
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

clear

mkdir out > /dev/null 2>&1
mkdir debug > /dev/null 2>&1

gcc -Wextra src/*.c -o out/silicon-runes -lm -O3 &&
gcc -Wextra src/*.c -o debug/silicon-runes -lm &&
out/silicon-runes

0 comments on commit 8281cbe

Please sign in to comment.