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