Synch with Gnus trunk.
[bpt/emacs.git] / oldXMenu / Makefile.in
CommitLineData
1e49ac15
GM
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
114f9c96 18## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
1e49ac15
GM
19## Free Software Foundation, Inc.
20
4eaa4034 21## This program is free software: you can redistribute it and/or modify
1e49ac15 22## it under the terms of the GNU General Public License as published by
4eaa4034
GM
23## the Free Software Foundation, either version 3 of the License, or
24## (at your option) any later version.
25
1e49ac15
GM
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.
4eaa4034 30
1e49ac15 31## You should have received a copy of the GNU General Public License
4eaa4034 32## along with this program. If not, see <http://www.gnu.org/licenses/>.
1e49ac15
GM
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
39## X11 oldXMenu Imakefile. There was no explicit copyright information
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
e745ede7
DL
46srcdir=@srcdir@
47VPATH=@srcdir@
48C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
ed6281b0 49C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
fa5e317a
GM
50C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
51C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
e745ede7
DL
52
53EXTRA=insque.o
54CC=@CC@
55CFLAGS=@CFLAGS@
56CPP=@CPP@
57LN_S=@LN_S@
58 AS = as
59 LD = ld
60 TAGS = etags
61 RM = rm -f
62 MV = mv
63 RANLIB = ranlib
64# Solaris 2.1 ar doesn't accept the 'l' option.
65 AR = ar cq
66 LS = ls
67 LINTOPTS = -axz
68 LINTLIBFLAG = -C
69 MAKE = make
70 STD_DEFINES =
71 CDEBUGFLAGS = -O
72 RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
73 tags TAGS make.log
74
75OBJS = Activate.o \
76 AddPane.o \
77 AddSel.o \
78 ChgPane.o \
79 ChgSel.o \
80 Create.o \
81 DelPane.o \
82 DelSel.o \
83 Destroy.o \
84 Error.o \
85 EvHand.o \
86 FindPane.o \
87 FindSel.o \
88 InsPane.o \
89 InsSel.o \
90 Internal.o \
91 Locate.o \
92 Post.o \
93 Recomp.o \
94 SetAEQ.o \
95 SetFrz.o \
96 SetPane.o \
97 SetSel.o \
98 XDelAssoc.o XLookAssoc.o XCrAssoc.o XDestAssoc.o XMakeAssoc.o
99
100all:: libXMenu11.a
101
77ccee09 102ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
e769f484 103 $(C_SWITCH_X_SITE) $(C_SWITCH_X_SYSTEM) \
e745ede7
DL
104 $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \
105 -I../src -I${srcdir} -I${srcdir}/../src
106
107.c.o:
108 $(CC) -c ${ALL_CFLAGS} $<
109
110libXMenu11.a: $(OBJS) $(EXTRA)
111 $(RM) $@
112 $(AR) $@ $(OBJS) $(EXTRA)
113 @echo Do not be alarmed if the following ranlib command
114 @echo fails due to the absence of a ranlib program on your system.
115 -$(RANLIB) $@ || true
116#If running ranlib fails, probably there is none.
117#That's ok. So don't stop the build.
118
119Activate.o: Activate.c XMenuInt.h XMenu.h X10.h
120AddPane.o: AddPane.c XMenuInt.h XMenu.h X10.h
121AddSel.o: AddSel.c XMenuInt.h XMenu.h X10.h
122ChgPane.o: ChgPane.c XMenuInt.h XMenu.h X10.h
123ChgSel.o: ChgSel.c XMenuInt.h XMenu.h X10.h
124Create.o: Create.c XMenuInt.h XMenu.h X10.h
125DelPane.o: DelPane.c XMenuInt.h XMenu.h X10.h
126DelSel.o: DelSel.c XMenuInt.h XMenu.h X10.h
127Destroy.o: Destroy.c XMenuInt.h XMenu.h X10.h
128Error.o: Error.c XMenuInt.h XMenu.h X10.h
129EvHand.o: EvHand.c XMenuInt.h XMenu.h X10.h
130FindPane.o: FindPane.c XMenuInt.h XMenu.h X10.h
131FindSel.o: FindSel.c XMenuInt.h XMenu.h X10.h
132InsPane.o: InsPane.c XMenuInt.h XMenu.h X10.h
133InsSel.o: InsSel.c XMenuInt.h XMenu.h X10.h
134Internal.o: Internal.c XMenuInt.h XMenu.h X10.h
135Locate.o: Locate.c XMenuInt.h XMenu.h X10.h
136Post.o: Post.c XMenuInt.h XMenu.h X10.h
137Recomp.o: Recomp.c XMenuInt.h XMenu.h X10.h
138SetAEQ.o: SetAEQ.c XMenuInt.h XMenu.h X10.h
139SetFrz.o: SetFrz.c XMenuInt.h XMenu.h X10.h
140SetPane.o: SetPane.c XMenuInt.h XMenu.h X10.h
141SetSel.o: SetSel.c XMenuInt.h XMenu.h X10.h
142XDelAssoc.o: XDelAssoc.c X10.h
143XLookAssoc.o: XLookAssoc.c X10.h
144XCrAssoc.o: XCrAssoc.c X10.h
145XDestAssoc.o: XDestAssoc.c X10.h
146XMakeAssoc.o: XMakeAssoc.c X10.h
147insque.o: insque.c
148
149FRC.mostlyclean:
150mostlyclean: FRC.mostlyclean
151 rm -f libXMenu11.a ${OBJS} ${EXTRA}
152clean: mostlyclean
153distclean: clean
ee3ce9ff 154 rm -f Makefile
e745ede7
DL
155maintainer-clean: distclean
156
157tags::
158 $(TAGS) -t *.[ch]