1 #USER DEFINED |
1 #USER DEFINED |
2 FPC_DIR=/home/richard/SoftDev/fpc-2.4.4 |
2 FPC_DIR=/home/richard/SoftDev/fpc-2.4.4 |
3 ANDROID_NDK=/home/richard/SoftDev/android/android-ndk-r5b |
3 ANDROID_NDK=/home/richard/SoftDev/android/android-ndk-r5b |
4 ANDROID_SDK=/home/richard/SoftDev/android/android-sdk-linux_86 |
4 ANDROID_SDK=/home/richard/SoftDev/android/android-sdk-linux_86 |
5 SDL_ANDROID_DIR=/home/richard/SoftDev/SDL-android-project |
5 #END USER DEFINED |
6 ANDROID_API_LVL=8 |
|
7 # -FD/media/Storage2/CodeSourcery/bin \ |
|
8 |
6 |
|
7 SDL_ANDROID_DIR=./SDL-android-project |
|
8 ANDROID_API_LVL=5 |
9 |
9 |
10 PPCROSSARM=$(FPC_DIR)/compiler/ppcrossarm |
10 PPCROSSARM=$(FPC_DIR)/compiler/ppcrossarm |
11 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS |
11 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS |
12 PPCROSSARM_INCLUDES= \ |
12 PPCROSSARM_INCLUDES= \ |
13 -FD$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \ |
13 -FD$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \ |
14 -Fu$(FPC_DIR)/rtl/units/arm-linux \ |
14 -Fu$(FPC_DIR)/rtl/units/arm-linux \ |
15 -Fl$(ANDROID_NDK)/platforms/android-$(ANDROID_API_LVL)/arch-arm/usr/lib \ |
15 -Fl$(ANDROID_NDK)/platforms/android-$(ANDROID_API_LVL)/arch-arm/usr/lib \ |
16 -Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
16 -Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
17 -Fl$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \ |
17 -Fl$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \ |
18 -Xr/media/Storage2/LG-Libs \ |
|
19 #LINKERFLAGS= -k"--static" |
18 #LINKERFLAGS= -k"--static" |
20 FPC_DEFINES=-dandroid -darm |
19 FPC_DEFINES=-dandroid -darm |
21 |
20 |
22 |
21 |
23 all: |
22 all: |
24 -mkdir out |
|
25 # $(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-as -o libandroidprt0.so androidprt0.as |
|
26 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../hedgewars/hwLibrary.pas |
23 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../hedgewars/hwLibrary.pas |
27 cp out/libhwengine.so /home/richard/SoftDev/SDL-android-project/libs/armeabi/libhwengine.so |
|
28 |
24 |
29 clean: |
25 clean: |
30 rm out/* |
26 rm out/* |