| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
|
| 3 |
AM_CFLAGS = -Wall |
| 4 |
|
| 5 |
# libraries and files to compile and install |
| 6 |
lib_LTLIBRARIES = libticonv.la |
| 7 |
libticonvincludedir = $(includedir)/tilp2 |
| 8 |
libticonvinclude_HEADERS = \ |
| 9 |
ticonv.h export4.h charset.h |
| 10 |
|
| 11 |
# build instructions |
| 12 |
libticonv_la_CPPFLAGS = -I$(top_srcdir)/intl \ |
| 13 |
-DLOCALEDIR=\"$(datadir)/locale\" \ |
| 14 |
@GLIB_CFLAGS@ -DTICONV_EXPORTS |
| 15 |
libticonv_la_LIBADD = @GLIB_LIBS@ |
| 16 |
libticonv_la_LDFLAGS = -no-undefined -version-info @LT_LIBVERSION@ |
| 17 |
libticonv_la_SOURCES = \ |
| 18 |
ticonv.cc charset.cc tokens.cc filename.cc type2str.cc iconv.c |
| 19 |
|
| 20 |
if OS_WIN32 |
| 21 |
if USE_ICONV |
| 22 |
libticonv_la_LIBADD += -liconv |
| 23 |
endif |
| 24 |
libticonv_la_DEPENDENCIES = ../build/mingw/ticonv-rc.o |
| 25 |
libticonv_la_LDFLAGS += -Wl,../build/mingw/ticonv-rc.o -Wl,--output-def,libticonv.def |
| 26 |
EXTRA_DIST = libticonv.def |
| 27 |
endif |
| 28 |
|
| 29 |
if USE_ICONV |
| 30 |
if OS_MAC |
| 31 |
libticonv_la_CPPFLAGS += -I/usr/local/opt/libiconv/include/ |
| 32 |
libticonv_la_LDFLAGS += -L/usr/local/opt/libiconv/lib/ |
| 33 |
libticonv_la_LIBADD += -liconv |
| 34 |
endif |
| 35 |
endif |