9 -Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
9 -Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
10 -Fl${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \ |
10 -Fl${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \ |
11 #LINKERFLAGS= -k"--static" |
11 #LINKERFLAGS= -k"--static" |
12 FPC_DEFINES=-dandroid -darm |
12 FPC_DEFINES=-dandroid -darm |
13 |
13 |
14 |
14 all: install |
15 all: |
15 build: |
16 -${CMAKE_COMMAND} -E make_directory out |
16 -${CMAKE_COMMAND} -E make_directory out |
17 |
17 |
18 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 |
18 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 |
19 |
19 |
20 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas |
20 $(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas |
21 ${CMAKE_COMMAND} -E copy out/libhwengine.so SDL-android-project/libs/armeabi/ |
21 ${CMAKE_COMMAND} -E copy out/libhwengine.so SDL-android-project/libs/armeabi/ |
22 |
|
23 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
22 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
24 ${ANT} debug install -f $(SDL_ANDROID_DIR)/build.xml |
23 ${ANT} debug -f $(SDL_ANDROID_DIR)/build.xml |
|
24 install: build |
|
25 ${ANT} installd -f $(SDL_ANDROID_DIR)/build.xml |
|
26 |
25 clean: |
27 clean: |
26 ${CMAKE_COMMAND} -E remove_directory out |
28 ${CMAKE_COMMAND} -E remove_directory out |
27 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 clean |
29 ${ANDROID_NDK}/ndk-build -C $(SDL_ANDROID_DIR) -j 8 clean |
28 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |
30 ${ANT} clean -f $(SDL_ANDROID_DIR)/build.xml |