]> git.eshelyaron.com Git - emacs.git/commitdiff
More parallel build fixes
authorPo Lu <luangruo@yahoo.com>
Sun, 19 Feb 2023 13:25:37 +0000 (21:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 19 Feb 2023 13:25:37 +0000 (21:25 +0800)
* cross/Makefile.in: (.PHONY):
* java/Makefile.in: (.PHONY):
* src/Makefile.in: (libemacs.so): Avoid calling ndk-build from
two places at once.  Build android-emacs separately from
libemacs.so.

cross/Makefile.in
java/Makefile.in
src/Makefile.in

index c059fda1e3c130243f69dd9ee6aa5b60986e2af6..ac23b2e23f55d2d8e0fe1b39517abed10579186b 100644 (file)
@@ -149,9 +149,13 @@ src/Makefile src/config.h &: $(top_builddir)/src/config.h.android  \
        sed -i 's/-I\$$(top_srcdir)\/lib//g' src/Makefile
 
 .PHONY: src/android-emacs src/libemacs.so
-src/android-emacs src/libemacs.so &: src/Makefile src/config.h \
-  src/verbose.mk lib/libgnu.a $(PRE_BUILD_DEPS)
-       $(MAKE) -C src android-emacs libemacs.so
+
+src/libemacs.so: src/Makefile src/config.h src/verbose.mk \
+  lib/libgnu.a $(PRE_BUILD_DEPS)
+       $(MAKE) -C src libemacs.so
+
+src/android-emacs: src/Makefile src/config.h $(PRE_BUILD_DEPS)
+       $(MAKE) -C src android-emacs
 
 lib-src/Makefile: $(top_builddir)/lib-src/Makefile.android
        $(AM_V_GEN) mkdir -p src lib-src
index 91feb53e96b4a0f9f75a0be52bc11446ceac0bb7..52e0a7a75f1ce7dd9ab1bb6380b89edc644ea1fa 100644 (file)
@@ -149,10 +149,11 @@ $(libsrc)/asset-directory-tool:
 
 # install_tmp is a directory used to generate emacs.apk-in.
 # That is then packaged into $(APK_NAME).
+# There is no need to depend on NDK_BUILD_SHARED as libemacs.so
+# does already.
 
 .PHONY: install_temp install_temp/assets/directory-tree
-install_temp: $(CROSS_BINS) $(CROSS_LIBS) $(NDK_BUILD_SHARED)  \
-  $(RESOURCE_FILES)
+install_temp: $(CROSS_BINS) $(CROSS_LIBS) $(RESOURCE_FILES)
        $(AM_V_GEN)
 # Make the working directory for this stuff
        $(AM_V_SILENT) rm -rf install_temp
index d5d979a9bd385fb20cad4d54d73d6d7f505d5f69..da348812eb71feaa916a3c634f3d3f4923bbe6b1 100644 (file)
@@ -770,12 +770,13 @@ libemacs.so: $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \
        $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@
 
 # There is also a binary named `android-emacs' which simply calls
-# emacs.so.
+# emacs.so.  It need not link against libemacs because app_process
+# will do that instead.
 
-android-emacs: libemacs.so android-emacs.c
+android-emacs: android-emacs.c
        $(AM_V_CCLD)$(CC) $(lastword $^) -o $@ \
-         $(ALL_CFLAGS) $(LDFLAGS)              \
-         $(LIBEGNU_ARCHIVE) -L. "-l:libemacs.so"
+         $(ALL_CFLAGS) $(LDFLAGS)             \
+         $(LIBEGNU_ARCHIVE)
 endif
 
 ## The following oldxmenu-related rules are only (possibly) used if