PageRenderTime 17ms CodeModel.GetById 2ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/src/Makefile.am

http://scim-python.googlecode.com/
Makefile | 95 lines | 61 code | 10 blank | 24 comment | 0 complexity | 0371c3aae31b1dbe2b0cbb2bbce40bea MD5 | raw file
 1# vim:set noet ts=4:
 2#
 3# scim-python
 4#
 5# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
 6#
 7#
 8# This library is free software; you can redistribute it and/or
 9# modify it under the terms of the GNU Lesser General Public
10# License as published by the Free Software Foundation; either
11# version 2 of the License, or (at your option) any later version.
12#
13# This library is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16# GNU Lesser General Public License for more details.
17#
18# You should have received a copy of the GNU Lesser General Public
19# License along with this program; if not, write to the
20# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21# Boston, MA  02111-1307  USA
22#
23# $Id: $
24#
25
26pyexec_PYTHON = scim.pth
27
28pymoduledir = @pyexecdir@/scim-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@/scim
29pymodule_LTLIBRARIES = _scim.la
30
31_scim_la_SOURCES =				\
32	scim-python.cpp				\
33	scim-python-event.cpp		\
34	scim-python-config.cpp		\
35	scim-python-attribute.cpp	\
36	scim-python-engine.cpp		\
37	scim-python-factory.cpp		\
38	scim-python-helper.cpp		\
39	scim-python-property.cpp	\
40	scim-python-lookup-table.cpp\
41	$(NULL)
42
43_scim_la_CXXFLAGS = 							\
44	@SCIM_CFLAGS@ 							\
45	@GTK2_CFLAGS@ 							\
46	@PYGTK2_CFLAGS@ 						\
47	-DSCIM_PYTHON_DATADIR=\"$(pkgdatadir)\"	\
48	-DSCIM_PYTHON_LOCALEDIR=\"$(localedir)\"\
49	@PYTHON_CFLAGS@							\
50	$(NULL)
51
52_scim_la_LDFLAGS = 											\
53	-rpath $(pymoduledir)									\
54	-Wl,--version-script=$(srcdir)/scim.version-script 		\
55	-avoid-version 											\
56	-module 												\
57	-export-dynamic											\
58	-Wl,-export-dynamic											\
59	@SCIM_LIBS@ 											\
60	@GTK2_LIBS@ 											\
61	@PYGTK2_LIBS@ 											\
62	@PYTHON_LIBS@											\
63	$(NULL)
64
65noinst_HEADERS =				\
66	scim-python.h				\
67	scim-python-event.h			\
68	scim-python-config.h		\
69	scim-python-engine.h		\
70	scim-python-factory.h		\
71	scim-python-helper.h		\
72	scim-python-property.h		\
73	scim-python-attribute.h		\
74	scim-python-lookup-table.h	\
75	$(NULL)
76
77EXTRA_DIST = scim.version-script
78
79SUBDIRS = # setupui
80
81install-data-hook:
82	mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/
83	ln -sf $(pymoduledir)/_scim.so \
84	   $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/python.so
85	mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/
86	ln -sf $(pymoduledir)/_scim.so \
87	   $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/python.so
88	mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/Helper/
89	ln -sf $(pymoduledir)/_scim.so \
90	   $(DESTDIR)@SCIM_MODULEDIR@/Helper/python.so
91
92uninstall-hook:
93	rm $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/python.so
94	rm $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/python.so
95	rm $(DESTDIR)@SCIM_MODULEDIR@/Helper/python.so