diff options
Diffstat (limited to 'oldXMenu')
-rw-r--r-- | oldXMenu/Makefile.in | 20 | ||||
-rw-r--r-- | oldXMenu/autodeps.mk | 5 | ||||
-rw-r--r-- | oldXMenu/deps.mk | 2 |
3 files changed, 15 insertions, 12 deletions
diff --git a/oldXMenu/Makefile.in b/oldXMenu/Makefile.in index ef2a3600a6..de5b8e1114 100644 --- a/oldXMenu/Makefile.in +++ b/oldXMenu/Makefile.in @@ -112,10 +112,15 @@ am__v_at_0 = @ am__v_at_1 = DEPDIR = deps -## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. -DEPFLAGS = @DEPFLAGS@ -## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. -MKDEPDIR = @MKDEPDIR@ +AUTO_DEPEND = @AUTO_DEPEND@ + +ifeq ($(AUTO_DEPEND),yes) +DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP +MKDEPDIR = ${MKDIR_P} ${DEPDIR} +else +DEPFLAGS = +MKDEPDIR = : +endif ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ $(C_SWITCH_X_SITE) $(DEPFLAGS) \ @@ -132,8 +137,11 @@ libXMenu11.a: $(OBJS) $(EXTRA) $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) $(AM_V_at)$(RANLIB) $@ -## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. -@oldxmenu_deps_frag@ +ifeq ($(AUTO_DEPEND),yes) +-include $(ALLOBJS:%.o=${DEPDIR}/%.d) +else +include $(srcdir)/deps.mk +endif .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean diff --git a/oldXMenu/autodeps.mk b/oldXMenu/autodeps.mk deleted file mode 100644 index f7109295ce..0000000000 --- a/oldXMenu/autodeps.mk +++ /dev/null @@ -1,5 +0,0 @@ -### autodeps.mk --- lwlib/Makefile fragment for GNU Emacs - -## This is inserted in lwlib/Makefile if AUTO_DEPEND=yes. - --include $(ALLOBJS:%.o=${DEPDIR}/%.d) diff --git a/oldXMenu/deps.mk b/oldXMenu/deps.mk index cdb89f9ead..54ce358757 100644 --- a/oldXMenu/deps.mk +++ b/oldXMenu/deps.mk @@ -32,7 +32,7 @@ ### Commentary: -## This file is inserted in oldXMenu/Makefile if AUTO_DEPEND=no. +## This file is included in oldXMenu/Makefile if AUTO_DEPEND=no. ## It defines static dependencies between the various source files. ### Code: |