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