mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-25 08:48:54 -05:00
Update make.sh
This commit is contained in:
parent
4b560554ef
commit
2c36885b23
6
My_settings.h
Normal file
6
My_settings.h
Normal file
@ -0,0 +1,6 @@
|
||||
// Pokitto config required by PokittoLib
|
||||
|
||||
//#define PROJ_SHOW_FPS_COUNTER
|
||||
#define PROJ_SCREENMODE 13
|
||||
#define PROJ_MODE13 1
|
||||
#define PROJ_ENABLE_SOUND 1
|
34
make.sh
34
make.sh
@ -1,3 +1,35 @@
|
||||
# Build script for Anarch.
|
||||
# by drummyfish, released under CC0 1.0, public domain
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
clear; clear; g++ -x c -g -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -o game main.c -lSDL2 2>&1 >/dev/null && ./game
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "need a parameter (sdl, pokitto, gb, ...)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
clear; clear;
|
||||
|
||||
if [ $1 == "sdl" ]; then
|
||||
|
||||
# PC SDL build, requires:
|
||||
# - SDL2 (dev) package
|
||||
|
||||
g++ -x c -g -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers -o game main_sdl.c \
|
||||
-lSDL2 2>&1 >/dev/null && ./game
|
||||
elif [ $1 == "pokitto" ]; then
|
||||
|
||||
# Pokitto build, requires:
|
||||
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the
|
||||
# "Pokitto" subfolder of PokittoLib
|
||||
# - Pokitto Makefile
|
||||
# - GNU embedded toolchain, in this folder create a symlink named "gtc" to the
|
||||
# "bin" subfolder
|
||||
# - files like My_settings.h required by Pokitto
|
||||
|
||||
make
|
||||
./PokittoEmu BUILD/firmware.bin
|
||||
else
|
||||
echo "unknown parameter: $1"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user