Android-build/Makefile.android
branchhedgeroid
changeset 5293 8634c7f09372
child 5297 8315a70c35b6
equal deleted inserted replaced
5291:1f495f049fad 5293:8634c7f09372
       
     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 SDL_ANDROID_DIR=/home/richard/SoftDev/SDL-android-project
       
     6 ANDROID_API_LVL=8
       
     7 #	-FD/media/Storage2/CodeSourcery/bin \
       
     8 
       
     9 
       
    10 PPCROSSARM=$(FPC_DIR)/compiler/ppcrossarm
       
    11 PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS  
       
    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 	-Xr/media/Storage2/LG-Libs \
       
    19 #LINKERFLAGS= -k"--static"
       
    20 FPC_DEFINES=-dandroid -darm
       
    21 
       
    22 
       
    23 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
       
    27 	cp out/libhwengine.so /home/richard/SoftDev/SDL-android-project/libs/armeabi/libhwengine.so
       
    28 
       
    29 clean:  
       
    30 	rm out/*