diff options
| author | Glenn Morris | 2014-06-28 15:57:23 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-28 15:57:23 -0700 |
| commit | 93160ec3928b5efd654824dfc727d1bbec3c0aec (patch) | |
| tree | dbca945901d1ff3d2d21e5b20f18ae76d6b134f7 | |
| parent | e0d9c3c9a26ba2982595ec2ec4a1167ee7e39ddb (diff) | |
| download | emacs-93160ec3928b5efd654824dfc727d1bbec3c0aec.tar.gz emacs-93160ec3928b5efd654824dfc727d1bbec3c0aec.zip | |
Use gcc auto-dependency information for lwlib and oldXMenu
* configure.ac (lwlib_deps_frag, oldxmenu_deps_frag): New output files.
* make-dist (lwlib, oldXMenu): Distribute *.mk.
* lwlib/Makefile.in: Move old dependency information to new file deps.mk.
(MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag):
New, set by configure.
(DEPDIR): New variable.
(ALL_CFLAGS): Add DEPFLAGS.
(.c.o): Add MKDEPDIR.
(clean, mostlyclean): Delete DEPDIR.
* lwlib/deps.mk, lwlib/autodeps.mk: New files.
* oldXMenu/Makefile.in: Move old dependency information to new file deps.mk.
(MKDIR_P, DEPFLAGS, MKDEPDIR, oldxmenu_deps_frag):
New, set by configure.
(DEPDIR): New variable.
(ALL_CFLAGS): Add DEPFLAGS.
(.c.o): Add MKDEPDIR.
(clean, mostlyclean): Delete DEPDIR.
* oldXMenu/deps.mk, oldXMenu/autodeps.mk: New files.
* src/deps.mk: Comment update.
* .bzrignore: Ignore lwlib/deps, oldXMenu/deps.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | lwlib/ChangeLog | 12 | ||||
| -rw-r--r-- | lwlib/Makefile.in | 28 | ||||
| -rw-r--r-- | lwlib/autodeps.mk | 5 | ||||
| -rw-r--r-- | lwlib/deps.mk | 43 | ||||
| -rwxr-xr-x | make-dist | 4 | ||||
| -rw-r--r-- | oldXMenu/ChangeLog | 12 | ||||
| -rw-r--r-- | oldXMenu/Makefile.in | 47 | ||||
| -rw-r--r-- | oldXMenu/autodeps.mk | 5 | ||||
| -rw-r--r-- | oldXMenu/deps.mk | 70 | ||||
| -rw-r--r-- | src/deps.mk | 6 |
12 files changed, 186 insertions, 56 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-06-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (lwlib_deps_frag, oldxmenu_deps_frag): New output files. | ||
| 4 | * make-dist (lwlib, oldXMenu): Distribute *.mk. | ||
| 5 | |||
| 1 | 2014-06-27 Glenn Morris <rgm@gnu.org> | 6 | 2014-06-27 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * Makefile.in (src): No more need to pass BOOTSTRAPEMACS. | 8 | * Makefile.in (src): No more need to pass BOOTSTRAPEMACS. |
diff --git a/configure.ac b/configure.ac index b253d2465fa..04c75e30df8 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1590,11 +1590,14 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | |||
| 1590 | deps_frag=autodeps.mk | 1590 | deps_frag=autodeps.mk |
| 1591 | fi | 1591 | fi |
| 1592 | fi | 1592 | fi |
| 1593 | lwlib_deps_frag=$srcdir/lwlib/$deps_frag | ||
| 1594 | oldxmenu_deps_frag=$srcdir/oldXMenu/$deps_frag | ||
| 1593 | deps_frag=$srcdir/src/$deps_frag | 1595 | deps_frag=$srcdir/src/$deps_frag |
| 1594 | AC_SUBST(MKDEPDIR) | 1596 | AC_SUBST(MKDEPDIR) |
| 1595 | AC_SUBST(DEPFLAGS) | 1597 | AC_SUBST(DEPFLAGS) |
| 1596 | AC_SUBST_FILE(deps_frag) | 1598 | AC_SUBST_FILE(deps_frag) |
| 1597 | 1599 | AC_SUBST_FILE(lwlib_deps_frag) | |
| 1600 | AC_SUBST_FILE(oldxmenu_deps_frag) | ||
| 1598 | 1601 | ||
| 1599 | lisp_frag=$srcdir/src/lisp.mk | 1602 | lisp_frag=$srcdir/src/lisp.mk |
| 1600 | AC_SUBST_FILE(lisp_frag) | 1603 | AC_SUBST_FILE(lisp_frag) |
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 430add5a8b6..20ace660739 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-06-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in: Use gcc auto-dependency information. | ||
| 4 | Move old dependency information to new file deps.mk. | ||
| 5 | (MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag): | ||
| 6 | New, set by configure. | ||
| 7 | (DEPDIR): New variable. | ||
| 8 | (ALL_CFLAGS): Add DEPFLAGS. | ||
| 9 | (.c.o): Add MKDEPDIR. | ||
| 10 | (clean, mostlyclean): Delete DEPDIR. | ||
| 11 | * deps.mk, autodeps.mk: New files. | ||
| 12 | |||
| 1 | 2014-06-17 Paul Eggert <eggert@cs.ucla.edu> | 13 | 2014-06-17 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 14 | ||
| 3 | Omit redundant extern decls. | 15 | Omit redundant extern decls. |
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in index 7185aa60727..516b3286951 100644 --- a/lwlib/Makefile.in +++ b/lwlib/Makefile.in | |||
| @@ -41,6 +41,7 @@ RANLIB=@RANLIB@ | |||
| 41 | 41 | ||
| 42 | AR = @AR@ | 42 | AR = @AR@ |
| 43 | ARFLAGS = @ARFLAGS@ | 43 | ARFLAGS = @ARFLAGS@ |
| 44 | MKDIR_P = @MKDIR_P@ | ||
| 44 | 45 | ||
| 45 | LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o | 46 | LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o |
| 46 | MOTIF_OBJS = lwlib-Xm.o | 47 | MOTIF_OBJS = lwlib-Xm.o |
| @@ -50,13 +51,19 @@ TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS) | |||
| 50 | 51 | ||
| 51 | OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o | 52 | OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o |
| 52 | 53 | ||
| 54 | DEPDIR = deps | ||
| 55 | ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. | ||
| 56 | DEPFLAGS = @DEPFLAGS@ | ||
| 57 | ## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. | ||
| 58 | MKDEPDIR = @MKDEPDIR@ | ||
| 59 | |||
| 53 | ## ../src is where the generated file (config.h, globals.h) are. | 60 | ## ../src is where the generated file (config.h, globals.h) are. |
| 54 | ## $(srcdir)/../src is where the non-generated files (lisp.h) are. | 61 | ## $(srcdir)/../src is where the non-generated files (lisp.h) are. |
| 55 | ## (In an out-of-tree build, these two are not the same.) | 62 | ## (In an out-of-tree build, these two are not the same.) |
| 56 | ## $(srcdir) is where the lwlib sources are. | 63 | ## $(srcdir) is where the lwlib sources are. |
| 57 | ## There are no generated lwlib files, hence no need for -I. | 64 | ## There are no generated lwlib files, hence no need for -I. |
| 58 | ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ | 65 | ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ |
| 59 | $(C_SWITCH_MACHINE) \ | 66 | $(C_SWITCH_MACHINE) $(DEPFLAGS) \ |
| 60 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \ | 67 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \ |
| 61 | -Demacs -I../src \ | 68 | -Demacs -I../src \ |
| 62 | -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib | 69 | -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib |
| @@ -65,6 +72,7 @@ all: liblw.a | |||
| 65 | .PHONY: all | 72 | .PHONY: all |
| 66 | 73 | ||
| 67 | .c.o: | 74 | .c.o: |
| 75 | @$(MKDEPDIR) | ||
| 68 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | 76 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
| 69 | 77 | ||
| 70 | liblw.a: $(OBJS) | 78 | liblw.a: $(OBJS) |
| @@ -72,30 +80,18 @@ liblw.a: $(OBJS) | |||
| 72 | $(AR) $(ARFLAGS) $@ $(OBJS) | 80 | $(AR) $(ARFLAGS) $@ $(OBJS) |
| 73 | $(RANLIB) $@ | 81 | $(RANLIB) $@ |
| 74 | 82 | ||
| 75 | ## Generated files in ../src, non-generated in $(srcdir)/../src. | ||
| 76 | config_h = ../src/config.h $(srcdir)/../src/conf_post.h | ||
| 77 | lisp_h = $(srcdir)/../src/lisp.h | ||
| 78 | ## lisp.h includes this. | ||
| 79 | globals_h = ../src/globals.h | 83 | globals_h = ../src/globals.h |
| 80 | src_h = $(config_h) $(lisp_h) $(globals_h) | ||
| 81 | |||
| 82 | $(globals_h): | 84 | $(globals_h): |
| 83 | $(MAKE) -C ../src globals.h | 85 | $(MAKE) -C ../src globals.h |
| 84 | 86 | ||
| 85 | lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h | 87 | ## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. |
| 86 | lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \ | 88 | @lwlib_deps_frag@ |
| 87 | lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h | ||
| 88 | lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h | ||
| 89 | lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h | ||
| 90 | lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h | ||
| 91 | xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \ | ||
| 92 | $(srcdir)/../src/xterm.h | ||
| 93 | |||
| 94 | 89 | ||
| 95 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean | 90 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
| 96 | 91 | ||
| 97 | clean mostlyclean: | 92 | clean mostlyclean: |
| 98 | rm -f *.o liblw.a \#* | 93 | rm -f *.o liblw.a \#* |
| 94 | -rm -rf ${DEPDIR} | ||
| 99 | 95 | ||
| 100 | distclean: clean | 96 | distclean: clean |
| 101 | rm -f Makefile | 97 | rm -f Makefile |
diff --git a/lwlib/autodeps.mk b/lwlib/autodeps.mk new file mode 100644 index 00000000000..f7109295ce2 --- /dev/null +++ b/lwlib/autodeps.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | ### autodeps.mk --- lwlib/Makefile fragment for GNU Emacs | ||
| 2 | |||
| 3 | ## This is inserted in lwlib/Makefile if AUTO_DEPEND=yes. | ||
| 4 | |||
| 5 | -include $(ALLOBJS:%.o=${DEPDIR}/%.d) | ||
diff --git a/lwlib/deps.mk b/lwlib/deps.mk new file mode 100644 index 00000000000..6355ec62e62 --- /dev/null +++ b/lwlib/deps.mk | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | ### deps.mk --- lwlib/Makefile fragment for GNU Emacs | ||
| 2 | |||
| 3 | # Copyright (C) 1992, 1993 Lucid, Inc. | ||
| 4 | # Copyright (C) 1994, 2001-2014 Free Software Foundation, Inc. | ||
| 5 | # | ||
| 6 | # This file is part of the Lucid Widget Library. | ||
| 7 | # | ||
| 8 | # The Lucid Widget Library is free software; you can redistribute it and/or | ||
| 9 | # modify it under the terms of the GNU General Public License as published by | ||
| 10 | # the Free Software Foundation; either version 1, or (at your option) | ||
| 11 | # any later version. | ||
| 12 | # | ||
| 13 | # The Lucid Widget Library is distributed in the hope that it will be useful, | ||
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | # GNU General Public License for more details. | ||
| 17 | # | ||
| 18 | # You should have received a copy of the GNU General Public License | ||
| 19 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | |||
| 21 | ### Commentary: | ||
| 22 | |||
| 23 | ## This file is inserted in lwlib/Makefile if AUTO_DEPEND=no. | ||
| 24 | ## It defines static dependencies between the various source files. | ||
| 25 | |||
| 26 | ### Code: | ||
| 27 | |||
| 28 | ## Generated files in ../src, non-generated in $(srcdir)/../src. | ||
| 29 | config_h = ../src/config.h $(srcdir)/../src/conf_post.h | ||
| 30 | lisp_h = $(srcdir)/../src/lisp.h | ||
| 31 | ## lisp.h includes this. | ||
| 32 | src_h = $(config_h) $(lisp_h) $(globals_h) | ||
| 33 | |||
| 34 | lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h | ||
| 35 | lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \ | ||
| 36 | lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h | ||
| 37 | lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h | ||
| 38 | lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h | ||
| 39 | lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h | ||
| 40 | xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \ | ||
| 41 | $(srcdir)/../src/xterm.h | ||
| 42 | |||
| 43 | ### deps.mk ends here | ||
| @@ -438,12 +438,12 @@ echo "Making links to \`nextstep/GNUstep/Emacs.base/Resources'" | |||
| 438 | 438 | ||
| 439 | echo "Making links to \`oldXMenu'" | 439 | echo "Making links to \`oldXMenu'" |
| 440 | (cd oldXMenu | 440 | (cd oldXMenu |
| 441 | ln *.[ch] *.in ../${tempdir}/oldXMenu | 441 | ln *.[ch] *.in *.mk ../${tempdir}/oldXMenu |
| 442 | ln README ChangeLog ../${tempdir}/oldXMenu) | 442 | ln README ChangeLog ../${tempdir}/oldXMenu) |
| 443 | 443 | ||
| 444 | echo "Making links to \`lwlib'" | 444 | echo "Making links to \`lwlib'" |
| 445 | (cd lwlib | 445 | (cd lwlib |
| 446 | ln *.[ch] *.in ../${tempdir}/lwlib | 446 | ln *.[ch] *.in *.mk ../${tempdir}/lwlib |
| 447 | ln README ChangeLog ../${tempdir}/lwlib) | 447 | ln README ChangeLog ../${tempdir}/lwlib) |
| 448 | 448 | ||
| 449 | ## It is important to distribute admin/ because it contains sources | 449 | ## It is important to distribute admin/ because it contains sources |
diff --git a/oldXMenu/ChangeLog b/oldXMenu/ChangeLog index 74686f64972..2d382be5d71 100644 --- a/oldXMenu/ChangeLog +++ b/oldXMenu/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-06-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in: Use gcc auto-dependency information. | ||
| 4 | Move old dependency information to new file deps.mk. | ||
| 5 | (MKDIR_P, DEPFLAGS, MKDEPDIR, oldxmenu_deps_frag): | ||
| 6 | New, set by configure. | ||
| 7 | (DEPDIR): New variable. | ||
| 8 | (ALL_CFLAGS): Add DEPFLAGS. | ||
| 9 | (.c.o): Add MKDEPDIR. | ||
| 10 | (clean, mostlyclean): Delete DEPDIR. | ||
| 11 | * deps.mk, autodeps.mk: New files. | ||
| 12 | |||
| 1 | 2014-06-15 Glenn Morris <rgm@gnu.org> | 13 | 2014-06-15 Glenn Morris <rgm@gnu.org> |
| 2 | 14 | ||
| 3 | * Makefile.in (CPPFLAGS): Explicitly set via configure. | 15 | * Makefile.in (CPPFLAGS): Explicitly set via configure. |
diff --git a/oldXMenu/Makefile.in b/oldXMenu/Makefile.in index 91b313ac627..bfa7d97912a 100644 --- a/oldXMenu/Makefile.in +++ b/oldXMenu/Makefile.in | |||
| @@ -63,6 +63,7 @@ RM = rm -f | |||
| 63 | RANLIB = @RANLIB@ | 63 | RANLIB = @RANLIB@ |
| 64 | AR = @AR@ | 64 | AR = @AR@ |
| 65 | ARFLAGS = @ARFLAGS@ | 65 | ARFLAGS = @ARFLAGS@ |
| 66 | MKDIR_P = @MKDIR_P@ | ||
| 66 | 67 | ||
| 67 | OBJS = Activate.o \ | 68 | OBJS = Activate.o \ |
| 68 | AddPane.o \ | 69 | AddPane.o \ |
| @@ -92,13 +93,20 @@ OBJS = Activate.o \ | |||
| 92 | all: libXMenu11.a | 93 | all: libXMenu11.a |
| 93 | .PHONY: all | 94 | .PHONY: all |
| 94 | 95 | ||
| 96 | DEPDIR = deps | ||
| 97 | ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. | ||
| 98 | DEPFLAGS = @DEPFLAGS@ | ||
| 99 | ## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. | ||
| 100 | MKDEPDIR = @MKDEPDIR@ | ||
| 101 | |||
| 95 | ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ | 102 | ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ |
| 96 | $(C_SWITCH_X_SITE) \ | 103 | $(C_SWITCH_X_SITE) $(DEPFLAGS) \ |
| 97 | $(WARN_CFLAGS) $(WERROR_CFLAGS) ${PROFILING_CFLAGS} \ | 104 | $(WARN_CFLAGS) $(WERROR_CFLAGS) ${PROFILING_CFLAGS} \ |
| 98 | $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \ | 105 | $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \ |
| 99 | -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib | 106 | -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib |
| 100 | 107 | ||
| 101 | .c.o: | 108 | .c.o: |
| 109 | @$(MKDEPDIR) | ||
| 102 | $(CC) -c ${ALL_CFLAGS} $< | 110 | $(CC) -c ${ALL_CFLAGS} $< |
| 103 | 111 | ||
| 104 | libXMenu11.a: $(OBJS) $(EXTRA) | 112 | libXMenu11.a: $(OBJS) $(EXTRA) |
| @@ -106,42 +114,14 @@ libXMenu11.a: $(OBJS) $(EXTRA) | |||
| 106 | $(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) | 114 | $(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) |
| 107 | $(RANLIB) $@ | 115 | $(RANLIB) $@ |
| 108 | 116 | ||
| 109 | Activate.o: Activate.c XMenuInt.h XMenu.h X10.h | 117 | ## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. |
| 110 | AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h | 118 | @oldxmenu_deps_frag@ |
| 111 | AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h | ||
| 112 | ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h | ||
| 113 | ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h | ||
| 114 | Create.o: Create.c XMenuInt.h XMenu.h X10.h | ||
| 115 | DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h | ||
| 116 | DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h | ||
| 117 | Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h | ||
| 118 | Error.o: Error.c XMenuInt.h XMenu.h X10.h | ||
| 119 | EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h | ||
| 120 | FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h | ||
| 121 | FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h | ||
| 122 | InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h | ||
| 123 | InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h | ||
| 124 | Internal.o: Internal.c XMenuInt.h XMenu.h X10.h | ||
| 125 | Locate.o: Locate.c XMenuInt.h XMenu.h X10.h | ||
| 126 | Post.o: Post.c XMenuInt.h XMenu.h X10.h | ||
| 127 | Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h | ||
| 128 | SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h | ||
| 129 | SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h | ||
| 130 | SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h | ||
| 131 | SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h | ||
| 132 | XDelAssoc.o: XDelAssoc.c X10.h | ||
| 133 | XLookAssoc.o: XLookAssoc.c X10.h | ||
| 134 | XCrAssoc.o: XCrAssoc.c X10.h | ||
| 135 | XDestAssoc.o: XDestAssoc.c X10.h | ||
| 136 | XMakeAssoc.o: XMakeAssoc.c X10.h | ||
| 137 | insque.o: insque.c | ||
| 138 | 119 | ||
| 139 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean | 120 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
| 140 | 121 | ||
| 141 | mostlyclean: | 122 | clean mostlyclean: |
| 142 | rm -f libXMenu11.a ${OBJS} ${EXTRA} | 123 | rm -f libXMenu11.a ${OBJS} ${EXTRA} |
| 143 | 124 | -rm -rf ${DEPDIR} | |
| 144 | clean: mostlyclean | ||
| 145 | 125 | ||
| 146 | bootstrap-clean maintainer-clean distclean: clean | 126 | bootstrap-clean maintainer-clean distclean: clean |
| 147 | rm -f Makefile | 127 | rm -f Makefile |
| @@ -150,3 +130,4 @@ bootstrap-clean maintainer-clean distclean: clean | |||
| 150 | tags: | 130 | tags: |
| 151 | $(TAGS) -t *.[ch] | 131 | $(TAGS) -t *.[ch] |
| 152 | 132 | ||
| 133 | ### Makefile.in ends here | ||
diff --git a/oldXMenu/autodeps.mk b/oldXMenu/autodeps.mk new file mode 100644 index 00000000000..f7109295ce2 --- /dev/null +++ b/oldXMenu/autodeps.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | ### autodeps.mk --- lwlib/Makefile fragment for GNU Emacs | ||
| 2 | |||
| 3 | ## This is inserted in lwlib/Makefile if AUTO_DEPEND=yes. | ||
| 4 | |||
| 5 | -include $(ALLOBJS:%.o=${DEPDIR}/%.d) | ||
diff --git a/oldXMenu/deps.mk b/oldXMenu/deps.mk new file mode 100644 index 00000000000..c5a4966626c --- /dev/null +++ b/oldXMenu/deps.mk | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | ### deps.mk --- oldXMenu/Makefile fragment for GNU Emacs | ||
| 2 | |||
| 3 | ## Copyright 1985, 1986, 1987 by the Massachusetts Institute of Technology | ||
| 4 | |||
| 5 | ## Permission to use, copy, modify, and distribute this | ||
| 6 | ## software and its documentation for any purpose and without | ||
| 7 | ## fee is hereby granted, provided that the above copyright | ||
| 8 | ## notice appear in all copies and that both that copyright | ||
| 9 | ## notice and this permission notice appear in supporting | ||
| 10 | ## documentation, and that the name of M.I.T. not be used in | ||
| 11 | ## advertising or publicity pertaining to distribution of the | ||
| 12 | ## software without specific, written prior permission. | ||
| 13 | ## M.I.T. makes no representations about the suitability of | ||
| 14 | ## this software for any purpose. It is provided "as is" | ||
| 15 | ## without express or implied warranty. | ||
| 16 | |||
| 17 | |||
| 18 | ## Copyright (C) 2001-2014 Free Software Foundation, Inc. | ||
| 19 | |||
| 20 | ## This program is free software: you can redistribute it and/or modify | ||
| 21 | ## it under the terms of the GNU General Public License as published by | ||
| 22 | ## the Free Software Foundation, either version 3 of the License, or | ||
| 23 | ## (at your option) any later version. | ||
| 24 | |||
| 25 | ## This program is distributed in the hope that it will be useful, | ||
| 26 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 27 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 28 | ## GNU General Public License for more details. | ||
| 29 | |||
| 30 | ## You should have received a copy of the GNU General Public License | ||
| 31 | ## along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 32 | |||
| 33 | ### Commentary: | ||
| 34 | |||
| 35 | ## This file is inserted in oldXMenu/Makefile if AUTO_DEPEND=no. | ||
| 36 | ## It defines static dependencies between the various source files. | ||
| 37 | |||
| 38 | ### Code: | ||
| 39 | |||
| 40 | Activate.o: Activate.c XMenuInt.h XMenu.h X10.h | ||
| 41 | AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h | ||
| 42 | AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h | ||
| 43 | ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h | ||
| 44 | ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h | ||
| 45 | Create.o: Create.c XMenuInt.h XMenu.h X10.h | ||
| 46 | DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h | ||
| 47 | DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h | ||
| 48 | Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h | ||
| 49 | Error.o: Error.c XMenuInt.h XMenu.h X10.h | ||
| 50 | EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h | ||
| 51 | FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h | ||
| 52 | FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h | ||
| 53 | InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h | ||
| 54 | InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h | ||
| 55 | Internal.o: Internal.c XMenuInt.h XMenu.h X10.h | ||
| 56 | Locate.o: Locate.c XMenuInt.h XMenu.h X10.h | ||
| 57 | Post.o: Post.c XMenuInt.h XMenu.h X10.h | ||
| 58 | Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h | ||
| 59 | SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h | ||
| 60 | SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h | ||
| 61 | SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h | ||
| 62 | SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h | ||
| 63 | XDelAssoc.o: XDelAssoc.c X10.h | ||
| 64 | XLookAssoc.o: XLookAssoc.c X10.h | ||
| 65 | XCrAssoc.o: XCrAssoc.c X10.h | ||
| 66 | XDestAssoc.o: XDestAssoc.c X10.h | ||
| 67 | XMakeAssoc.o: XMakeAssoc.c X10.h | ||
| 68 | insque.o: insque.c | ||
| 69 | |||
| 70 | ### deps.mk ends here | ||
diff --git a/src/deps.mk b/src/deps.mk index 1d67d750983..3fdbbe6605f 100644 --- a/src/deps.mk +++ b/src/deps.mk | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ### deps.mk --- src/Makefile fragment for GNU Emacs | 1 | ### deps.mk --- src/Makefile fragment for GNU Emacs |
| 2 | 2 | ||
| 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 Free Software | 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 |
| 4 | ## Foundation, Inc. | 4 | ## Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ## This file is part of GNU Emacs. | 6 | ## This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -27,8 +27,6 @@ | |||
| 27 | ## Eg callproc.c only depends on w32.h for WINDOWSNT builds. | 27 | ## Eg callproc.c only depends on w32.h for WINDOWSNT builds. |
| 28 | ## One way to fix this would be to replace w32.h (etc) by $(W32_H), | 28 | ## One way to fix this would be to replace w32.h (etc) by $(W32_H), |
| 29 | ## a variable set by configure. Does not seem worth the trouble. | 29 | ## a variable set by configure. Does not seem worth the trouble. |
| 30 | ## Since the w32 build does not even use this file, you might ask | ||
| 31 | ## why these dependencies are here at all... | ||
| 32 | 30 | ||
| 33 | ## nsgui.h: In fact, every .o file depends directly or indirectly on | 31 | ## nsgui.h: In fact, every .o file depends directly or indirectly on |
| 34 | ## dispextern.h and hence nsgui.h under NS. But the ones that actually | 32 | ## dispextern.h and hence nsgui.h under NS. But the ones that actually |