]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/Makefile.in
Update libbid according to the latest Intel Decimal Floating-Point Math Library.
[thirdparty/gcc.git] / libcpp / Makefile.in
CommitLineData
4f4e53dd 1# @configure_input@
078e3ffe 2# Makefile for libcpp. Run 'configure' to generate Makefile from Makefile.in
4f4e53dd 3
a945c346 4# Copyright (C) 2004-2024 Free Software Foundation, Inc.
4f4e53dd 5
078e3ffe 6#This file is part of libcpp.
4f4e53dd 7
078e3ffe
PB
8#libcpp is free software; you can redistribute it and/or modify
9#it under the terms of the GNU General Public License as published by
748086b7 10#the Free Software Foundation; either version 3, or (at your option)
078e3ffe 11#any later version.
4f4e53dd 12
078e3ffe
PB
13#libcpp 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.
4f4e53dd 17
078e3ffe 18#You should have received a copy of the GNU General Public License
748086b7
JJ
19#along with libcpp; see the file COPYING3. If not see
20#<http://www.gnu.org/licenses/>.
c6e83800 21
078e3ffe 22@SET_MAKE@
4f4e53dd
PB
23
24srcdir = @srcdir@
5d1f4b27 25top_builddir = .
4f4e53dd 26VPATH = @srcdir@
4f4e53dd 27INSTALL = @INSTALL@
731c4ce0 28AR = @AR@
4f4e53dd 29ARFLAGS = cru
4f4e53dd 30ACLOCAL = @ACLOCAL@
4f4e53dd
PB
31AUTOCONF = @AUTOCONF@
32AUTOHEADER = @AUTOHEADER@
5c3c3683 33CATALOGS = $(patsubst %,po/%,@CATALOGS@)
4f4e53dd 34CC = @CC@
4f4e53dd 35CFLAGS = @CFLAGS@
f1bf410c
JQ
36WARN_CFLAGS = @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@
37CXX = @CXX@
38CXXFLAGS = @CXXFLAGS@
39WARN_CXXFLAGS = @warn@ @WARN_PEDANTIC@ @WERROR@
4f4e53dd
PB
40CPP = @CPP@
41CPPFLAGS = @CPPFLAGS@
4f4e53dd
PB
42EXEEXT = @EXEEXT@
43GMSGFMT = @GMSGFMT@
44INCINTL = @INCINTL@
45INSTALL_DATA = @INSTALL_DATA@
46INSTALL_PROGRAM = @INSTALL_PROGRAM@
47INSTALL_SCRIPT = @INSTALL_SCRIPT@
4f4e53dd
PB
48LDFLAGS = @LDFLAGS@
49LIBICONV = @LIBICONV@
50LIBINTL = @LIBINTL@
4f4e53dd 51PACKAGE = @PACKAGE@
4f4e53dd 52RANLIB = @RANLIB@
4f4e53dd 53SHELL = @SHELL@
078e3ffe 54USED_CATALOGS = @USED_CATALOGS@
4f4e53dd 55XGETTEXT = @XGETTEXT@
f1bf410c
JQ
56CCDEPMODE = @CCDEPMODE@
57CXXDEPMODE = @CXXDEPMODE@
f610dd5f 58DEPDIR = @DEPDIR@
e9411247 59NOEXCEPTION_FLAGS = @noexception_flags@
459260ec 60PICFLAG = @PICFLAG@
051da742 61CET_HOST_FLAGS = @CET_HOST_FLAGS@
078e3ffe 62
2d09b640 63datarootdir = @datarootdir@
4f4e53dd 64datadir = @datadir@
078e3ffe 65exec_prefix = @prefix@
4f4e53dd 66libdir = @libdir@
4f4e53dd 67localedir = $(datadir)/locale
078e3ffe 68prefix = @prefix@
4f4e53dd 69
078e3ffe
PB
70MSGMERGE = msgmerge
71mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs
f610dd5f
ZW
72depcomp = $(SHELL) $(srcdir)/../depcomp
73
078e3ffe
PB
74INCLUDES = -I$(srcdir) -I. -I$(srcdir)/../include @INCINTL@ \
75 -I$(srcdir)/include
76
051da742
L
77ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(PICFLAG) \
78 $(CET_HOST_FLAGS)
e9411247 79ALL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(NOEXCEPTION_FLAGS) $(INCLUDES) \
051da742 80 $(CPPFLAGS) $(PICFLAG) $(CET_HOST_FLAGS)
f1bf410c
JQ
81
82# The name of the compiler to use.
f1bf410c
JQ
83COMPILER = $(CXX)
84COMPILER_FLAGS = $(ALL_CXXFLAGS)
85DEPMODE = $(CXXDEPMODE)
f1bf410c 86
018a4785 87
b224c376 88libcpp_a_OBJS = charset.o directives.o errors.o \
ccfc4c91
OW
89 expr.o files.o identifiers.o init.o lex.o line-map.o macro.o \
90 mkdeps.o pch.o symtab.o traditional.o
078e3ffe 91
e53b6e56
ML
92libcpp_a_SOURCES = charset.cc directives.cc errors.cc \
93 expr.cc files.cc identifiers.cc init.cc lex.cc line-map.cc macro.cc \
94 mkdeps.cc pch.cc symtab.cc traditional.cc
4f4e53dd 95
148e4216 96all: libcpp.a $(USED_CATALOGS)
4f4e53dd
PB
97
98.SUFFIXES:
cd9912b5 99.SUFFIXES: .cc .gmo .o .obj .po .pox
4f4e53dd 100
078e3ffe 101libcpp.a: $(libcpp_a_OBJS)
4f4e53dd 102 -rm -f libcpp.a
078e3ffe 103 $(AR) $(ARFLAGS) libcpp.a $(libcpp_a_OBJS)
4f4e53dd
PB
104 $(RANLIB) libcpp.a
105
078e3ffe 106# Rules to rebuild the configuration
4f4e53dd 107
078e3ffe
PB
108Makefile: $(srcdir)/Makefile.in config.status
109 $(SHELL) ./config.status Makefile
4f4e53dd 110
078e3ffe
PB
111config.status: $(srcdir)/configure
112 $(SHELL) ./config.status --recheck
4f4e53dd 113
078e3ffe
PB
114$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4
115 cd $(srcdir) && $(AUTOCONF)
4f4e53dd 116
078e3ffe 117$(srcdir)/aclocal.m4: @MAINT@ $(srcdir)/../config/acx.m4 \
88fa57d7
KC
118 $(srcdir)/../config/gettext-sister.m4 $(srcdir)/../config/iconv.m4 \
119 $(srcdir)/../config/codeset.m4 $(srcdir)/../config/lib-ld.m4 \
120 $(srcdir)/../config/lib-link.m4 $(srcdir)/../config/lib-prefix.m4 \
18c04407 121 $(srcdir)/../config/override.m4 $(srcdir)/../config/proginstall.m4 \
88fa57d7 122 $(srcdir)/configure.ac
078e3ffe 123 cd $(srcdir) && $(ACLOCAL) -I ../config
4f4e53dd 124
078e3ffe
PB
125config.h: stamp-h1
126 test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
4f4e53dd 127
078e3ffe
PB
128stamp-h1: $(srcdir)/config.in config.status
129 -rm -f stamp-h1
130 $(SHELL) ./config.status config.h
4f4e53dd 131
185a6cc1 132$(srcdir)/config.in: @MAINT@ $(srcdir)/configure.ac
078e3ffe
PB
133 cd $(srcdir) && $(AUTOHEADER)
134 -rm -f stamp-h1
018a4785
ZW
135
136# It is not possible to get LOCALEDIR defined in config.h because
137# the value it needs to be defined to is only determined in the
138# Makefile. Hence we do this instead.
139localedir.h: localedir.hs; @true
140localedir.hs: Makefile
141 echo "#define LOCALEDIR \"$(localedir)\"" > localedir.new
142 $(srcdir)/../move-if-change localedir.new localedir.h
143 echo timestamp > localedir.hs
4f4e53dd 144
078e3ffe 145# Installation rules and other phony targets
4f4e53dd 146
078e3ffe
PB
147# These rule has to look for .gmo modules in both srcdir and
148# the cwd, and has to check that we actually have a catalog
149# for each language, in case they weren't built or included
150# with the distribution.
151installdirs:
152 @$(mkinstalldirs) $(DESTDIR)$(datadir); \
153 cats="$(CATALOGS)"; for cat in $$cats; do \
154 lang=`basename $$cat | sed 's/\.gmo$$//'`; \
155 if [ -f $$cat ] || [ -f $(srcdir)/$$cat ]; then \
156 dir=$(localedir)/$$lang/LC_MESSAGES; \
157 $(mkinstalldirs) $(DESTDIR)$$dir || exit 1; \
158 fi; \
159 done
4f4e53dd 160
078e3ffe
PB
161install-strip install: all installdirs
162 cats="$(CATALOGS)"; for cat in $$cats; do \
163 lang=`basename $$cat | sed 's/\.gmo$$//'`; \
164 if [ -f $$cat ]; then :; \
165 elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
166 else continue; \
167 fi; \
168 dir=$(localedir)/$$lang/LC_MESSAGES; \
169 echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
170 $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
171 done
4f4e53dd 172
078e3ffe
PB
173mostlyclean:
174 -rm -f *.o
4f4e53dd 175
078e3ffe 176clean: mostlyclean
148e4216 177 -rm -rf libcpp.a $(srcdir)/autom4te.cache
4f4e53dd 178
078e3ffe
PB
179distclean: clean
180 -rm -f config.h stamp-h1 config.status config.cache config.log \
018a4785 181 configure.lineno configure.status.lineno Makefile localedir.h \
f610dd5f
ZW
182 localedir.hs $(DEPDIR)/*.Po
183 -rmdir $(DEPDIR)
4f4e53dd 184
078e3ffe
PB
185maintainer-clean: distclean
186 @echo "This command is intended for maintainers to use"
187 @echo "it deletes files that may require special tools to rebuild."
188 -rm -f $(srcdir)/configure $(srcdir)/aclocal.m4
189
190check:
191installcheck:
192dvi:
b5422ad7 193pdf:
078e3ffe
PB
194html:
195info:
196install-info:
4fcb360b 197install-pdf:
c3e80a16 198install-dvi:
4f4e53dd 199install-man:
b2bd74bc 200install-html:
4f4e53dd 201
078e3ffe 202update-po: $(CATALOGS:.gmo=.pox)
4f4e53dd 203
078e3ffe 204.PHONY: installdirs install install-strip mostlyclean clean distclean \
b5422ad7 205 maintainer-clean check installcheck dvi pdf html info install-info \
c3e80a16 206 install-man update-po install-html install-pdf install-dvi
4f4e53dd 207
f610dd5f 208# Dependency rule.
f1bf410c 209COMPILE.base = $(COMPILER) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(COMPILER_FLAGS) -c
f610dd5f 210ifeq ($(DEPMODE),depmode=gcc3)
161031e3
TT
211# Note that we put the dependencies into a .Tpo file, then move them
212# into place if the compile succeeds. We need this because gcc does
213# not atomically write the dependency output file.
214COMPILE = $(COMPILE.base) -o $@ -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Tpo
215POSTCOMPILE = @mv $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
f610dd5f
ZW
216else
217COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
218 $(depcomp) $(COMPILE.base)
161031e3
TT
219# depcomp handles atomicity for us, so we don't need a postcompile
220# step.
221POSTCOMPILE =
f610dd5f
ZW
222endif
223
078e3ffe 224# Implicit rules and I18N
0ca8e815 225
cd9912b5 226.cc.o:
f610dd5f 227 $(COMPILE) $<
161031e3 228 $(POSTCOMPILE)
4f4e53dd
PB
229
230# N.B. We do not attempt to copy these into $(srcdir).
231.po.gmo:
fc0cd180 232 $(mkinstalldirs) po
4f4e53dd
PB
233 $(GMSGFMT) --statistics -o $@ $<
234
235# The new .po has to be gone over by hand, so we deposit it into
236# build/po with a different extension.
237# If build/po/$(PACKAGE).pot exists, use it (it was just created),
238# else use the one in srcdir.
239.po.pox:
fc0cd180 240 $(mkinstalldirs) po
4f4e53dd
PB
241 $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \
242 then echo po/$(PACKAGE).pot; \
243 else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@
244
078e3ffe 245# Rule for regenerating the message template.
50f47ee0 246$(PACKAGE).pot: po/$(PACKAGE).pot
078e3ffe 247po/$(PACKAGE).pot: $(libcpp_a_SOURCES)
f1450211 248 $(mkinstalldirs) $(srcdir)/po
4f4e53dd 249 $(XGETTEXT) --default-domain=$(PACKAGE) \
50f47ee0 250 --keyword=_ --keyword=N_ \
87cf0651
SB
251 --keyword=cpp_error:3 \
252 --keyword=cpp_warning:3 \
253 --keyword=cpp_pedwarning:3 \
254 --keyword=cpp_warning_syshdr:3 \
becc9a12
JM
255 --keyword=cpp_warning_at:4 \
256 --keyword=cpp_pedwarning_at:4 \
50f47ee0 257 --keyword=cpp_error_with_line:5 \
87cf0651
SB
258 --keyword=cpp_warning_with_line:5 \
259 --keyword=cpp_pedwarning_with_line:5 \
260 --keyword=cpp_warning_with_line_syshdr:5 \
becc9a12 261 --keyword=cpp_error_at:4 \
87cf0651 262 --keyword=cpp_errno:3 \
50f47ee0 263 --keyword=SYNTAX_ERROR --keyword=SYNTAX_ERROR2 \
4f4e53dd 264 --copyright-holder="Free Software Foundation, Inc." \
e228c50f 265 --msgid-bugs-address="https://gcc.gnu.org/bugs/" \
50f47ee0
JM
266 --language=c -o po/$(PACKAGE).pot.tmp $^
267 sed 's:$(srcdir)/::g' <po/$(PACKAGE).pot.tmp >po/$(PACKAGE).pot
268 rm po/$(PACKAGE).pot.tmp
078e3ffe 269
909b30a1
EG
270ETAGS = @ETAGS@
271
abcd1775 272TAGS_SOURCES = $(libcpp_a_SOURCES) internal.h system.h ucnid.h \
78d132d7
DM
273 include/cpplib.h include/line-map.h include/mkdeps.h include/symtab.h \
274 include/rich-location.h
275
7f27b0f8
TT
276
277TAGS: $(TAGS_SOURCES)
909b30a1 278 cd $(srcdir) && $(ETAGS) $(TAGS_SOURCES)
078e3ffe 279
4f4e53dd
PB
280# Tell versions [3.59,3.63) of GNU make to not export all variables.
281# Otherwise a system limit (for SysV at least) may be exceeded.
282.NOEXPORT:
078e3ffe
PB
283
284# Dependencies
148e4216 285-include $(patsubst %.o, $(DEPDIR)/%.Po, $(libcpp_a_OBJS))
078e3ffe 286
f610dd5f
ZW
287# Dependencies on generated headers have to be explicit.
288init.o: localedir.h