76172
|
1 ## Makefile for oldXMenu
|
|
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
|
108265
|
18 ## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
|
19 ## 2010 Free Software Foundation, Inc.
|
76172
|
20
|
94791
|
21 ## This program is free software: you can redistribute it and/or modify
|
76172
|
22 ## it under the terms of the GNU General Public License as published by
|
94791
|
23 ## the Free Software Foundation, either version 3 of the License, or
|
|
24 ## (at your option) any later version.
|
|
25
|
76172
|
26 ## This program is distributed in the hope that it will be useful,
|
|
27 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
28 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
29 ## GNU General Public License for more details.
|
94791
|
30
|
76172
|
31 ## You should have received a copy of the GNU General Public License
|
94791
|
32 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
76172
|
33
|
|
34
|
|
35 ### Commentary:
|
|
36
|
|
37 ## To the best of our knowledge, this code was originally based on the
|
|
38 ## X11 oldXMenu Makefile, which was automatically generated from the
|
108265
|
39 ## X11 oldXMenu Imakefile. There was no explicit copyright information
|
76172
|
40 ## in the Imakefile, therefore we have added the same MIT license as
|
|
41 ## used by the rest of the oldXMenu code.
|
|
42
|
|
43
|
|
44 ### Code:
|
|
45
|
25858
|
46 srcdir=@srcdir@
|
|
47 VPATH=@srcdir@
|
|
48 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
|
108129
|
49 C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
|
108232
|
50 C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
|
|
51 C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
|
109359
b7e047772c64
Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS
Andreas Schwab <schwab@linux-m68k.org>
diff
changeset
|
52 C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
|
b7e047772c64
Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS
Andreas Schwab <schwab@linux-m68k.org>
diff
changeset
|
53 PROFILING_CFLAGS = @PROFILING_CFLAGS@
|
25858
|
54
|
|
55 EXTRA=insque.o
|
|
56 CC=@CC@
|
|
57 CFLAGS=@CFLAGS@
|
108265
|
58 TAGS = etags
|
|
59 RM = rm -f
|
108266
|
60 RANLIB = @RANLIB@
|
25858
|
61 # Solaris 2.1 ar doesn't accept the 'l' option.
|
108265
|
62 AR = ar cq
|
25858
|
63
|
|
64 OBJS = Activate.o \
|
|
65 AddPane.o \
|
|
66 AddSel.o \
|
|
67 ChgPane.o \
|
|
68 ChgSel.o \
|
|
69 Create.o \
|
|
70 DelPane.o \
|
|
71 DelSel.o \
|
|
72 Destroy.o \
|
|
73 Error.o \
|
|
74 EvHand.o \
|
|
75 FindPane.o \
|
|
76 FindSel.o \
|
|
77 InsPane.o \
|
|
78 InsSel.o \
|
|
79 Internal.o \
|
|
80 Locate.o \
|
|
81 Post.o \
|
|
82 Recomp.o \
|
|
83 SetAEQ.o \
|
|
84 SetFrz.o \
|
|
85 SetPane.o \
|
|
86 SetSel.o \
|
|
87 XDelAssoc.o XLookAssoc.o XCrAssoc.o XDestAssoc.o XMakeAssoc.o
|
|
88
|
|
89 all:: libXMenu11.a
|
|
90
|
96923
|
91 ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
|
108094
|
92 $(C_SWITCH_X_SITE) $(C_SWITCH_X_SYSTEM) \
|
109359
b7e047772c64
Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS
Andreas Schwab <schwab@linux-m68k.org>
diff
changeset
|
93 ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} \
|
25858
|
94 $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \
|
|
95 -I../src -I${srcdir} -I${srcdir}/../src
|
|
96
|
|
97 .c.o:
|
|
98 $(CC) -c ${ALL_CFLAGS} $<
|
|
99
|
|
100 libXMenu11.a: $(OBJS) $(EXTRA)
|
|
101 $(RM) $@
|
|
102 $(AR) $@ $(OBJS) $(EXTRA)
|
108266
|
103 $(RANLIB) $@
|
25858
|
104
|
|
105 Activate.o: Activate.c XMenuInt.h XMenu.h X10.h
|
|
106 AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h
|
|
107 AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h
|
|
108 ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h
|
|
109 ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h
|
|
110 Create.o: Create.c XMenuInt.h XMenu.h X10.h
|
|
111 DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h
|
|
112 DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h
|
|
113 Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h
|
|
114 Error.o: Error.c XMenuInt.h XMenu.h X10.h
|
|
115 EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h
|
|
116 FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h
|
|
117 FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h
|
|
118 InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h
|
|
119 InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h
|
|
120 Internal.o: Internal.c XMenuInt.h XMenu.h X10.h
|
|
121 Locate.o: Locate.c XMenuInt.h XMenu.h X10.h
|
|
122 Post.o: Post.c XMenuInt.h XMenu.h X10.h
|
|
123 Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h
|
|
124 SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h
|
|
125 SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h
|
|
126 SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h
|
|
127 SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h
|
|
128 XDelAssoc.o: XDelAssoc.c X10.h
|
|
129 XLookAssoc.o: XLookAssoc.c X10.h
|
|
130 XCrAssoc.o: XCrAssoc.c X10.h
|
|
131 XDestAssoc.o: XDestAssoc.c X10.h
|
|
132 XMakeAssoc.o: XMakeAssoc.c X10.h
|
|
133 insque.o: insque.c
|
|
134
|
|
135 FRC.mostlyclean:
|
|
136 mostlyclean: FRC.mostlyclean
|
|
137 rm -f libXMenu11.a ${OBJS} ${EXTRA}
|
|
138 clean: mostlyclean
|
|
139 distclean: clean
|
76168
|
140 rm -f Makefile
|
25858
|
141 maintainer-clean: distclean
|
|
142
|
|
143 tags::
|
|
144 $(TAGS) -t *.[ch]
|