Git init
[framework/uifw/isf.git] / ism / modules / config / Makefile.am
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2 ## Copyright (C) 2002 James Su
3 ##
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)
7 ## any later version.
8 ##
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.
13 ##
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.
17
18 MAINTAINERCLEANFILES    = Makefile.in
19 CLEANFILES              = *.bak
20 EXTRA_DIST              = config.version-script
21
22 INCLUDES                = -I$(top_builddir) \
23                           -I$(top_builddir)/ism/src \
24                           -I$(top_srcdir) \
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@\"
33
34 moduledir               = @SCIM_MODULE_PATH@/$(SCIM_BINARY_VERSION)/Config
35
36 noinst_HEADERS          = scim_simple_config.h \
37                           scim_socket_config.h
38
39 if SCIM_BUILD_CONFIG_SIMPLE
40 CONFIG_SIMPLE_MODULE    = simple.la
41 endif
42
43 if SCIM_BUILD_CONFIG_SOCKET
44 CONFIG_SOCKET_MODULE    = socket.la
45 endif
46
47 if SCIM_LD_VERSION_SCRIPT
48 LD_VERSION_SCRIPT_OPTION="-Wl,--version-script=$(srcdir)/config.version-script"
49 endif
50
51 module_LTLIBRARIES      = \
52                           $(CONFIG_SIMPLE_MODULE) \
53                           $(CONFIG_SOCKET_MODULE)
54
55 simple_la_SOURCES       = scim_simple_config.cpp
56
57 simple_la_LDFLAGS       = -avoid-version \
58                           -rpath $(moduledir) \
59                           -module \
60                           $(LD_VERSION_SCRIPT_OPTION) \
61                           @LIBTOOL_EXPORT_OPTIONS@ \
62                           @LTLIBINTL@
63
64 simple_la_LIBADD        = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la
65
66 socket_la_SOURCES       = scim_socket_config.cpp
67
68 socket_la_LDFLAGS       = -avoid-version \
69                           -rpath $(moduledir) \
70                           -module \
71                           $(LD_VERSION_SCRIPT_OPTION) \
72                           @LIBTOOL_EXPORT_OPTIONS@ \
73                           @LTLIBINTL@
74
75 socket_la_LIBADD        = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la
76