Fix ifdef-vs-if typo with RANDR13_LIBRARY
[emacs.git] / lwlib / Makefile.in
blob94af056ea624a296b9eacd5538f4b5add1c5b9bf
1 ### @configure_input@
3 # Copyright (C) 1992, 1993 Lucid, Inc.
4 # Copyright (C) 1994, 2001-2016 Free Software Foundation, Inc.
6 # This file is part of the Lucid Widget Library.
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.
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.
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/>.
22 # This was taken from the output of Imake using Lucid's Imakefile.
23 # and set up to be configured by ../configure.
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 = @WARN_CFLAGS@
35 WARN_CFLAGS := $(filter-out -Wwrite-strings,${WARN_CFLAGS})
36 WERROR_CFLAGS = @WERROR_CFLAGS@
37 CAIRO_CFLAGS= @CAIRO_CFLAGS@
39 CC=@CC@
40 CFLAGS=@CFLAGS@
41 CPPFLAGS=@CPPFLAGS@
42 RANLIB=@RANLIB@
44 AR = @AR@
45 ARFLAGS = @ARFLAGS@
46 MKDIR_P = @MKDIR_P@
47 EXEEXT = @EXEEXT@
49 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
50 MOTIF_OBJS = lwlib-Xm.o
52 ## LUCID_OBJS or MOTIF_OBJS.
53 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
55 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
57 # 'make' verbosity.
58 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
60 AM_V_CC = $(am__v_CC_@AM_V@)
61 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
62 am__v_CC_0 = @echo " CC " $@;
63 am__v_CC_1 =
65 AM_V_GEN = $(am__v_GEN_@AM_V@)
66 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
67 am__v_GEN_0 = @echo " GEN " $@;
68 am__v_GEN_1 =
70 AM_V_at = $(am__v_at_@AM_V@)
71 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
72 am__v_at_0 = @
73 am__v_at_1 =
75 DEPDIR = deps
76 AUTO_DEPEND = @AUTO_DEPEND@
78 ifeq ($(AUTO_DEPEND),yes)
79 DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP
80 MKDEPDIR = ${MKDIR_P} ${DEPDIR}
81 else
82 DEPFLAGS =
83 MKDEPDIR = :
84 endif
86 ## ../src is where the generated file (config.h, globals.h) are.
87 ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
88 ## (In an out-of-tree build, these two are not the same.)
89 ## $(srcdir) is where the lwlib sources are.
90 ## There are no generated lwlib files, hence no need for -I.
91 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
92 $(C_SWITCH_MACHINE) $(DEPFLAGS) \
93 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
94 $(CAIRO_CFLAGS) \
95 -Demacs -I../src \
96 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
98 all: liblw.a
99 .PHONY: all
101 .c.o:
102 @$(MKDEPDIR)
103 $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
105 liblw.a: $(OBJS)
106 $(AM_V_GEN)rm -f $@
107 $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS)
108 $(AM_V_at)$(RANLIB) $@
110 globals_h = ../src/globals.h
111 $(globals_h):
112 $(MAKE) -C ../src globals.h
114 ifeq ($(AUTO_DEPEND),yes)
115 -include $(ALLOBJS:%.o=${DEPDIR}/%.d)
116 else
117 include $(srcdir)/deps.mk
118 endif
120 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
122 clean mostlyclean:
123 rm -f *.o liblw.a \#*
124 -rm -rf ${DEPDIR}
126 distclean: clean
127 rm -f Makefile
129 bootstrap-clean maintainer-clean: distclean
130 rm -f TAGS
132 ETAGS = ../lib-src/etags${EXEEXT}
134 ${ETAGS}: FORCE
135 ${MAKE} -C ../lib-src $(notdir $@)
137 ctagsfiles= $(wildcard ${srcdir}/*.[ch])
139 FORCE:
140 .PHONY: tags FORCE
141 tags: TAGS
142 TAGS: ${ETAGS} $(ctagsfiles)
143 ${ETAGS} $(ctagsfiles)
145 ### Makefile.in ends here