Update after gnulib changed.
[libiconv.git] / lib / Makefile.in
blobbd2f0696a2639b4d813c5b66adc0883a766f7740
1 # Makefile for libiconv/lib
3 #### Start of system configuration section. ####
5 # Directories used by "make":
6 srcdir = @srcdir@
8 # Directories used by "make install":
9 prefix = @prefix@
10 local_prefix = /usr/local
11 exec_prefix = @exec_prefix@
12 libdir = @libdir@
14 # Programs used by "make":
15 CC = @CC@
16 CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
17 CPPFLAGS = @CPPFLAGS@
18 LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@)
19 LDFLAGS_yes = -Wl,--export-all-symbols
20 LDFLAGS_no =
21 INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include -I.. -I$(srcdir)/..
22 # -DBUILDING_LIBICONV: Change expansion of LIBICONV_SHLIB_EXPORTED macro.
23 # -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_SHLIB_EXPORTED macro in
24 # localcharset.h.
25 DEFS = -DBUILDING_LIBICONV -DBUILDING_LIBCHARSET @DEFS@
26 LIBTOOL = @LIBTOOL@
27 LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
28 LIBTOOL_LINK = $(LIBTOOL) --mode=link
29 LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
30 LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
31 AR = @AR@
32 # Windows resource compiler (windres). Used via libtool.
33 RC = @RC@
34 CP = cp
35 MV = mv
36 LN = @LN@
37 LN_S = @LN_S@
38 RM = rm -f
40 # Programs used by "make install":
41 INSTALL = @INSTALL@
42 INSTALL_PROGRAM = @INSTALL_PROGRAM@
43 INSTALL_DATA = @INSTALL_DATA@
44 mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
46 #### End of system configuration section. ####
48 SHELL = @SHELL@
50 # Before making a release, change this according to the libtool documentation,
51 # section "Library interface versions".
52 LIBICONV_VERSION_INFO = 8:1:6
54 PACKAGE_VERSION = @VERSION@
56 # Needed by $(LIBTOOL).
57 top_builddir = ..
59 SOURCES = $(srcdir)/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/compat.c
61 OBJECTS = iconv.lo localcharset.lo compat.lo $(OBJECTS_EXP_@WOE32DLL@) $(OBJECTS_RES_@WOE32@)
62 OBJECTS_EXP_yes = iconv-exports.lo
63 OBJECTS_EXP_no =
64 OBJECTS_RES_yes = libiconv.res.lo
65 OBJECTS_RES_no =
67 all : libiconv.la
69 libiconv.la : $(OBJECTS)
70 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libiconv.la -rpath $(libdir) -version-info $(LIBICONV_VERSION_INFO) -no-undefined $(OBJECTS)
72 iconv.lo : $(srcdir)/iconv.c $(srcdir)/converters.h \
73 $(srcdir)/encodings.def $(srcdir)/encodings_aix.def $(srcdir)/encodings_osf1.def $(srcdir)/encodings_dos.def $(srcdir)/encodings_local.def \
74 $(srcdir)/aliases.h $(srcdir)/aliases_sysaix.h $(srcdir)/aliases_syshpux.h $(srcdir)/aliases_sysosf1.h $(srcdir)/aliases_syssolaris.h \
75 $(srcdir)/aliases_aix.h $(srcdir)/aliases_aix_sysaix.h \
76 $(srcdir)/aliases_osf1.h $(srcdir)/aliases_osf1_sysosf1.h \
77 $(srcdir)/aliases_dos.h \
78 $(srcdir)/aliases_extra.h \
79 $(srcdir)/flags.h $(srcdir)/translit.h
80 $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/iconv.c
82 localcharset.lo : $(srcdir)/../libcharset/lib/localcharset.c
83 $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../libcharset/lib/localcharset.c
85 compat.lo : $(srcdir)/compat.c
86 $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/compat.c
88 iconv-exports.lo : $(srcdir)/../woe32dll/iconv-exports.c
89 $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../woe32dll/iconv-exports.c
91 libiconv.res.lo : $(srcdir)/../windows/libiconv.rc
92 $(LIBTOOL_COMPILE) --tag=RC $(RC) `$(SHELL) $(srcdir)/../windows/windres-options --escape $(PACKAGE_VERSION)` -i $(srcdir)/../windows/libiconv.rc -o libiconv.res.lo --output-format=coff
94 # Installs the library and include files only. Typically called with only
95 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
96 install-lib : all force
97 if [ ! -d $(libdir) ] ; then $(mkinstalldirs) $(libdir) ; fi
98 $(LIBTOOL_INSTALL) $(INSTALL) libiconv.la $(libdir)/libiconv.la
100 # On AIX, libiconv.a must include the object files of /lib/libiconv.a,
101 # otherwise the setlocale() call fails when invoked from executables linked
102 # with -rpath $(libdir), even if linked without -liconv.
103 install : all force
104 if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
105 $(LIBTOOL_INSTALL) $(INSTALL) libiconv.la $(DESTDIR)$(libdir)/libiconv.la
106 case "@host_os@" in \
107 aix*) (cd $(DESTDIR)$(libdir) && \
108 objects=`$(AR) t libiconv.a`" "`$(AR) t /lib/libiconv.a` && \
109 $(AR) x libiconv.a && $(AR) x /lib/libiconv.a && \
110 $(AR) q libiconv.new.a $$objects && \
111 rm -f $$objects && \
112 mv -f libiconv.new.a libiconv.a) ;; \
113 esac
115 install-strip : install
117 installdirs : force
118 if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
120 uninstall : force
121 $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libiconv.la
123 check : all
125 mostlyclean : clean
127 clean : force
128 $(RM) *.o *.lo *.a *.la core *.stackdump so_locations
129 $(RM) -r .libs _libs
131 distclean : clean
132 $(RM) Makefile config.h
134 maintainer-clean : distclean
136 # List of source files.
137 SOURCE_FILES = \
138 Makefile.in config.h.in \
139 encodings.def \
140 encodings_aix.def \
141 encodings_osf1.def \
142 encodings_dos.def \
143 encodings_zos.def \
144 encodings_extra.def \
145 encodings_local.def \
146 translit.def \
147 genaliases.c \
148 genaliases2.c \
149 genflags.c \
150 gentranslit.c \
151 iconv.c \
152 converters.h \
153 ascii.h \
154 utf8.h \
155 ucs2.h \
156 ucs2be.h \
157 ucs2le.h \
158 ucs4.h \
159 ucs4be.h \
160 ucs4le.h \
161 utf16.h \
162 utf16be.h \
163 utf16le.h \
164 utf32.h \
165 utf32be.h \
166 utf32le.h \
167 utf7.h \
168 ucs2internal.h \
169 ucs2swapped.h \
170 ucs4internal.h \
171 ucs4swapped.h \
172 c99.h \
173 java.h \
174 iso8859_1.h \
175 iso8859_2.h \
176 iso8859_3.h \
177 iso8859_4.h \
178 iso8859_5.h \
179 iso8859_6.h \
180 iso8859_7.h \
181 iso8859_8.h \
182 iso8859_9.h \
183 iso8859_10.h \
184 iso8859_11.h \
185 iso8859_13.h \
186 iso8859_14.h \
187 iso8859_15.h \
188 iso8859_16.h \
189 koi8_r.h \
190 koi8_u.h \
191 koi8_ru.h \
192 cp1250.h \
193 cp1251.h \
194 cp1252.h \
195 cp1253.h \
196 cp1254.h \
197 cp1255.h \
198 cp1256.h \
199 cp1257.h \
200 cp1258.h \
201 vietcomb.h \
202 cp850.h \
203 cp862.h \
204 cp866.h \
205 cp1131.h \
206 mac_roman.h \
207 mac_centraleurope.h \
208 mac_iceland.h \
209 mac_croatian.h \
210 mac_romania.h \
211 mac_cyrillic.h \
212 mac_ukraine.h \
213 mac_greek.h \
214 mac_turkish.h \
215 mac_hebrew.h \
216 mac_arabic.h \
217 mac_thai.h \
218 hp_roman8.h \
219 nextstep.h \
220 armscii_8.h \
221 georgian_academy.h \
222 georgian_ps.h \
223 koi8_t.h \
224 pt154.h \
225 rk1048.h \
226 mulelao.h \
227 cp1133.h \
228 tis620.h \
229 cp874.h \
230 viscii.h \
231 tcvn.h \
232 iso646_jp.h \
233 jisx0201.h \
234 jisx0208.h \
235 jisx0212.h \
236 iso646_cn.h \
237 gb2312.h \
238 isoir165.h \
239 isoir165ext.h \
240 gb12345.h \
241 gb12345ext.h \
242 gbk.h \
243 gbkext1.h \
244 gbkext2.h \
245 gbkext_inv.h \
246 cp936ext.h \
247 cns11643.h \
248 cns11643_1.h \
249 cns11643_2.h \
250 cns11643_3.h \
251 cns11643_4.h \
252 cns11643_4a.h \
253 cns11643_4b.h \
254 cns11643_5.h \
255 cns11643_6.h \
256 cns11643_7.h \
257 cns11643_15.h \
258 cns11643_inv.h \
259 big5.h \
260 ksc5601.h \
261 johab_hangul.h \
262 euc_jp.h \
263 sjis.h \
264 cp932.h \
265 cp932ext.h \
266 iso2022_jp.h \
267 iso2022_jp1.h \
268 iso2022_jp2.h \
269 iso2022_jpms.h \
270 cp50221_0208_ext.h \
271 cp50221_0212_ext.h \
272 euc_cn.h \
273 ces_gbk.h \
274 cp936.h \
275 gb18030_2005.h gb18030_2022.h \
276 gb18030ext.h \
277 gb18030uni.h \
278 iso2022_cn.h \
279 iso2022_cnext.h \
280 hz.h \
281 euc_tw.h \
282 ces_big5.h \
283 cp950.h \
284 cp950ext.h \
285 big5hkscs1999.h \
286 hkscs1999.h \
287 big5hkscs2001.h \
288 hkscs2001.h \
289 big5hkscs2004.h \
290 hkscs2004.h \
291 big5hkscs2008.h \
292 hkscs2008.h \
293 euc_kr.h \
294 cp949.h \
295 uhc_1.h \
296 uhc_2.h \
297 johab.h \
298 iso2022_kr.h \
299 cp856.h \
300 cp922.h \
301 cp943.h \
302 cp1046.h \
303 cp1124.h \
304 cp1129.h \
305 cp1161.h \
306 cp1162.h \
307 cp1163.h \
308 dec_kanji.h \
309 dec_hanyu.h \
310 cp437.h \
311 cp737.h \
312 cp775.h \
313 cp852.h \
314 cp853.h \
315 cp855.h \
316 cp857.h \
317 cp858.h \
318 cp860.h \
319 cp861.h \
320 cp863.h \
321 cp864.h \
322 cp865.h \
323 cp869.h \
324 cp1125.h \
325 ebcdic037.h \
326 ebcdic273.h \
327 ebcdic277.h \
328 ebcdic278.h \
329 ebcdic280.h \
330 ebcdic282.h \
331 ebcdic284.h \
332 ebcdic285.h \
333 ebcdic297.h \
334 ebcdic423.h \
335 ebcdic424.h \
336 ebcdic425.h \
337 ebcdic500.h \
338 ebcdic838.h \
339 ebcdic870.h \
340 ebcdic871.h \
341 ebcdic875.h \
342 ebcdic880.h \
343 ebcdic905.h \
344 ebcdic924.h \
345 ebcdic1025.h \
346 ebcdic1026.h \
347 ebcdic1047.h \
348 ebcdic1097.h \
349 ebcdic1112.h \
350 ebcdic1122.h \
351 ebcdic1123.h \
352 ebcdic1130.h \
353 ebcdic1132.h \
354 ebcdic1137.h \
355 ebcdic1140.h \
356 ebcdic1141.h \
357 ebcdic1142.h \
358 ebcdic1143.h \
359 ebcdic1144.h \
360 ebcdic1145.h \
361 ebcdic1146.h \
362 ebcdic1147.h \
363 ebcdic1148.h \
364 ebcdic1149.h \
365 ebcdic1153.h \
366 ebcdic1154.h \
367 ebcdic1155.h \
368 ebcdic1156.h \
369 ebcdic1157.h \
370 ebcdic1158.h \
371 ebcdic1160.h \
372 ebcdic1164.h \
373 ebcdic1165.h \
374 ebcdic1166.h \
375 ebcdic4971.h \
376 ebcdic12712.h \
377 ebcdic16804.h \
378 euc_jisx0213.h \
379 jisx0213.h \
380 shift_jisx0213.h \
381 iso2022_jp3.h \
382 big5_2003.h \
383 tds565.h \
384 atarist.h \
385 riscos1.h \
386 flushwc.h \
387 cjk_variants.h \
388 loops.h \
389 loop_unicode.h \
390 loop_wchar.h \
391 aliases2.h \
392 iconv_open1.h \
393 iconv_open2.h \
394 compat.c
395 # List of distributed files imported from other packages.
396 IMPORTED_FILES =
397 # List of distributed files generated by autotools or Makefile.devel.
398 GENERATED_FILES = \
399 aliases.gperf aliases_sysaix.gperf aliases_syshpux.gperf aliases_sysosf1.gperf aliases_syssolaris.gperf \
400 aliases.h aliases_sysaix.h aliases_syshpux.h aliases_sysosf1.h aliases_syssolaris.h \
401 aliases_aix.h aliases_aix_sysaix.h \
402 aliases_osf1.h aliases_osf1_sysosf1.h \
403 aliases_dos.h \
404 aliases_zos.h \
405 aliases_extra.h \
406 canonical.h canonical_sysaix.h canonical_syshpux.h canonical_sysosf1.h canonical_syssolaris.h \
407 canonical_aix.h canonical_aix_sysaix.h \
408 canonical_osf1.h canonical_osf1_sysosf1.h \
409 canonical_dos.h \
410 canonical_zos.h \
411 canonical_extra.h \
412 canonical_local.h canonical_local_sysaix.h canonical_local_syshpux.h canonical_local_sysosf1.h canonical_local_syssolaris.h \
413 flags.h \
414 translit.h
415 # List of distributed files generated by "make".
416 DISTRIBUTED_BUILT_FILES =
417 # List of distributed files.
418 DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
420 distdir : $(DISTFILES)
421 for file in $(DISTFILES); do \
422 if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
423 cp -p "$$dir/$$file" '$(distdir)'/$$file || exit 1; \
424 done
426 force :