project_files/Android-build/Templates/Makefile.android
author Xeli
Wed, 29 Jun 2011 18:05:04 +0200
branchhedgeroid
changeset 5381 8f95038f3f75
child 6033 6bcc36225162
permissions -rw-r--r--
Removed protocol check, using CMake now to setup the building scripts using Templates/* removed old scripts

SDL_ANDROID_DIR=./SDL-android-project

PPCROSSARM=${FPC_DIR}/compiler/ppcrossarm
PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS -a- 
PPCROSSARM_INCLUDES= \
	-FD${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \
	-Fu${FPC_DIR}/rtl/units/arm-linux \
	-Fl${ANDROID_NDK}/platforms/android-${ANDROID_NDK_API_LVL}/arch-arm/usr/lib \
	-Fl$(SDL_ANDROID_DIR)/libs/armeabi \
	-Fl${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \
#LINKERFLAGS= -k"--static"
FPC_DEFINES=-dandroid -darm


all:
	-${CMAKE_COMMAND} -E make_directory out
	$(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../../hedgewars/hwLibrary.pas
	${CMAKE_COMMAND} -E copy out/libhwengine.so SDL-android-project/libs/armeabi/
clean:  
	${CMAKE_COMMAND} -E remove_directory out