project_files/Android-build/Makefile.android
branchhedgeroid
changeset 5381 8f95038f3f75
parent 5379 4ed99dc92763
child 5383 cb217271f344
equal deleted inserted replaced
5379:4ed99dc92763 5381:8f95038f3f75
     1 #USER DEFINED
       
     2 FPC_DIR=/home/richard/SoftDev/fpc-2.4.4
       
     3 ANDROID_NDK=/home/richard/SoftDev/android/android-ndk-r5b
       
     4 ANDROID_SDK=/home/richard/SoftDev/android/android-sdk-linux_86
       
     5 #END USER DEFINED
       
     6 
       
     7 SDL_ANDROID_DIR=./SDL-android-project
       
     8 ANDROID_API_LVL=5
       
     9 
       
    10 PPCROSSARM=$(FPC_DIR)/compiler/ppcrossarm
       
    11 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS -a- 
       
    12 PPCROSSARM_INCLUDES= \
       
    13 	-FD$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \
       
    14 	-Fu$(FPC_DIR)/rtl/units/arm-linux \
       
    15 	-Fl$(ANDROID_NDK)/platforms/android-$(ANDROID_API_LVL)/arch-arm/usr/lib \
       
    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/ \
       
    18 #LINKERFLAGS= -k"--static"
       
    19 FPC_DEFINES=-dandroid -darm
       
    20 
       
    21 
       
    22 all:
       
    23 	-mkdir out
       
    24 	$(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas
       
    25 	cp out/libhwengine.so SDL-android-project/libs/armeabi
       
    26 clean:  
       
    27 	rm out/*