mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-31 11:29:52 +00:00
Added OPTS flag to identify GCJ compile flags.
This commit is contained in:
parent
8494c31989
commit
563ebe4593
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
APPLECOMMANDER_FILES=$(cd com; find . -name "*.java" -print | sed 's#^\./#com/#')
|
APPLECOMMANDER_FILES=$(cd com; find . -name "*.java" -print | sed 's#^\./#com/#')
|
||||||
|
|
||||||
|
OPTS="-static -O3 --no-bounds-checking -funroll-loops -finline-functions \
|
||||||
|
-fkeep-inline-functions -malign-double"
|
||||||
|
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
echo "** COMPILING **"
|
echo "** COMPILING **"
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
@ -10,7 +13,7 @@ for i in $APPLECOMMANDER_FILES
|
|||||||
do
|
do
|
||||||
OBJ_FILE=$(echo $i | sed 's/\//_/g' | sed 's/\.java$/\.o/')
|
OBJ_FILE=$(echo $i | sed 's/\//_/g' | sed 's/\.java$/\.o/')
|
||||||
echo Compiling $i to $OBJ_FILE
|
echo Compiling $i to $OBJ_FILE
|
||||||
gcj --classpath="swt.jar;AppleCommander.jar" -g0 -c -o $OBJ_FILE $i
|
gcj --classpath="swt.jar;AppleCommander.jar" $OPTS -g0 -c -o $OBJ_FILE $i
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
@ -31,7 +34,7 @@ echo "**********************************************"
|
|||||||
echo "** BUILD EXE **"
|
echo "** BUILD EXE **"
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
echo
|
echo
|
||||||
gcj -mwindows --classpath="swt.jar;AppleCommander.jar" \
|
gcj -mwindows --classpath="swt.jar;AppleCommander.jar" $OPTS \
|
||||||
--main=com.webcodepro.applecommander.ui.AppleCommander \
|
--main=com.webcodepro.applecommander.ui.AppleCommander \
|
||||||
-o AppleCommander *.o -L. -lswt
|
-o AppleCommander *.o -L. -lswt
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user