1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2 ## Copyright (C) 2002 James Su
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
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
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 MAINTAINERCLEANFILES = Makefile.in
20 EXTRA_DIST = config.version-script
22 INCLUDES = -I$(top_builddir) \
23 -I$(top_builddir)/ism/src \
25 -I$(top_srcdir)/ism/src \
26 -I$(top_srcdir)/ism/intl \
27 -DSCIM_DATADIR=\"@SCIM_DATADIR@\" \
28 -DSCIM_LOCALEDIR=\"@SCIM_LOCALEDIR@\" \
29 -DSCIM_SYSCONFDIR=\"@SCIM_SYSCONFDIR@\" \
30 -DSCIM_LIBEXECDIR=\"@SCIM_LIBEXECDIR@\" \
31 -DSCIM_ICONDIR=\"@SCIM_ICONDIR@\" \
32 -DSCIM_MODULE_PATH=\"@SCIM_MODULE_PATH@\"
34 moduledir = @SCIM_MODULE_PATH@/$(SCIM_BINARY_VERSION)/Config
36 noinst_HEADERS = scim_simple_config.h \
39 if SCIM_BUILD_CONFIG_SIMPLE
40 CONFIG_SIMPLE_MODULE = simple.la
43 if SCIM_BUILD_CONFIG_SOCKET
44 CONFIG_SOCKET_MODULE = socket.la
47 if SCIM_LD_VERSION_SCRIPT
48 LD_VERSION_SCRIPT_OPTION="-Wl,--version-script=$(srcdir)/config.version-script"
51 module_LTLIBRARIES = \
52 $(CONFIG_SIMPLE_MODULE) \
53 $(CONFIG_SOCKET_MODULE)
55 simple_la_SOURCES = scim_simple_config.cpp
57 simple_la_LDFLAGS = -avoid-version \
60 $(LD_VERSION_SCRIPT_OPTION) \
61 @LIBTOOL_EXPORT_OPTIONS@ \
64 simple_la_LIBADD = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la
66 socket_la_SOURCES = scim_socket_config.cpp
68 socket_la_LDFLAGS = -avoid-version \
71 $(LD_VERSION_SCRIPT_OPTION) \
72 @LIBTOOL_EXPORT_OPTIONS@ \
75 socket_la_LIBADD = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la