]> code.delx.au - gnu-emacs/blob - lwlib/Makefile.in
Merge from emacs-24; up to 2014-06-28T23:35:17Z!rgm@gnu.org
[gnu-emacs] / lwlib / Makefile.in
1 ### @configure_input@
2
3 # Copyright (C) 1992, 1993 Lucid, Inc.
4 # Copyright (C) 1994, 2001-2014 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
25 srcdir=@srcdir@
26 # MinGW CPPFLAGS may use this.
27 abs_top_srcdir=@abs_top_srcdir@
28 VPATH=@srcdir@
29 @SET_MAKE@
30 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
31 C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
32 C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
33 PROFILING_CFLAGS = @PROFILING_CFLAGS@
34 WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
35 WERROR_CFLAGS = @WERROR_CFLAGS@
36
37 CC=@CC@
38 CFLAGS=@CFLAGS@
39 CPPFLAGS=@CPPFLAGS@
40 RANLIB=@RANLIB@
41
42 AR = @AR@
43 ARFLAGS = @ARFLAGS@
44 MKDIR_P = @MKDIR_P@
45
46 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
47 MOTIF_OBJS = lwlib-Xm.o
48
49 ## LUCID_OBJS or MOTIF_OBJS.
50 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
51
52 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
53
54 DEPDIR = deps
55 ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
56 DEPFLAGS = @DEPFLAGS@
57 ## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'.
58 MKDEPDIR = @MKDEPDIR@
59
60 ## ../src is where the generated file (config.h, globals.h) are.
61 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
62 ## (In an out-of-tree build, these two are not the same.)
63 ## $(srcdir) is where the lwlib sources are.
64 ## There are no generated lwlib files, hence no need for -I.
65 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
66 $(C_SWITCH_MACHINE) $(DEPFLAGS) \
67 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
68 -Demacs -I../src \
69 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
70
71 all: liblw.a
72 .PHONY: all
73
74 .c.o:
75 @$(MKDEPDIR)
76 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
77
78 liblw.a: $(OBJS)
79 rm -f $@
80 $(AR) $(ARFLAGS) $@ $(OBJS)
81 $(RANLIB) $@
82
83 globals_h = ../src/globals.h
84 $(globals_h):
85 $(MAKE) -C ../src globals.h
86
87 ## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk.
88 @lwlib_deps_frag@
89
90 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
91
92 clean mostlyclean:
93 rm -f *.o liblw.a \#*
94 -rm -rf ${DEPDIR}
95
96 distclean: clean
97 rm -f Makefile
98
99 bootstrap-clean maintainer-clean: distclean
100 rm -f TAGS
101
102
103 ETAGS = ../lib-src/etags
104
105 ctagsfiles= $(srcdir)/*.[ch]
106
107 TAGS: $(ctagsfiles)
108 "$(ETAGS)" $(ctagsfiles)
109 tags: TAGS
110 .PHONY: tags
111
112
113 ### Makefile.in ends here