* calendar/todos.el: Further comment revision.
[emacs.git] / lwlib / Makefile.in
blob2e70e0a4b6dae2e70cc384c7bcc5043f399ec14f
1 # Copyright (C) 1992, 1993 Lucid, Inc.
2 # Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc.
4 # This file is part of the Lucid Widget Library.
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.
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.
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.
22 # This was taken from the output of Imake using Lucid's Imakefile.
23 # and set up to be configured by ../configure.
25 srcdir=@srcdir@
26 VPATH=@srcdir@
27 @SET_MAKE@
28 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
29 C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
30 C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
31 PROFILING_CFLAGS = @PROFILING_CFLAGS@
32 WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
33 WERROR_CFLAGS = @WERROR_CFLAGS@
35 CC=@CC@
36 CFLAGS=@CFLAGS@
37 CPPFLAGS=@CPPFLAGS@
38 RANLIB=@RANLIB@
40 AR = ar cq
42 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
43 MOTIF_OBJS = lwlib-Xm.o
45 ## LUCID_OBJS or MOTIF_OBJS.
46 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
48 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
50 ## ../src is where the generated file (config.h, globals.h) are.
51 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
52 ## (In an out-of-tree build, these two are not the same.)
53 ## $(srcdir) is where the lwlib sources are.
54 ## There are no generated lwlib files, hence no need for -I.
55 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
56 $(C_SWITCH_MACHINE) \
57 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
58 -Demacs -I../src \
59 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
61 .c.o:
62 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
64 all:: liblw.a
66 liblw.a: $(OBJS)
67 rm -f $@
68 $(AR) $@ $(OBJS)
69 $(RANLIB) $@
71 ## Generated files in ../src, non-generated in $(srcdir)/../src.
72 config_h = ../src/config.h $(srcdir)/../src/conf_post.h
73 lisp_h = $(srcdir)/../src/lisp.h
74 ## lisp.h includes this.
75 globals_h = ../src/globals.h
76 src_h = $(config_h) $(lisp_h) $(globals_h)
78 $(globals_h):
79 cd ../src && $(MAKE) $(MFLAGS) globals.h
81 lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
82 lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
83 lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
84 lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
85 lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
86 lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
87 xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
88 $(srcdir)/../src/xterm.h
90 mostlyclean:
91 rm -f *.o liblw.a \#*
93 clean: mostlyclean
94 distclean: clean
95 rm -f Makefile
96 maintainer-clean: distclean
97 rm -f TAGS
99 TAGS:
100 ../lib-src/etags $(srcdir)/*.[ch]
101 tags: TAGS
102 .PHONY: tags