]> code.delx.au - gnu-emacs/blob - lwlib/Makefile.in
Attempt at a fix for mingw CPPFLAGS
[gnu-emacs] / lwlib / Makefile.in
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
25 srcdir=@srcdir@
26 abs_top_srcdir=@abs_top_srcdir@ # MinGW CPPFLAGS may use this
27 VPATH=@srcdir@
28 @SET_MAKE@
29 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
30 C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
31 C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
32 PROFILING_CFLAGS = @PROFILING_CFLAGS@
33 WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
34 WERROR_CFLAGS = @WERROR_CFLAGS@
35
36 CC=@CC@
37 CFLAGS=@CFLAGS@
38 CPPFLAGS=@CPPFLAGS@
39 RANLIB=@RANLIB@
40
41 AR = @AR@
42 ARFLAGS = @ARFLAGS@
43
44 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
45 MOTIF_OBJS = lwlib-Xm.o
46
47 ## LUCID_OBJS or MOTIF_OBJS.
48 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
49
50 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
51
52 ## ../src is where the generated file (config.h, globals.h) are.
53 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
54 ## (In an out-of-tree build, these two are not the same.)
55 ## $(srcdir) is where the lwlib sources are.
56 ## There are no generated lwlib files, hence no need for -I.
57 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
58 $(C_SWITCH_MACHINE) \
59 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
60 -Demacs -I../src \
61 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
62
63 all: liblw.a
64 .PHONY: all
65
66 .c.o:
67 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
68
69 liblw.a: $(OBJS)
70 rm -f $@
71 $(AR) $(ARFLAGS) $@ $(OBJS)
72 $(RANLIB) $@
73
74 ## Generated files in ../src, non-generated in $(srcdir)/../src.
75 config_h = ../src/config.h $(srcdir)/../src/conf_post.h
76 lisp_h = $(srcdir)/../src/lisp.h
77 ## lisp.h includes this.
78 globals_h = ../src/globals.h
79 src_h = $(config_h) $(lisp_h) $(globals_h)
80
81 $(globals_h):
82 cd ../src && $(MAKE) $(MFLAGS) globals.h
83
84 lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
85 lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
86 lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
87 lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
88 lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
89 lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
90 xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
91 $(srcdir)/../src/xterm.h
92
93 mostlyclean:
94 rm -f *.o liblw.a \#*
95
96 clean: mostlyclean
97 distclean: clean
98 rm -f Makefile
99 maintainer-clean: distclean
100 rm -f TAGS
101
102 TAGS:
103 ../lib-src/etags $(srcdir)/*.[ch]
104 tags: TAGS
105 .PHONY: tags