2015-12-02 00:38:12 +00:00
|
|
|
src=./../../Common
|
|
|
|
obj=./Common
|
|
|
|
|
|
|
|
mkdir -p $obj
|
|
|
|
|
|
|
|
FLAGS_x86="\
|
2016-04-28 21:28:48 +00:00
|
|
|
-I$src/.. \
|
2015-12-02 00:38:12 +00:00
|
|
|
-S \
|
2016-02-06 10:36:44 +00:00
|
|
|
-fPIC \
|
2015-12-02 00:38:12 +00:00
|
|
|
-masm=intel \
|
|
|
|
-march=native \
|
|
|
|
-Os"
|
|
|
|
|
|
|
|
C_FLAGS=$FLAGS_x86
|
|
|
|
|
|
|
|
CC=g++
|
|
|
|
AS=as
|
|
|
|
|
|
|
|
echo Compiling common library sources for Project64...
|
|
|
|
$CC -o $obj/CriticalSection.asm $src/CriticalSection.cpp $C_FLAGS
|
2015-12-04 20:42:53 +00:00
|
|
|
$CC -o $obj/FileClass.asm $src/FileClass.cpp $C_FLAGS
|
|
|
|
$CC -o $obj/IniFileClass.asm $src/IniFileClass.cpp $C_FLAGS
|
|
|
|
$CC -o $obj/LogClass.asm $src/LogClass.cpp $C_FLAGS
|
2015-12-02 00:38:12 +00:00
|
|
|
$CC -o $obj/md5.asm $src/md5.cpp $C_FLAGS
|
2016-04-28 21:16:38 +00:00
|
|
|
$CC -o $obj/MemoryManagement.asm $src/MemoryManagement.cpp $C_FLAGS
|
2015-12-02 00:38:12 +00:00
|
|
|
$CC -o $obj/MemTest.asm $src/MemTest.cpp $C_FLAGS
|
|
|
|
$CC -o $obj/path.asm $src/path.cpp $C_FLAGS
|
2016-04-28 21:18:29 +00:00
|
|
|
$CC -o $obj/Platform.asm $src/Platform.cpp $C_FLAGS
|
2017-11-05 23:59:25 +00:00
|
|
|
$CC -o $obj/Random.asm $src/Random.cpp $C_FLAGS
|
2015-12-04 20:42:53 +00:00
|
|
|
$CC -o $obj/stdstring.asm $src/StdString.cpp $C_FLAGS
|
2015-12-02 00:38:12 +00:00
|
|
|
$CC -o $obj/SyncEvent.asm $src/SyncEvent.cpp $C_FLAGS
|
2016-04-28 21:21:37 +00:00
|
|
|
$CC -o $obj/DateTimeClass.asm $src/DateTimeClass.cpp $C_FLAGS
|
2016-04-28 21:23:40 +00:00
|
|
|
$CC -o $obj/Thread.asm $src/Thread.cpp $C_FLAGS
|
2015-12-02 00:38:12 +00:00
|
|
|
$CC -o $obj/Trace.asm $src/Trace.cpp $C_FLAGS
|
|
|
|
$CC -o $obj/Util.asm $src/Util.cpp $C_FLAGS
|
|
|
|
|
|
|
|
echo Assembling common library sources...
|
|
|
|
$AS -o $obj/CriticalSection.o $obj/CriticalSection.asm
|
|
|
|
$AS -o $obj/FileClass.o $obj/FileClass.asm
|
|
|
|
$AS -o $obj/IniFileClass.o $obj/IniFileClass.asm
|
|
|
|
$AS -o $obj/LogClass.o $obj/LogClass.asm
|
|
|
|
$AS -o $obj/md5.o $obj/md5.asm
|
2016-04-28 21:16:38 +00:00
|
|
|
$AS -o $obj/MemoryManagement.o $obj/MemoryManagement.asm
|
2015-12-02 00:38:12 +00:00
|
|
|
$AS -o $obj/MemTest.o $obj/MemTest.asm
|
|
|
|
$AS -o $obj/path.o $obj/path.asm
|
2016-04-28 21:18:29 +00:00
|
|
|
$AS -o $obj/Platform.o $obj/Platform.asm
|
2017-11-05 23:59:25 +00:00
|
|
|
$AS -o $obj/Random.o $obj/Random.asm
|
2015-12-02 00:38:12 +00:00
|
|
|
$AS -o $obj/stdstring.o $obj/stdstring.asm
|
|
|
|
$AS -o $obj/SyncEvent.o $obj/SyncEvent.asm
|
2016-04-28 21:21:37 +00:00
|
|
|
$AS -o $obj/DateTimeClass.o $obj/DateTimeClass.asm
|
2016-04-28 21:23:40 +00:00
|
|
|
$AS -o $obj/Thread.o $obj/Thread.asm
|
2015-12-02 00:38:12 +00:00
|
|
|
$AS -o $obj/Trace.o $obj/Trace.asm
|
|
|
|
$AS -o $obj/Util.o $obj/Util.asm
|
|
|
|
|
2016-02-05 08:32:43 +00:00
|
|
|
OBJ_LIST="\
|
2015-12-02 00:38:12 +00:00
|
|
|
$obj/Util.o \
|
|
|
|
$obj/Trace.o \
|
2016-04-28 21:23:40 +00:00
|
|
|
$obj/Thread.o \
|
2016-04-28 21:21:37 +00:00
|
|
|
$obj/DateTimeClass.o \
|
2015-12-02 00:38:12 +00:00
|
|
|
$obj/SyncEvent.o \
|
|
|
|
$obj/stdstring.o \
|
2017-11-05 23:59:25 +00:00
|
|
|
$obj/Random.o \
|
2016-04-28 21:18:29 +00:00
|
|
|
$obj/Platform.o \
|
2015-12-02 00:38:12 +00:00
|
|
|
$obj/path.o \
|
|
|
|
$obj/MemTest.o \
|
2016-04-28 21:16:38 +00:00
|
|
|
$obj/MemoryManagement.o \
|
2015-12-02 00:38:12 +00:00
|
|
|
$obj/md5.o \
|
|
|
|
$obj/LogClass.o \
|
|
|
|
$obj/IniFileClass.o \
|
|
|
|
$obj/FileClass.o \
|
|
|
|
$obj/CriticalSection.o"
|
|
|
|
|
|
|
|
echo Linking static library objects for Common...
|
|
|
|
ar rcs $obj/libcommon.a $OBJ_LIST
|