nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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 @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 | # Windows resource compiler (windres). Used via libtool. |
||
34 | RC = @RC@ |
||
35 | CP = cp |
||
36 | MV = mv |
||
37 | LN = @LN@ |
||
38 | LN_S = @LN_S@ |
||
39 | RM = rm -f |
||
40 | |||
41 | # Programs used by "make install": |
||
42 | INSTALL = @INSTALL@ |
||
43 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
||
44 | INSTALL_DATA = @INSTALL_DATA@ |
||
45 | mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs |
||
46 | |||
47 | #### End of system configuration section. #### |
||
48 | |||
49 | SHELL = /bin/sh |
||
50 | |||
51 | # Before making a release, change this according to the libtool documentation, |
||
52 | # section "Library interface versions". |
||
53 | LIBICONV_VERSION_INFO = 7:1:5 |
||
54 | |||
55 | PACKAGE_VERSION = @VERSION@ |
||
56 | |||
57 | # Needed by $(LIBTOOL). |
||
58 | top_builddir = .. |
||
59 | |||
60 | SOURCES = $(srcdir)/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.c |
||
61 | |||
62 | OBJECTS = iconv.lo localcharset.lo relocatable.lo $(OBJECTS_EXP_@WOE32DLL@) $(OBJECTS_RES_@WOE32@) |
||
63 | OBJECTS_EXP_yes = iconv-exports.lo |
||
64 | OBJECTS_EXP_no = |
||
65 | OBJECTS_RES_yes = libiconv.res.lo |
||
66 | OBJECTS_RES_no = |
||
67 | |||
68 | all : libiconv.la |
||
69 | |||
70 | libiconv.la : $(OBJECTS) |
||
71 | $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libiconv.la -rpath $(libdir) -version-info $(LIBICONV_VERSION_INFO) -no-undefined $(OBJECTS) |
||
72 | |||
73 | iconv.lo : $(srcdir)/iconv.c $(srcdir)/converters.h \ |
||
74 | $(srcdir)/encodings.def $(srcdir)/encodings_aix.def $(srcdir)/encodings_osf1.def $(srcdir)/encodings_dos.def $(srcdir)/encodings_local.def \ |
||
75 | $(srcdir)/aliases.h $(srcdir)/aliases_sysaix.h $(srcdir)/aliases_syshpux.h $(srcdir)/aliases_sysosf1.h $(srcdir)/aliases_syssolaris.h \ |
||
76 | $(srcdir)/aliases_aix.h $(srcdir)/aliases_aix_sysaix.h \ |
||
77 | $(srcdir)/aliases_osf1.h $(srcdir)/aliases_osf1_sysosf1.h \ |
||
78 | $(srcdir)/aliases_dos.h \ |
||
79 | $(srcdir)/aliases_extra.h \ |
||
80 | $(srcdir)/flags.h $(srcdir)/translit.h |
||
81 | $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/iconv.c |
||
82 | |||
83 | localcharset.lo : $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.h |
||
84 | $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../libcharset/lib/localcharset.c |
||
85 | |||
86 | relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h |
||
87 | $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/relocatable.c |
||
88 | |||
89 | iconv-exports.lo : $(srcdir)/../woe32dll/iconv-exports.c |
||
90 | $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../woe32dll/iconv-exports.c |
||
91 | |||
92 | libiconv.res.lo : $(srcdir)/../windows/libiconv.rc |
||
93 | $(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 | |||
95 | # Installs the library and include files only. Typically called with only |
||
96 | # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here. |
||
97 | install-lib : all force |
||
98 | if [ ! -d $(libdir) ] ; then $(mkinstalldirs) $(libdir) ; fi |
||
99 | $(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(libdir)/libiconv.la |
||
100 | |||
101 | # On AIX, libiconv.a must include the object files of /lib/libiconv.a, |
||
102 | # otherwise the setlocale() call fails when invoked from executables linked |
||
103 | # with -rpath $(libdir), even if linked without -liconv. |
||
104 | install : all force |
||
105 | if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi |
||
106 | $(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(DESTDIR)$(libdir)/libiconv.la |
||
107 | case "@host_os@" in \ |
||
108 | aix*) (cd $(DESTDIR)$(libdir) && \ |
||
109 | objects=`ar t libiconv.a`" "`ar t /lib/libiconv.a` && \ |
||
110 | ar x libiconv.a && ar x /lib/libiconv.a && \ |
||
111 | ar q libiconv.new.a $$objects && \ |
||
112 | rm -f $$objects && \ |
||
113 | mv -f libiconv.new.a libiconv.a) ;; \ |
||
114 | esac |
||
115 | |||
116 | install-strip : install |
||
117 | |||
118 | installdirs : force |
||
119 | if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi |
||
120 | |||
121 | uninstall : force |
||
122 | $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libiconv.la |
||
123 | |||
124 | check : all |
||
125 | |||
126 | mostlyclean : clean |
||
127 | |||
128 | clean : force |
||
129 | $(RM) *.o *.lo *.a *.la core *.stackdump so_locations |
||
130 | $(RM) -r .libs _libs |
||
131 | |||
132 | distclean : clean |
||
133 | $(RM) Makefile config.h libtool |
||
134 | |||
135 | maintainer-clean : distclean |
||
136 | |||
137 | force : |
||
138 |