equal
deleted
inserted
replaced
6 |
6 |
7 SDL_ANDROID_DIR=./SDL-android-project |
7 SDL_ANDROID_DIR=./SDL-android-project |
8 ANDROID_API_LVL=5 |
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 -a- |
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 \ |
20 |
20 |
21 |
21 |
22 all: |
22 all: |
23 -mkdir out |
23 -mkdir out |
24 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas |
24 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas |
25 |
25 cp out/libhwengine.so SDL-android-project/libs/armeabi |
26 clean: |
26 clean: |
27 rm out/* |
27 rm out/* |