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
18MAINTAINERCLEANFILES	= Makefile.in
19CLEANFILES		= *.bak
20
21INCLUDES		= -I$(top_builddir) \
22			  -I$(top_builddir)/src \
23	    		  -I$(top_srcdir) \
24			  -I$(top_srcdir)/src \
25			  -I$(top_srcdir)/intl \
26			  -I$(top_srcdir)/data \
27			  -I$(top_srcdir)/utils \
28			  -I$(top_srcdir)/extras/panel \
29			  -DSCIM_DATADIR=\"@SCIM_DATADIR@\" \
30			  -DSCIM_LOCALEDIR=\"@SCIM_LOCALEDIR@\" \
31			  -DSCIM_SYSCONFDIR=\"@SCIM_SYSCONFDIR@\" \
32			  -DSCIM_LIBEXECDIR=\"@SCIM_LIBEXECDIR@\" \
33			  -DSCIM_ICONDIR=\"@SCIM_ICONDIR@\" \
34			  -DSCIM_MODULE_PATH=\"@SCIM_MODULE_PATH@\"
35
36if SCIM_BUILD_FRONTEND_X11
37CONFIG_FRONTEND_X11_MODULE	= x11.la
38SUBDIRS				= IMdkit
39endif
40
41if SCIM_BUILD_FRONTEND_SOCKET
42CONFIG_FRONTEND_SOCKET_MODULE	= socket.la
43endif
44
45noinst_HEADERS		= scim_x11_ic.h \
46		  	  scim_x11_frontend.h \
47			  scim_socket_frontend.h
48
49moduledir		= $(libdir)/scim@SCIM_EPOCH@/$(SCIM_BINARY_VERSION)/FrontEnd
50
51module_LTLIBRARIES	= $(CONFIG_FRONTEND_X11_MODULE) \
52		     	  $(CONFIG_FRONTEND_SOCKET_MODULE)
53
54x11_la_SOURCES 		= scim_x11_frontend.cpp \
55			  scim_x11_ic.cpp
56
57x11_la_CFLAGS		= @X_CFLAGS@
58
59x11_la_CXXFLAGS		= @X_CFLAGS@
60
61x11_la_LDFLAGS		= -avoid-version \
62		     	  -rpath $(moduledir) \
63			  -module \
64			  @LIBTOOL_EXPORT_OPTIONS@ \
65			  @X_LIBS@ \
66			  @LTLIBINTL@
67
68x11_la_LIBADD		= IMdkit/libXimd.la \
69			  $(top_builddir)/src/libscim@SCIM_EPOCH@.la \
70			  $(top_builddir)/utils/libscim-x11utils@SCIM_EPOCH@.la
71
72socket_la_SOURCES 	= scim_socket_frontend.cpp
73
74socket_la_LDFLAGS	= -avoid-version \
75		     	  -rpath $(moduledir) \
76			  -module \
77			  @LIBTOOL_EXPORT_OPTIONS@
78
79socket_la_LIBADD	= $(top_builddir)/src/libscim@SCIM_EPOCH@.la
80
81