1: # Makefile for libiconv/lib
2:
3: #### Start of system configuration section. ####
4:
5: # Directories used by "make":
6: srcdir = @srcdir@
7:
8: # Directories used by "make install":
9: prefix = @prefix@
10: local_prefix = /usr/local
11: exec_prefix = @exec_prefix@
12: libdir = @libdir@
13:
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_DLL_EXPORTED macro.
23: # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
24: DEFS = -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBICONV -DBUILDING_DLL \
25: -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
26: -Dset_relocation_prefix=libiconv_set_relocation_prefix \
27: -Drelocate=libiconv_relocate -Drelocate2=libiconv_relocate2 @DEFS@
28: LIBTOOL = @LIBTOOL@
29: LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
30: LIBTOOL_LINK = $(LIBTOOL) --mode=link
31: LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
32: LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
33: AR = @AR@
34: # Windows resource compiler (windres). Used via libtool.
35: RC = @RC@
36: CP = cp
37: MV = mv
38: LN = @LN@
39: LN_S = @LN_S@
40: RM = rm -f
41:
42: # Programs used by "make install":
43: INSTALL = @INSTALL@
44: INSTALL_PROGRAM = @INSTALL_PROGRAM@
45: INSTALL_DATA = @INSTALL_DATA@
46: mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
47:
48: #### End of system configuration section. ####
49:
50: SHELL = @SHELL@
51:
52: # Before making a release, change this according to the libtool documentation,
53: # section "Library interface versions".
54: LIBICONV_VERSION_INFO = 8:1:6
55:
56: PACKAGE_VERSION = @VERSION@
57:
58: # Needed by $(LIBTOOL).
59: top_builddir = ..
60:
61: SOURCES = $(srcdir)/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.c
62:
63: OBJECTS = iconv.lo localcharset.lo relocatable.lo $(OBJECTS_EXP_@WOE32DLL@) $(OBJECTS_RES_@WOE32@)
64: OBJECTS_EXP_yes = iconv-exports.lo
65: OBJECTS_EXP_no =
66: OBJECTS_RES_yes = libiconv.res.lo
67: OBJECTS_RES_no =
68:
69: all : libiconv.la
70:
71: libiconv.la : $(OBJECTS)
72: $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libiconv.la -rpath $(libdir) -version-info $(LIBICONV_VERSION_INFO) -no-undefined $(OBJECTS)
73:
74: iconv.lo : $(srcdir)/iconv.c $(srcdir)/converters.h \
75: $(srcdir)/encodings.def $(srcdir)/encodings_aix.def $(srcdir)/encodings_osf1.def $(srcdir)/encodings_dos.def $(srcdir)/encodings_local.def \
76: $(srcdir)/aliases.h $(srcdir)/aliases_sysaix.h $(srcdir)/aliases_syshpux.h $(srcdir)/aliases_sysosf1.h $(srcdir)/aliases_syssolaris.h \
77: $(srcdir)/aliases_aix.h $(srcdir)/aliases_aix_sysaix.h \
78: $(srcdir)/aliases_osf1.h $(srcdir)/aliases_osf1_sysosf1.h \
79: $(srcdir)/aliases_dos.h \
80: $(srcdir)/aliases_extra.h \
81: $(srcdir)/flags.h $(srcdir)/translit.h
82: $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/iconv.c
83:
84: localcharset.lo : $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.h
85: $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../libcharset/lib/localcharset.c
86:
87: relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h
88: $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/relocatable.c
89:
90: iconv-exports.lo : $(srcdir)/../woe32dll/iconv-exports.c
91: $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../woe32dll/iconv-exports.c
92:
93: libiconv.res.lo : $(srcdir)/../windows/libiconv.rc
94: $(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
95:
96: # Installs the library and include files only. Typically called with only
97: # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
98: install-lib : all force
99: if [ ! -d $(libdir) ] ; then $(mkinstalldirs) $(libdir) ; fi
100: $(LIBTOOL_INSTALL) $(INSTALL) libiconv.la $(libdir)/libiconv.la
101:
102: # On AIX, libiconv.a must include the object files of /lib/libiconv.a,
103: # otherwise the setlocale() call fails when invoked from executables linked
104: # with -rpath $(libdir), even if linked without -liconv.
105: install : all force
106: if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
107: $(LIBTOOL_INSTALL) $(INSTALL) libiconv.la $(DESTDIR)$(libdir)/libiconv.la
108: case "@host_os@" in \
109: aix*) (cd $(DESTDIR)$(libdir) && \
110: objects=`$(AR) t libiconv.a`" "`$(AR) t /lib/libiconv.a` && \
111: $(AR) x libiconv.a && $(AR) x /lib/libiconv.a && \
112: $(AR) q libiconv.new.a $$objects && \
113: rm -f $$objects && \
114: mv -f libiconv.new.a libiconv.a) ;; \
115: esac
116:
117: install-strip : install
118:
119: installdirs : force
120: if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
121:
122: uninstall : force
123: $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libiconv.la
124:
125: check : all
126:
127: mostlyclean : clean
128:
129: clean : force
130: $(RM) *.o *.lo *.a *.la core *.stackdump so_locations
131: $(RM) -r .libs _libs
132:
133: distclean : clean
134: $(RM) Makefile config.h
135:
136: maintainer-clean : distclean
137:
138: # List of source files.
139: SOURCE_FILES = \
140: Makefile.in config.h.in \
141: encodings.def \
142: encodings_aix.def \
143: encodings_osf1.def \
144: encodings_dos.def \
145: encodings_extra.def \
146: encodings_local.def \
147: translit.def \
148: genaliases.c \
149: genaliases2.c \
150: genflags.c \
151: gentranslit.c \
152: iconv.c \
153: converters.h \
154: ascii.h \
155: utf8.h \
156: ucs2.h \
157: ucs2be.h \
158: ucs2le.h \
159: ucs4.h \
160: ucs4be.h \
161: ucs4le.h \
162: utf16.h \
163: utf16be.h \
164: utf16le.h \
165: utf32.h \
166: utf32be.h \
167: utf32le.h \
168: utf7.h \
169: ucs2internal.h \
170: ucs2swapped.h \
171: ucs4internal.h \
172: ucs4swapped.h \
173: c99.h \
174: java.h \
175: iso8859_1.h \
176: iso8859_2.h \
177: iso8859_3.h \
178: iso8859_4.h \
179: iso8859_5.h \
180: iso8859_6.h \
181: iso8859_7.h \
182: iso8859_8.h \
183: iso8859_9.h \
184: iso8859_10.h \
185: iso8859_11.h \
186: iso8859_13.h \
187: iso8859_14.h \
188: iso8859_15.h \
189: iso8859_16.h \
190: koi8_r.h \
191: koi8_u.h \
192: koi8_ru.h \
193: cp1250.h \
194: cp1251.h \
195: cp1252.h \
196: cp1253.h \
197: cp1254.h \
198: cp1255.h \
199: cp1256.h \
200: cp1257.h \
201: cp1258.h \
202: vietcomb.h \
203: cp850.h \
204: cp862.h \
205: cp866.h \
206: cp1131.h \
207: mac_roman.h \
208: mac_centraleurope.h \
209: mac_iceland.h \
210: mac_croatian.h \
211: mac_romania.h \
212: mac_cyrillic.h \
213: mac_ukraine.h \
214: mac_greek.h \
215: mac_turkish.h \
216: mac_hebrew.h \
217: mac_arabic.h \
218: mac_thai.h \
219: hp_roman8.h \
220: nextstep.h \
221: armscii_8.h \
222: georgian_academy.h \
223: georgian_ps.h \
224: koi8_t.h \
225: pt154.h \
226: rk1048.h \
227: mulelao.h \
228: cp1133.h \
229: tis620.h \
230: cp874.h \
231: viscii.h \
232: tcvn.h \
233: iso646_jp.h \
234: jisx0201.h \
235: jisx0208.h \
236: jisx0212.h \
237: iso646_cn.h \
238: gb2312.h \
239: isoir165.h \
240: isoir165ext.h \
241: gb12345.h \
242: gb12345ext.h \
243: gbk.h \
244: gbkext1.h \
245: gbkext2.h \
246: gbkext_inv.h \
247: cp936ext.h \
248: cns11643.h \
249: cns11643_1.h \
250: cns11643_2.h \
251: cns11643_3.h \
252: cns11643_4.h \
253: cns11643_4a.h \
254: cns11643_4b.h \
255: cns11643_5.h \
256: cns11643_6.h \
257: cns11643_7.h \
258: cns11643_15.h \
259: cns11643_inv.h \
260: big5.h \
261: ksc5601.h \
262: johab_hangul.h \
263: euc_jp.h \
264: sjis.h \
265: cp932.h \
266: cp932ext.h \
267: iso2022_jp.h \
268: iso2022_jp1.h \
269: iso2022_jp2.h \
270: iso2022_jpms.h \
271: cp50221_0208_ext.h \
272: cp50221_0212_ext.h \
273: euc_cn.h \
274: ces_gbk.h \
275: cp936.h \
276: gb18030.h \
277: gb18030ext.h \
278: gb18030uni.h \
279: iso2022_cn.h \
280: iso2022_cnext.h \
281: hz.h \
282: euc_tw.h \
283: ces_big5.h \
284: cp950.h \
285: cp950ext.h \
286: big5hkscs1999.h \
287: hkscs1999.h \
288: big5hkscs2001.h \
289: hkscs2001.h \
290: big5hkscs2004.h \
291: hkscs2004.h \
292: big5hkscs2008.h \
293: hkscs2008.h \
294: euc_kr.h \
295: cp949.h \
296: uhc_1.h \
297: uhc_2.h \
298: johab.h \
299: iso2022_kr.h \
300: cp856.h \
301: cp922.h \
302: cp943.h \
303: cp1046.h \
304: cp1124.h \
305: cp1129.h \
306: cp1161.h \
307: cp1162.h \
308: cp1163.h \
309: dec_kanji.h \
310: dec_hanyu.h \
311: cp437.h \
312: cp737.h \
313: cp775.h \
314: cp852.h \
315: cp853.h \
316: cp855.h \
317: cp857.h \
318: cp858.h \
319: cp860.h \
320: cp861.h \
321: cp863.h \
322: cp864.h \
323: cp865.h \
324: cp869.h \
325: cp1125.h \
326: euc_jisx0213.h \
327: jisx0213.h \
328: shift_jisx0213.h \
329: iso2022_jp3.h \
330: big5_2003.h \
331: tds565.h \
332: atarist.h \
333: riscos1.h \
334: flushwc.h \
335: cjk_variants.h \
336: loops.h \
337: loop_unicode.h \
338: loop_wchar.h \
339: aliases2.h \
340: iconv_open1.h \
341: iconv_open2.h \
342: relocatable.h relocatable.c
343: # List of distributed files imported from other packages.
344: IMPORTED_FILES =
345: # List of distributed files generated by autotools or Makefile.devel.
346: GENERATED_FILES = \
347: aliases.gperf aliases_sysaix.gperf aliases_syshpux.gperf aliases_sysosf1.gperf aliases_syssolaris.gperf \
348: aliases.h aliases_sysaix.h aliases_syshpux.h aliases_sysosf1.h aliases_syssolaris.h \
349: aliases_aix.h aliases_aix_sysaix.h \
350: aliases_osf1.h aliases_osf1_sysosf1.h \
351: aliases_dos.h \
352: aliases_extra.h \
353: canonical.h canonical_sysaix.h canonical_syshpux.h canonical_sysosf1.h canonical_syssolaris.h \
354: canonical_aix.h canonical_aix_sysaix.h \
355: canonical_osf1.h canonical_osf1_sysosf1.h \
356: canonical_dos.h \
357: canonical_extra.h \
358: canonical_local.h canonical_local_sysaix.h canonical_local_syshpux.h canonical_local_sysosf1.h canonical_local_syssolaris.h \
359: flags.h \
360: translit.h
361: # List of distributed files generated by "make".
362: DISTRIBUTED_BUILT_FILES =
363: # List of distributed files.
364: DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
365:
366: distdir : $(DISTFILES)
367: for file in $(DISTFILES); do \
368: if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
369: cp -p "$$dir/$$file" '$(distdir)'/$$file || exit 1; \
370: done
371:
372: force :
373:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>