]> code.delx.au - gnu-emacs/blob - lwlib/Makefile.in
; Merge from origin/emacs-24
[gnu-emacs] / lwlib / Makefile.in
1 ### @configure_input@
2
3 # Copyright (C) 1992, 1993 Lucid, Inc.
4 # Copyright (C) 1994, 2001-2015 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 CAIRO_CFLAGS= @CAIRO_CFLAGS@
37
38 CC=@CC@
39 CFLAGS=@CFLAGS@
40 CPPFLAGS=@CPPFLAGS@
41 RANLIB=@RANLIB@
42
43 AR = @AR@
44 ARFLAGS = @ARFLAGS@
45 MKDIR_P = @MKDIR_P@
46
47 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
48 MOTIF_OBJS = lwlib-Xm.o
49
50 ## LUCID_OBJS or MOTIF_OBJS.
51 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
52
53 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
54
55 # 'make' verbosity.
56 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
57
58 AM_V_CC = $(am__v_CC_@AM_V@)
59 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
60 am__v_CC_0 = @echo " CC " $@;
61 am__v_CC_1 =
62
63 AM_V_GEN = $(am__v_GEN_@AM_V@)
64 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
65 am__v_GEN_0 = @echo " GEN " $@;
66 am__v_GEN_1 =
67
68 AM_V_at = $(am__v_at_@AM_V@)
69 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
70 am__v_at_0 = @
71 am__v_at_1 =
72
73 DEPDIR = deps
74 AUTO_DEPEND = @AUTO_DEPEND@
75
76 ifeq ($(AUTO_DEPEND),yes)
77 DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP
78 MKDEPDIR = ${MKDIR_P} ${DEPDIR}
79 else
80 DEPFLAGS =
81 MKDEPDIR = :
82 endif
83
84 ## ../src is where the generated file (config.h, globals.h) are.
85 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
86 ## (In an out-of-tree build, these two are not the same.)
87 ## $(srcdir) is where the lwlib sources are.
88 ## There are no generated lwlib files, hence no need for -I.
89 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
90 $(C_SWITCH_MACHINE) $(DEPFLAGS) \
91 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
92 $(CAIRO_CFLAGS) \
93 -Demacs -I../src \
94 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
95
96 all: liblw.a
97 .PHONY: all
98
99 .c.o:
100 @$(MKDEPDIR)
101 $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
102
103 liblw.a: $(OBJS)
104 $(AM_V_GEN)rm -f $@
105 $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS)
106 $(AM_V_at)$(RANLIB) $@
107
108 globals_h = ../src/globals.h
109 $(globals_h):
110 $(MAKE) -C ../src globals.h
111
112 ifeq ($(AUTO_DEPEND),yes)
113 -include $(ALLOBJS:%.o=${DEPDIR}/%.d)
114 else
115 include $(srcdir)/deps.mk
116 endif
117
118 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
119
120 clean mostlyclean:
121 rm -f *.o liblw.a \#*
122 -rm -rf ${DEPDIR}
123
124 distclean: clean
125 rm -f Makefile
126
127 bootstrap-clean maintainer-clean: distclean
128 rm -f TAGS
129
130
131 ETAGS = ../lib-src/etags
132
133 ctagsfiles= $(srcdir)/*.[ch]
134
135 TAGS: $(ctagsfiles)
136 "$(ETAGS)" $(ctagsfiles)
137 tags: TAGS
138 .PHONY: tags
139
140
141 ### Makefile.in ends here