Commit | Line | Data |
---|---|---|
bbece175 | 1 | ### @configure_input@ |
1e49ac15 GM |
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 | ||
ba318903 | 18 | ## Copyright (C) 2001-2014 Free Software Foundation, Inc. |
1e49ac15 | 19 | |
4eaa4034 | 20 | ## This program is free software: you can redistribute it and/or modify |
1e49ac15 | 21 | ## it under the terms of the GNU General Public License as published by |
4eaa4034 GM |
22 | ## the Free Software Foundation, either version 3 of the License, or |
23 | ## (at your option) any later version. | |
24 | ||
1e49ac15 GM |
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. | |
4eaa4034 | 29 | |
1e49ac15 | 30 | ## You should have received a copy of the GNU General Public License |
4eaa4034 | 31 | ## along with this program. If not, see <http://www.gnu.org/licenses/>. |
1e49ac15 GM |
32 | |
33 | ||
34 | ### Commentary: | |
35 | ||
36 | ## To the best of our knowledge, this code was originally based on the | |
37 | ## X11 oldXMenu Makefile, which was automatically generated from the | |
e3cf0cde | 38 | ## X11 oldXMenu Imakefile. There was no explicit copyright information |
1e49ac15 GM |
39 | ## in the Imakefile, therefore we have added the same MIT license as |
40 | ## used by the rest of the oldXMenu code. | |
41 | ||
42 | ||
43 | ### Code: | |
44 | ||
e745ede7 | 45 | srcdir=@srcdir@ |
11e5e2eb GM |
46 | # MinGW CPPFLAGS may use this. |
47 | abs_top_srcdir=@abs_top_srcdir@ | |
e745ede7 DL |
48 | VPATH=@srcdir@ |
49 | C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ | |
fa5e317a GM |
50 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ |
51 | C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ | |
e6cfa7c3 | 52 | PROFILING_CFLAGS = @PROFILING_CFLAGS@ |
b8df54ff PE |
53 | WARN_CFLAGS = @WARN_CFLAGS@ |
54 | WERROR_CFLAGS = @WERROR_CFLAGS@ | |
e745ede7 DL |
55 | |
56 | EXTRA=insque.o | |
57 | CC=@CC@ | |
58 | CFLAGS=@CFLAGS@ | |
e3cf0cde GM |
59 | TAGS = etags |
60 | RM = rm -f | |
e49dca3d | 61 | RANLIB = @RANLIB@ |
150798c5 UM |
62 | AR = @AR@ |
63 | ARFLAGS = @ARFLAGS@ | |
e745ede7 DL |
64 | |
65 | OBJS = Activate.o \ | |
66 | AddPane.o \ | |
67 | AddSel.o \ | |
68 | ChgPane.o \ | |
69 | ChgSel.o \ | |
70 | Create.o \ | |
71 | DelPane.o \ | |
72 | DelSel.o \ | |
73 | Destroy.o \ | |
74 | Error.o \ | |
75 | EvHand.o \ | |
76 | FindPane.o \ | |
77 | FindSel.o \ | |
78 | InsPane.o \ | |
79 | InsSel.o \ | |
80 | Internal.o \ | |
81 | Locate.o \ | |
82 | Post.o \ | |
83 | Recomp.o \ | |
84 | SetAEQ.o \ | |
85 | SetFrz.o \ | |
86 | SetPane.o \ | |
87 | SetSel.o \ | |
88 | XDelAssoc.o XLookAssoc.o XCrAssoc.o XDestAssoc.o XMakeAssoc.o | |
89 | ||
224e313d PE |
90 | all: libXMenu11.a |
91 | .PHONY: all | |
e745ede7 | 92 | |
77ccee09 | 93 | ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ |
2f097256 | 94 | $(C_SWITCH_X_SITE) \ |
bdf35b6a | 95 | $(WARN_CFLAGS) $(WERROR_CFLAGS) ${PROFILING_CFLAGS} \ |
e745ede7 | 96 | $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \ |
414e642c | 97 | -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib |
e745ede7 DL |
98 | |
99 | .c.o: | |
100 | $(CC) -c ${ALL_CFLAGS} $< | |
101 | ||
102 | libXMenu11.a: $(OBJS) $(EXTRA) | |
103 | $(RM) $@ | |
150798c5 | 104 | $(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) |
e49dca3d | 105 | $(RANLIB) $@ |
e745ede7 DL |
106 | |
107 | Activate.o: Activate.c XMenuInt.h XMenu.h X10.h | |
108 | AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h | |
109 | AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h | |
110 | ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h | |
111 | ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h | |
112 | Create.o: Create.c XMenuInt.h XMenu.h X10.h | |
113 | DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h | |
114 | DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h | |
115 | Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h | |
116 | Error.o: Error.c XMenuInt.h XMenu.h X10.h | |
117 | EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h | |
118 | FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h | |
119 | FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h | |
120 | InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h | |
121 | InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h | |
122 | Internal.o: Internal.c XMenuInt.h XMenu.h X10.h | |
123 | Locate.o: Locate.c XMenuInt.h XMenu.h X10.h | |
124 | Post.o: Post.c XMenuInt.h XMenu.h X10.h | |
125 | Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h | |
126 | SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h | |
127 | SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h | |
128 | SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h | |
129 | SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h | |
130 | XDelAssoc.o: XDelAssoc.c X10.h | |
131 | XLookAssoc.o: XLookAssoc.c X10.h | |
132 | XCrAssoc.o: XCrAssoc.c X10.h | |
133 | XDestAssoc.o: XDestAssoc.c X10.h | |
134 | XMakeAssoc.o: XMakeAssoc.c X10.h | |
135 | insque.o: insque.c | |
136 | ||
137 | FRC.mostlyclean: | |
138 | mostlyclean: FRC.mostlyclean | |
139 | rm -f libXMenu11.a ${OBJS} ${EXTRA} | |
140 | clean: mostlyclean | |
141 | distclean: clean | |
ee3ce9ff | 142 | rm -f Makefile |
e745ede7 DL |
143 | maintainer-clean: distclean |
144 | ||
224e313d | 145 | tags: |
e745ede7 | 146 | $(TAGS) -t *.[ch] |
224e313d | 147 | .PHONY: tags |