aboutsummaryrefslogtreecommitdiffstats
path: root/oldXMenu
diff options
context:
space:
mode:
authorGlenn Morris2014-06-28 15:57:23 -0700
committerGlenn Morris2014-06-28 15:57:23 -0700
commit93160ec3928b5efd654824dfc727d1bbec3c0aec (patch)
treedbca945901d1ff3d2d21e5b20f18ae76d6b134f7 /oldXMenu
parente0d9c3c9a26ba2982595ec2ec4a1167ee7e39ddb (diff)
downloademacs-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/ChangeLog12
-rw-r--r--oldXMenu/Makefile.in47
-rw-r--r--oldXMenu/autodeps.mk5
-rw-r--r--oldXMenu/deps.mk70
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 @@
12014-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
12014-06-15 Glenn Morris <rgm@gnu.org> 132014-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
63RANLIB = @RANLIB@ 63RANLIB = @RANLIB@
64AR = @AR@ 64AR = @AR@
65ARFLAGS = @ARFLAGS@ 65ARFLAGS = @ARFLAGS@
66MKDIR_P = @MKDIR_P@
66 67
67OBJS = Activate.o \ 68OBJS = Activate.o \
68 AddPane.o \ 69 AddPane.o \
@@ -92,13 +93,20 @@ OBJS = Activate.o \
92all: libXMenu11.a 93all: libXMenu11.a
93.PHONY: all 94.PHONY: all
94 95
96DEPDIR = deps
97## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
98DEPFLAGS = @DEPFLAGS@
99## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'.
100MKDEPDIR = @MKDEPDIR@
101
95ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ 102ALL_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
104libXMenu11.a: $(OBJS) $(EXTRA) 112libXMenu11.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
109Activate.o: Activate.c XMenuInt.h XMenu.h X10.h 117## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk.
110AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h 118@oldxmenu_deps_frag@
111AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h
112ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h
113ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h
114Create.o: Create.c XMenuInt.h XMenu.h X10.h
115DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h
116DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h
117Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h
118Error.o: Error.c XMenuInt.h XMenu.h X10.h
119EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h
120FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h
121FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h
122InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h
123InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h
124Internal.o: Internal.c XMenuInt.h XMenu.h X10.h
125Locate.o: Locate.c XMenuInt.h XMenu.h X10.h
126Post.o: Post.c XMenuInt.h XMenu.h X10.h
127Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h
128SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h
129SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h
130SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h
131SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h
132XDelAssoc.o: XDelAssoc.c X10.h
133XLookAssoc.o: XLookAssoc.c X10.h
134XCrAssoc.o: XCrAssoc.c X10.h
135XDestAssoc.o: XDestAssoc.c X10.h
136XMakeAssoc.o: XMakeAssoc.c X10.h
137insque.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
141mostlyclean: 122clean mostlyclean:
142 rm -f libXMenu11.a ${OBJS} ${EXTRA} 123 rm -f libXMenu11.a ${OBJS} ${EXTRA}
143 124 -rm -rf ${DEPDIR}
144clean: mostlyclean
145 125
146bootstrap-clean maintainer-clean distclean: clean 126bootstrap-clean maintainer-clean distclean: clean
147 rm -f Makefile 127 rm -f Makefile
@@ -150,3 +130,4 @@ bootstrap-clean maintainer-clean distclean: clean
150tags: 130tags:
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
40Activate.o: Activate.c XMenuInt.h XMenu.h X10.h
41AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h
42AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h
43ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h
44ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h
45Create.o: Create.c XMenuInt.h XMenu.h X10.h
46DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h
47DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h
48Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h
49Error.o: Error.c XMenuInt.h XMenu.h X10.h
50EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h
51FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h
52FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h
53InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h
54InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h
55Internal.o: Internal.c XMenuInt.h XMenu.h X10.h
56Locate.o: Locate.c XMenuInt.h XMenu.h X10.h
57Post.o: Post.c XMenuInt.h XMenu.h X10.h
58Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h
59SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h
60SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h
61SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h
62SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h
63XDelAssoc.o: XDelAssoc.c X10.h
64XLookAssoc.o: XLookAssoc.c X10.h
65XCrAssoc.o: XCrAssoc.c X10.h
66XDestAssoc.o: XDestAssoc.c X10.h
67XMakeAssoc.o: XMakeAssoc.c X10.h
68insque.o: insque.c
69
70### deps.mk ends here