-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
all: | ||
gcc main.c -Ofast -lm -lSDL2 -lGLESv2 -lEGL -o vox | ||
strip --strip-unneeded vox | ||
upx --lzma --best vox | ||
mkdir -p release | ||
|
||
run: all | ||
./vox | ||
gcc -DNO_COMPRESSION main.c -Ofast -lm -lSDL2 -lGLESv2 -lEGL -o release/vox | ||
strip --strip-unneeded release/vox | ||
upx --lzma --best release/vox | ||
|
||
sky: | ||
gcc -DSKYBLUE main.c -Ofast -lm -lSDL2 -lGLESv2 -lEGL -o voxsky | ||
strip --strip-unneeded voxsky | ||
upx --lzma --best voxsky | ||
gcc main.c -Ofast -lm -lz -lSDL2 -lGLESv2 -lEGL -o release/vox_compressed | ||
strip --strip-unneeded release/vox_compressed | ||
upx --lzma --best release/vox_compressed | ||
|
||
gcc -DNO_COMPRESSION -DSKYBLUE main.c -Ofast -lm -lSDL2 -lGLESv2 -lEGL -o release/voxsky | ||
strip --strip-unneeded release/voxsky | ||
upx --lzma --best release/voxsky | ||
|
||
gcc -DSKYBLUE main.c -Ofast -lm -lz -lSDL2 -lGLESv2 -lEGL -o release/voxsky_compressed | ||
strip --strip-unneeded release/voxsky_compressed | ||
upx --lzma --best release/voxsky_compressed | ||
|
||
test: | ||
gcc main.c -Ofast -lm -lz -lSDL2 -lGLESv2 -lEGL -o vox_test | ||
./vox_test | ||
|
||
clean: | ||
rm -r release |