declare smobs in alloc.c
[bpt/emacs.git] / lwlib / Makefile.in
... / ...
CommitLineData
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
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@
44MKDIR_P = @MKDIR_P@
45
46LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
47MOTIF_OBJS = lwlib-Xm.o
48
49## LUCID_OBJS or MOTIF_OBJS.
50TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
51
52OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
53
54DEPDIR = deps
55## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
56DEPFLAGS = @DEPFLAGS@
57## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'.
58MKDEPDIR = @MKDEPDIR@
59
60GUILE_CFLAGS=@GUILE_CFLAGS@
61GUILE_LIBS=@GUILE_LIBS@
62
63## ../src is where the generated file (config.h, globals.h) are.
64## $(srcdir)/../src is where the non-generated files (lisp.h) are.
65## (In an out-of-tree build, these two are not the same.)
66## $(srcdir) is where the lwlib sources are.
67## There are no generated lwlib files, hence no need for -I.
68ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
69 $(C_SWITCH_MACHINE) $(DEPFLAGS) \
70 $(GUILE_CFLAGS) \
71 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
72 -Demacs -I../src \
73 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
74
75all: liblw.a
76.PHONY: all
77
78.c.o:
79 @$(MKDEPDIR)
80 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
81
82liblw.a: $(OBJS)
83 rm -f $@
84 $(AR) $(ARFLAGS) $@ $(OBJS)
85 $(RANLIB) $@
86
87globals_h = ../src/globals.h
88$(globals_h):
89 $(MAKE) -C ../src globals.h
90
91## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk.
92@lwlib_deps_frag@
93
94.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
95
96clean mostlyclean:
97 rm -f *.o liblw.a \#*
98 -rm -rf ${DEPDIR}
99
100distclean: clean
101 rm -f Makefile
102
103bootstrap-clean maintainer-clean: distclean
104 rm -f TAGS
105
106
107ETAGS = ../lib-src/etags
108
109ctagsfiles= $(srcdir)/*.[ch]
110
111TAGS: $(ctagsfiles)
112 "$(ETAGS)" $(ctagsfiles)
113tags: TAGS
114.PHONY: tags
115
116
117### Makefile.in ends here