* bytecomp.el (byte-compile-make-variable-buffer-local): Tweak warning.
[emacs.git] / lwlib / Makefile.in
blobf228221c45dad202983f212f9ca3966e475c3471
1 ### @configure_input@
3 # Copyright (C) 1992, 1993 Lucid, Inc.
4 # Copyright (C) 1994, 2001-2013 Free Software Foundation, Inc.
6 # This file is part of the Lucid Widget Library.
8 # The Lucid Widget Library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 1, or (at your option)
11 # any later version.
13 # The Lucid Widget Library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
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@
41 ARFLAGS = @ARFLAGS@
43 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
44 MOTIF_OBJS = lwlib-Xm.o
46 ## LUCID_OBJS or MOTIF_OBJS.
47 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
49 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
51 ## ../src is where the generated file (config.h, globals.h) are.
52 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
53 ## (In an out-of-tree build, these two are not the same.)
54 ## $(srcdir) is where the lwlib sources are.
55 ## There are no generated lwlib files, hence no need for -I.
56 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
57 $(C_SWITCH_MACHINE) \
58 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
59 -Demacs -I../src \
60 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
62 .c.o:
63 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
65 all:: liblw.a
67 liblw.a: $(OBJS)
68 rm -f $@
69 $(AR) $(ARFLAGS) $@ $(OBJS)
70 $(RANLIB) $@
72 ## Generated files in ../src, non-generated in $(srcdir)/../src.
73 config_h = ../src/config.h $(srcdir)/../src/conf_post.h
74 lisp_h = $(srcdir)/../src/lisp.h
75 ## lisp.h includes this.
76 globals_h = ../src/globals.h
77 src_h = $(config_h) $(lisp_h) $(globals_h)
79 $(globals_h):
80 cd ../src && $(MAKE) $(MFLAGS) globals.h
82 lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
83 lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
84 lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
85 lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
86 lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
87 lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
88 xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
89 $(srcdir)/../src/xterm.h
91 mostlyclean:
92 rm -f *.o liblw.a \#*
94 clean: mostlyclean
95 distclean: clean
96 rm -f Makefile
97 maintainer-clean: distclean
98 rm -f TAGS
100 TAGS:
101 ../lib-src/etags $(srcdir)/*.[ch]
102 tags: TAGS
103 .PHONY: tags