* inotify-test.el (inotify-file-watch-simple): Delete temp-file when done.
[bpt/emacs.git] / lwlib / Makefile.in
... / ...
CommitLineData
1# Copyright (C) 1992, 1993 Lucid, Inc.
2# Copyright (C) 1994, 2001-2013 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. If not, see <http://www.gnu.org/licenses/>.
18
19
20# This was taken from the output of Imake using Lucid's Imakefile.
21# and set up to be configured by ../configure.
22
23srcdir=@srcdir@
24VPATH=@srcdir@
25@SET_MAKE@
26C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
27C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
28C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
29PROFILING_CFLAGS = @PROFILING_CFLAGS@
30WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
31WERROR_CFLAGS = @WERROR_CFLAGS@
32
33CC=@CC@
34CFLAGS=@CFLAGS@
35CPPFLAGS=@CPPFLAGS@
36RANLIB=@RANLIB@
37
38AR = @AR@
39ARFLAGS = @ARFLAGS@
40
41LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
42MOTIF_OBJS = lwlib-Xm.o
43
44## LUCID_OBJS or MOTIF_OBJS.
45TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
46
47OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
48
49## ../src is where the generated file (config.h, globals.h) are.
50## $(srcdir)/../src is where the non-generated files (lisp.h) are.
51## (In an out-of-tree build, these two are not the same.)
52## $(srcdir) is where the lwlib sources are.
53## There are no generated lwlib files, hence no need for -I.
54ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
55 $(C_SWITCH_MACHINE) \
56 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
57 -Demacs -I../src \
58 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
59
60.c.o:
61 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
62
63all:: liblw.a
64
65liblw.a: $(OBJS)
66 rm -f $@
67 $(AR) $(ARFLAGS) $@ $(OBJS)
68 $(RANLIB) $@
69
70## Generated files in ../src, non-generated in $(srcdir)/../src.
71config_h = ../src/config.h $(srcdir)/../src/conf_post.h
72lisp_h = $(srcdir)/../src/lisp.h
73## lisp.h includes this.
74globals_h = ../src/globals.h
75src_h = $(config_h) $(lisp_h) $(globals_h)
76
77$(globals_h):
78 cd ../src && $(MAKE) $(MFLAGS) globals.h
79
80lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
81lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
82 lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
83lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
84lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
85lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
86xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
87 $(srcdir)/../src/xterm.h
88
89mostlyclean:
90 rm -f *.o liblw.a \#*
91
92clean: mostlyclean
93distclean: clean
94 rm -f Makefile
95maintainer-clean: distclean
96 rm -f TAGS
97
98TAGS:
99 ../lib-src/etags $(srcdir)/*.[ch]
100tags: TAGS
101.PHONY: tags