declare smobs in alloc.c
[bpt/emacs.git] / lwlib / Makefile.in
CommitLineData
bbece175
GM
1### @configure_input@
2
4ad9cddc 3# Copyright (C) 1992, 1993 Lucid, Inc.
ba318903 4# Copyright (C) 1994, 2001-2014 Free Software Foundation, Inc.
695e5b41 5#
4ad9cddc 6# This file is part of the Lucid Widget Library.
695e5b41 7#
4ad9cddc
GM
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.
695e5b41 12#
4ad9cddc
GM
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.
695e5b41 17#
4ad9cddc 18# You should have received a copy of the GNU General Public License
fee0bd5f 19# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
4ad9cddc
GM
20
21
22# This was taken from the output of Imake using Lucid's Imakefile.
ddd6d613 23# and set up to be configured by ../configure.
07bf635f 24
ec171d2e 25srcdir=@srcdir@
11e5e2eb
GM
26# MinGW CPPFLAGS may use this.
27abs_top_srcdir=@abs_top_srcdir@
ec171d2e 28VPATH=@srcdir@
7bd04bb4 29@SET_MAKE@
ec171d2e 30C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
e9bcdbf7
GM
31C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
32C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
e6cfa7c3 33PROFILING_CFLAGS = @PROFILING_CFLAGS@
b8df54ff
PE
34WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
35WERROR_CFLAGS = @WERROR_CFLAGS@
07bf635f 36
ec171d2e
RS
37CC=@CC@
38CFLAGS=@CFLAGS@
93a16fa8 39CPPFLAGS=@CPPFLAGS@
a6578b63 40RANLIB=@RANLIB@
07bf635f 41
150798c5
UM
42AR = @AR@
43ARFLAGS = @ARFLAGS@
93160ec3 44MKDIR_P = @MKDIR_P@
07bf635f 45
e3cf0cde
GM
46LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
47MOTIF_OBJS = lwlib-Xm.o
07bf635f 48
8f45ebb8 49## LUCID_OBJS or MOTIF_OBJS.
e3cf0cde 50TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
ec171d2e 51
e3cf0cde 52OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
07bf635f 53
93160ec3
GM
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
219febd6
BT
60GUILE_CFLAGS=@GUILE_CFLAGS@
61GUILE_LIBS=@GUILE_LIBS@
62
8f45ebb8
GM
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.
77ccee09 68ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
93160ec3 69 $(C_SWITCH_MACHINE) $(DEPFLAGS) \
219febd6 70 $(GUILE_CFLAGS) \
bdf35b6a 71 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
cf38a720 72 -Demacs -I../src \
bc11a394 73 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
07bf635f 74
224e313d
PE
75all: liblw.a
76.PHONY: all
77
07bf635f 78.c.o:
93160ec3 79 @$(MKDEPDIR)
eb5141d9 80 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
07bf635f 81
07bf635f 82liblw.a: $(OBJS)
8f45ebb8 83 rm -f $@
150798c5 84 $(AR) $(ARFLAGS) $@ $(OBJS)
7397acc4 85 $(RANLIB) $@
07bf635f 86
8f45ebb8 87globals_h = ../src/globals.h
8f45ebb8 88$(globals_h):
0d9f8137 89 $(MAKE) -C ../src globals.h
7bd04bb4 90
93160ec3
GM
91## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk.
92@lwlib_deps_frag@
0e6929ec
GM
93
94.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
95
96clean mostlyclean:
8f45ebb8 97 rm -f *.o liblw.a \#*
93160ec3 98 -rm -rf ${DEPDIR}
07bf635f 99
ec171d2e 100distclean: clean
8f45ebb8 101 rm -f Makefile
0e6929ec
GM
102
103bootstrap-clean maintainer-clean: distclean
8f45ebb8 104 rm -f TAGS
07bf635f 105
b0b9e592
GM
106
107ETAGS = ../lib-src/etags
108
c617f3d0 109ctagsfiles= $(srcdir)/*.[ch]
b0b9e592 110
c617f3d0
GM
111TAGS: $(ctagsfiles)
112 "$(ETAGS)" $(ctagsfiles)
6180d6be
RS
113tags: TAGS
114.PHONY: tags
b0b9e592
GM
115
116
117### Makefile.in ends here