• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-runtime/libasprintf/
1## Makefile for the gettext-runtime/libasprintf subdirectory of GNU gettext
2## Copyright (C) 2002-2007 Free Software Foundation, Inc.
3##
4## This program is free software; you can redistribute it and/or modify it
5## under the terms of the GNU Library General Public License as published
6## by the Free Software Foundation; either version 2, or (at your option)
7## any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12## Library General Public License for more details.
13##
14## You should have received a copy of the GNU Library General Public
15## License along with this program; if not, write to the Free Software
16## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17## USA.
18
19## Process this file with automake to produce Makefile.in.
20
21AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
22ACLOCAL = ../../build-aux/fixaclocal @ACLOCAL@
23ACLOCAL_AMFLAGS = -I ../../m4 -I ../m4
24EXTRA_DIST =
25MOSTLYCLEANFILES =
26
27RM = rm -f
28
29DEFS = -DIN_LIBASPRINTF @DEFS@
30
31
32# Library include file.
33
34include_HEADERS = autosprintf.h
35
36all-local $(libasprintf_la_OBJECTS): autosprintf.h
37autosprintf.h: autosprintf.h.in
38	cp $(srcdir)/autosprintf.h.in autosprintf.h
39MOSTLYCLEANFILES += autosprintf.h
40EXTRA_DIST += autosprintf.h.in
41
42dist-hook:
43	rm -f $(distdir)/autosprintf.h
44
45
46# Library code.
47
48lib_LTLIBRARIES = libasprintf.la
49
50libasprintf_la_SOURCES = \
51  lib-asprintf.h lib-asprintf.c \
52  autosprintf.h autosprintf.cc
53
54# Sources used only on platforms lacking vasprintf().
55lib_asprintf_EXTRASOURCES = \
56  xsize.h \
57  printf-args.h printf-args.c \
58  printf-parse.h printf-parse.c \
59  vasnprintf.h vasnprintf.c asnprintf.c \
60  vasprintf.h vasprintf.c asprintf.c
61lib-asprintf.lo: $(lib_asprintf_EXTRASOURCES)
62EXTRA_DIST += $(lib_asprintf_EXTRASOURCES)
63
64
65# How to build libasprintf.
66# With libtool 1.5.14, on some platforms, like BeOS, "libtool --tag=CXX" fails
67# to create a shared library, however "libtool --tag=CC" succeeds.
68libasprintf_la_LDFLAGS = @LTNOUNDEF@
69libasprintf.la: $(libasprintf_la_OBJECTS) $(libasprintf_la_DEPENDENCIES)
70	$(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \
71	$(LINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS)
72
73
74# >>> gnulib module alloca.
75EXTRA_DIST += alloca.in.h
76
77# The following is needed in order to create an <alloca.h> when the system
78# doesn't have one that works with the given compiler.
79all-local $(libasprintf_la_OBJECTS): @ALLOCA_H@
80alloca.h: alloca.in.h
81	cp $(srcdir)/alloca.in.h alloca.h
82MOSTLYCLEANFILES += alloca.h
83# <<< gnulib module alloca.
84
85
86# Clean up after Solaris cc.
87clean-local:
88	rm -rf SunWS_cache
89
90
91# Documentation.
92
93MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
94MAKEINFOFLAGS = --no-split
95
96info_TEXINFOS = autosprintf.texi
97
98# We distribute only the HTML documentation.
99# The user can generate the others, via
100#   make autosprintf.ps
101#   make autosprintf.pdf
102
103all-local: html-local
104install-data-local: install-html
105installdirs-local: installdirs-html
106uninstall-local: uninstall-html
107
108CLEANFILES = autosprintf.pdf
109# autosprintf.dvi and autosprintf.ps are already known to automake.
110
111
112# Documentation in DVI format.
113
114# The install-dvi target is already defined by automake.
115
116installdirs-dvi:
117	$(mkdir_p) $(DESTDIR)$(dvidir)
118
119uninstall-dvi:
120	$(RM) $(DESTDIR)$(dvidir)/autosprintf.dvi
121
122# Temporary index files. automake removes only the predefined ones by itself.
123MOSTLYCLEANFILES +=
124
125
126# Documentation in Postscript format.
127
128# Override of automake's definition:
129#DVIPS = @DVIPS@
130DVIPS = @DVIPS@ -D600
131
132autosprintf.ps: autosprintf.dvi
133	$(DVIPS) -o $@ `if test -f autosprintf.dvi; then echo autosprintf.dvi; else echo $(srcdir)/autosprintf.dvi; fi`
134
135# The install-ps target is already defined by automake.
136
137installdirs-ps:
138	$(mkdir_p) $(DESTDIR)$(psdir)
139
140uninstall-ps:
141	$(RM) $(DESTDIR)$(psdir)/autosprintf.ps
142
143
144# Documentation in Portable Document Format.
145
146SUFFIXES = .pdf
147
148# The install-pdf target is already defined by automake.
149
150installdirs-pdf:
151	$(mkdir_p) $(DESTDIR)$(pdfdir)
152
153uninstall-pdf:
154	$(RM) $(DESTDIR)$(pdfdir)/autosprintf.pdf
155
156
157# Documentation in HTML format.
158
159TEXI2HTML = @PERL@ $(srcdir)/texi2html
160
161HTMLS = autosprintf_all.html
162
163html-local: $(HTMLS)
164
165# Override of automake's definition.
166# We want to use texi2html, not makeinfo --html.
167autosprintf_all.html: autosprintf.texi
168	$(TEXI2HTML) -number -monolithic `if test -f autosprintf.texi; then echo autosprintf.texi; else echo $(srcdir)/autosprintf.texi; fi`
169	mv autosprintf.html autosprintf_all.html
170
171# The install-html target is already defined by automake.
172
173installdirs-html:
174	$(mkdir_p) $(DESTDIR)$(htmldir)
175
176uninstall-html:
177	$(RM) $(DESTDIR)$(htmldir)/autosprintf.html
178
179EXTRA_DIST += texi2html autosprintf_all.html
180
181
182# Woe32 support.
183
184EXTRA_DIST += README.woe32
185