]> code.delx.au - gnu-emacs/blob - lwlib/Makefile.in
Convert consecutive FSF copyright years to ranges.
[gnu-emacs] / lwlib / Makefile.in
1 # Copyright (C) 1992, 1993 Lucid, Inc.
2 # Copyright (C) 1994, 2001-2011 Free Software Foundation, Inc.
3 #
4 # This file is part of the Lucid Widget Library.
5 #
6 # The Lucid Widget Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 1, or (at your option)
9 # any later version.
10 #
11 # The Lucid Widget Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Emacs; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 # Boston, MA 02110-1301, USA.
20
21
22 # This was taken from the output of Imake using Lucid's Imakefile.
23 # and set up to be configured by ../configure.
24
25 srcdir=@srcdir@
26 VPATH=@srcdir@
27 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
28 C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
29 C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
30 C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
31 C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
32 PROFILING_CFLAGS = @PROFILING_CFLAGS@
33
34 CC=@CC@
35 CFLAGS=@CFLAGS@
36 CPPFLAGS=@CPPFLAGS@
37 RANLIB=@RANLIB@
38 # See below--@X_TOOLKIT_TYPE@ is used below.
39 USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
40
41 AR = ar cq
42 RM = rm -f
43
44 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
45 MOTIF_OBJS = lwlib-Xm.o
46
47 TOOLKIT_DEFINES =
48 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
49
50 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
51
52 # ../src is needed to find config.h.
53 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
54 $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) \
55 ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} $(CFLAGS) \
56 -DHAVE_CONFIG_H -Demacs -I. -I../src -I${srcdir} -I${srcdir}/../src
57
58 .c.o:
59 $(CC) -c $(CPPFLAGS) ${ALL_CFLAGS} $<
60
61 all:: liblw.a
62
63 liblw.a: $(OBJS)
64 $(RM) $@
65 $(AR) $@ $(OBJS)
66 $(RANLIB) $@
67
68 # Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
69 lwlib.o: $(srcdir)/lwlib.c Makefile
70 $(CC) -c $(CPPFLAGS) $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
71
72 lwlib-utils.o: lwlib-utils.c lwlib-utils.h
73 lwlib.o: lwlib.c lwlib.h lwlib-int.h lwlib-Xaw.h lwlib-Xlw.h
74 lwlib-Xlw.o: lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h
75 lwlib-Xaw.o: lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
76 lwlib-Xm.o: lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
77 xlwmenu.o: xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h
78
79 mostlyclean:
80 $(RM) *.o core liblw.a \#*
81
82 clean: mostlyclean
83 distclean: clean
84 $(RM) Makefile
85 maintainer-clean: distclean
86 $(RM) TAGS
87
88 TAGS:
89 ../lib-src/etags $(srcdir)/*.[ch]
90 tags: TAGS
91 .PHONY: tags