From fd4c2902d2ad94a49d0497b77233741e33038135 Mon Sep 17 00:00:00 2001 From: Date: Sat, 6 Feb 2016 17:35:50 -0500 Subject: [PATCH] [Settings] added working Unix build shell script --- Source/Script/Unix/settings.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 Source/Script/Unix/settings.sh diff --git a/Source/Script/Unix/settings.sh b/Source/Script/Unix/settings.sh new file mode 100755 index 000000000..14d4f452f --- /dev/null +++ b/Source/Script/Unix/settings.sh @@ -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