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 /oldXMenu | |
| 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.
Diffstat (limited to 'oldXMenu')
| -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 |
4 files changed, 101 insertions, 33 deletions
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 | ||