AppleCommander/build/build-applecommander-mingw
2003-03-06 03:42:02 +00:00

40 lines
1.4 KiB
Bash

#!/bin/sh
#SWT_CLASSES=$(cd org; find . -name "*.class" -print | sed 's#^\./#org/#')
#for i in $SWT_CLASSES
#do
# OBJ_FILE=$(echo $i | sed 's/\//_/g' | sed 's/\.class$/\.o/')
# echo Compiling $i to $OBJ_FILE
# gcj -fjni -g0 -c -o $OBJ_FILE $i
#done
#gcj -c --resource=org.eclipse.swt.internal.SWTMessages \
# -o SWTMessages.o org/eclipse/swt/internal/SWTMessages.properties
APPLECOMMANDER_FILES=$(cd com; find . -name "*.java" -print | sed 's#^\./#com/#')
for i in $APPLECOMMANDER_FILES
do
OBJ_FILE=$(echo $i | sed 's/\//_/g' | sed 's/\.java$/\.o/')
echo Compiling $i to $OBJ_FILE
gcj --classpath="swt.jar;AppleCommander.jar" -g0 -c -o $OBJ_FILE $i
done
gcj -c --resource=com.webcodepro.applecommander.storage.FormattedDisk \
-o FormattedDisk.o com/webcodepro/applecommander/storage/AppleCommander-boot.dump
gcj -c --resource=com.webcodepro.applecommander.storage.ProdosFileEntry \
-o ProdosFileEntry.o com/webcodepro/applecommander/storage/ProdosFileTypes.properties
gcj -c --resource=com.webcodepro.applecommander.ui.swt.ImageManager \
-o ImageManager.o com/webcodepro/applecommander/ui/images/*.gif
#gcj -mwindows --classpath="swt.jar;AppleCommander.jar" \
# --main=com.webcodepro.applecommander.ui.swt.SwtAppleCommander \
# -o AppleCommander *.o -L. -lswt
gcj -mwindows --classpath="swt.jar;AppleCommander.jar" \
--main=com.webcodepro.applecommander.ui.AppleCommander \
-o AppleCommander *.o -L. -lswt
echo Done.