[Settings] added working Unix build shell script

This commit is contained in:
2016-02-06 17:35:50 -05:00
parent 56ed3cbc66
commit fd4c2902d2
1 changed files with 29 additions and 0 deletions

29
Source/Script/Unix/settings.sh Executable file
View File

@ -0,0 +1,29 @@
src=./../../Settings
obj=./Settings
mkdir -p $obj
FLAGS_x86="\
-S \
-fPIC \
-I$src/.. \
-masm=intel \
-march=native \
-Os"
C_FLAGS=$FLAGS_x86
CC=g++
AS=as
echo Compiling settings library sources for Project64...
$CC -o $obj/Settings.asm $src/Settings.cpp $C_FLAGS
echo Assembling settings library sources...
$AS -o $obj/Settings.o $obj/Settings.asm
OBJ_LIST="\
$obj/Settings.o"
echo Linking static library objects for Settings...
ar rcs $obj/libsettings.a $OBJ_LIST