Use relative filenames in TAGS files.
[bpt/emacs.git] / lwlib / Makefile.in
... / ...
CommitLineData
1### @configure_input@
2
3# Copyright (C) 1992, 1993 Lucid, Inc.
4# Copyright (C) 1994, 2001-2013 Free Software Foundation, Inc.
5#
6# This file is part of the Lucid Widget Library.
7#
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.
12#
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.
17#
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/>.
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
25srcdir=@srcdir@
26# MinGW CPPFLAGS may use this.
27abs_top_srcdir=@abs_top_srcdir@
28VPATH=@srcdir@
29@SET_MAKE@
30C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
31C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
32C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
33PROFILING_CFLAGS = @PROFILING_CFLAGS@
34WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
35WERROR_CFLAGS = @WERROR_CFLAGS@
36
37CC=@CC@
38CFLAGS=@CFLAGS@
39CPPFLAGS=@CPPFLAGS@
40RANLIB=@RANLIB@
41
42AR = @AR@
43ARFLAGS = @ARFLAGS@
44
45LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
46MOTIF_OBJS = lwlib-Xm.o
47
48## LUCID_OBJS or MOTIF_OBJS.
49TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
50
51OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
52
53## ../src is where the generated file (config.h, globals.h) are.
54## $(srcdir)/../src is where the non-generated files (lisp.h) are.
55## (In an out-of-tree build, these two are not the same.)
56## $(srcdir) is where the lwlib sources are.
57## There are no generated lwlib files, hence no need for -I.
58ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
59 $(C_SWITCH_MACHINE) \
60 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
61 -Demacs -I../src \
62 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
63
64all: liblw.a
65.PHONY: all
66
67.c.o:
68 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
69
70liblw.a: $(OBJS)
71 rm -f $@
72 $(AR) $(ARFLAGS) $@ $(OBJS)
73 $(RANLIB) $@
74
75## Generated files in ../src, non-generated in $(srcdir)/../src.
76config_h = ../src/config.h $(srcdir)/../src/conf_post.h
77lisp_h = $(srcdir)/../src/lisp.h
78## lisp.h includes this.
79globals_h = ../src/globals.h
80src_h = $(config_h) $(lisp_h) $(globals_h)
81
82$(globals_h):
83 cd ../src && $(MAKE) $(MFLAGS) globals.h
84
85lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
86lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
87 lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
88lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
89lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
90lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
91xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
92 $(srcdir)/../src/xterm.h
93
94mostlyclean:
95 rm -f *.o liblw.a \#*
96
97clean: mostlyclean
98distclean: clean
99 rm -f Makefile
100maintainer-clean: distclean
101 rm -f TAGS
102
103
104ETAGS = ../lib-src/etags
105
106ctagsfiles= $(srcdir)/*.[ch]
107
108TAGS: $(ctagsfiles)
109 "$(ETAGS)" $(ctagsfiles)
110tags: TAGS
111.PHONY: tags
112
113
114### Makefile.in ends here