author | Xeli |
Wed, 22 Jun 2011 13:25:53 +0200 | |
branch | hedgeroid |
changeset 5293 | 8634c7f09372 |
child 5297 | 8315a70c35b6 |
permissions | -rw-r--r-- |
5293
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
1 |
#USER DEFINED |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
2 |
FPC_DIR=/home/richard/SoftDev/fpc-2.4.4 |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
3 |
ANDROID_NDK=/home/richard/SoftDev/android/android-ndk-r5b |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
4 |
ANDROID_SDK=/home/richard/SoftDev/android/android-sdk-linux_86 |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
5 |
SDL_ANDROID_DIR=/home/richard/SoftDev/SDL-android-project |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
6 |
ANDROID_API_LVL=8 |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
7 |
# -FD/media/Storage2/CodeSourcery/bin \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
8 |
|
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
9 |
|
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
10 |
PPCROSSARM=$(FPC_DIR)/compiler/ppcrossarm |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
11 |
PPCROSSARM_FLAGS= -Xd -O- -Tlinux -XParm-linux-androideabi- -vwnh -XS |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
12 |
PPCROSSARM_INCLUDES= \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
13 |
-FD$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
14 |
-Fu$(FPC_DIR)/rtl/units/arm-linux \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
15 |
-Fl$(ANDROID_NDK)/platforms/android-$(ANDROID_API_LVL)/arch-arm/usr/lib \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
16 |
-Fl$(SDL_ANDROID_DIR)/libs/armeabi \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
17 |
-Fl$(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux/arm-linux-androideabi/4.4.3/ \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
18 |
-Xr/media/Storage2/LG-Libs \ |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
19 |
#LINKERFLAGS= -k"--static" |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
20 |
FPC_DEFINES=-dandroid -darm |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
21 |
|
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
22 |
|
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
23 |
all: |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
24 |
-mkdir out |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
25 |
# $(ANDROID_NDK)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-as -o libandroidprt0.so androidprt0.as |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
26 |
$(PPCROSSARM) $(LINKERFLAGS) $(PPCROSSARM_FLAGS) $(PPCROSSARM_INCLUDES) $(FPC_DEFINES) -oout/libhwengine.so ../hedgewars/hwLibrary.pas |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
27 |
cp out/libhwengine.so /home/richard/SoftDev/SDL-android-project/libs/armeabi/libhwengine.so |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
28 |
|
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
29 |
clean: |
8634c7f09372
Make file to build the hwengine as Library for Android, it also uses PushToDevice to update the library on the device without the need of reinstalling the apk
Xeli
parents:
diff
changeset
|
30 |
rm out/* |