aboutsummaryrefslogtreecommitdiffstats
path: root/java/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'java/Makefile.in')
-rw-r--r--java/Makefile.in30
1 files changed, 18 insertions, 12 deletions
diff --git a/java/Makefile.in b/java/Makefile.in
index 22c912fdce5..d27775ea3db 100644
--- a/java/Makefile.in
+++ b/java/Makefile.in
@@ -81,21 +81,24 @@ APK_NAME = emacs-$(version)-$(ANDROID_MIN_SDK)-$(ANDROID_ABI).apk
81all: $(APK_NAME) 81all: $(APK_NAME)
82 82
83# Binaries to cross-compile. 83# Binaries to cross-compile.
84CROSS_BINS = ../xcompile/src/android-emacs ../xcompile/lib-src/ctags \ 84CROSS_BINS = ../cross/src/android-emacs ../cross/lib-src/ctags \
85 ../xcompile/lib-src/hexl ../xcompile/lib-src/movemail \ 85 ../cross/lib-src/hexl ../cross/lib-src/movemail \
86 ../xcompile/lib-src/ebrowse ../xcompile/lib-src/emacsclient 86 ../cross/lib-src/ebrowse ../cross/lib-src/emacsclient
87 87
88# Libraries to cross-compile. 88# Libraries to cross-compile.
89CROSS_LIBS = ../xcompile/src/libemacs.so 89CROSS_LIBS = ../cross/src/libemacs.so
90
91# Third party libraries to compile.
92include $(top_builddir)/cross/ndk-build/ndk-build.mk
90 93
91.PHONY: $(CROSS_BINS) $(CROSS_LIBS) 94.PHONY: $(CROSS_BINS) $(CROSS_LIBS)
92 95
93../xcompile/src/android-emacs ../xcompile/src/libemacs.so: 96../cross/src/android-emacs ../cross/src/libemacs.so:
94 make -C ../xcompile src/$(notdir $@) 97 make -C ../cross src/$(notdir $@)
95 98
96../xcompile/lib-src/hexl ../xcompile/lib-src/movemail \ 99../cross/lib-src/hexl ../cross/lib-src/movemail \
97../xcompile/lib-src/ctags ../xcompile/lib-src/ebrowse &: 100../cross/lib-src/ctags ../cross/lib-src/ebrowse &:
98 make -C ../xcompile lib-src/$(notdir $@) 101 make -C ../cross lib-src/$(notdir $@)
99 102
100# This is needed to generate the ``.directory-tree'' file used by the 103# This is needed to generate the ``.directory-tree'' file used by the
101# Android emulations of readdir and faccessat. 104# Android emulations of readdir and faccessat.
@@ -104,7 +107,7 @@ $(libsrc)/asset-directory-tool:
104 $(MAKE) -C $(libsrc) $(notdir $@) 107 $(MAKE) -C $(libsrc) $(notdir $@)
105 108
106emacs.apk-in: $(CROSS_BINS) $(CROSS_LIBS) $(libsrc)/asset-directory-tool \ 109emacs.apk-in: $(CROSS_BINS) $(CROSS_LIBS) $(libsrc)/asset-directory-tool \
107 AndroidManifest.xml 110 AndroidManifest.xml $(NDK_BUILD_SHARED)
108# Make the working directory for this stuff 111# Make the working directory for this stuff
109 rm -rf install_temp 112 rm -rf install_temp
110 mkdir -p install_temp/lib/$(ANDROID_ABI) 113 mkdir -p install_temp/lib/$(ANDROID_ABI)
@@ -145,11 +148,13 @@ emacs.apk-in: $(CROSS_BINS) $(CROSS_LIBS) $(libsrc)/asset-directory-tool \
145 cp -f $$file install_temp/lib/$(ANDROID_ABI); \ 148 cp -f $$file install_temp/lib/$(ANDROID_ABI); \
146 fi \ 149 fi \
147 done 150 done
151 $(foreach module,$(NDK_BUILD_SHARED), \
152 cp -f $(module) install_temp/lib/$(ANDROID_ABI))
148# Package everything. Specifying the assets on this command line is 153# Package everything. Specifying the assets on this command line is
149# necessary for AAssetManager_getNextFileName to work on old versions 154# necessary for AAssetManager_getNextFileName to work on old versions
150# of Android. 155# of Android.
151 $(AAPT) package -I "$(ANDROID_JAR)" -F $@ -f -M AndroidManifest.xml \ 156 $(AAPT) package -I "$(ANDROID_JAR)" -F $@ -f \
152 -A install_temp/assets 157 -M AndroidManifest.xml -A install_temp/assets
153 pushd install_temp; $(AAPT) add ../$@ `find lib -type f`; popd 158 pushd install_temp; $(AAPT) add ../$@ `find lib -type f`; popd
154 rm -rf install_temp 159 rm -rf install_temp
155 160
@@ -196,3 +201,4 @@ clean:
196 find . -name '*.class' -delete 201 find . -name '*.class' -delete
197 202
198maintainer-clean distclean bootstrap-clean: clean 203maintainer-clean distclean bootstrap-clean: clean
204 rm -f Makefile ndk-build.mk