| 1 | #!/bin/bash |
| 2 | |
| 3 | rm release/other/pt2-clone &> /dev/null |
| 4 | |
| 5 | echo Compiling, please wait... |
| 6 | gcc -DNDEBUG src/gfx/*.c src/modloaders/*.c src/smploaders/*.c src/*.c -ffast-math -lSDL2 -lm -Wshadow -Winit-self -Wall -Wno-missing-field-initializers -Wno-unused-result -Wno-strict-aliasing -Wextra -Wunused -Wunreachable-code -Wno-stringop-overflow -march=native -mtune=native -O3 -o release/other/pt2-clone |
| 7 | rm src/gfx/*.o src/modloaders/*.o src/smploaders/*.o src/*.o &> /dev/null |
| 8 | |
| 9 | echo Done. The executable can be found in \'release/other\' if everything went well. |