PageRenderTime 37ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/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. pyexec_PYTHON = scim.pth
  26. pymoduledir = @pyexecdir@/scim-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@/scim
  27. pymodule_LTLIBRARIES = _scim.la
  28. _scim_la_SOURCES = \
  29. scim-python.cpp \
  30. scim-python-event.cpp \
  31. scim-python-config.cpp \
  32. scim-python-attribute.cpp \
  33. scim-python-engine.cpp \
  34. scim-python-factory.cpp \
  35. scim-python-helper.cpp \
  36. scim-python-property.cpp \
  37. scim-python-lookup-table.cpp\
  38. $(NULL)
  39. _scim_la_CXXFLAGS = \
  40. @SCIM_CFLAGS@ \
  41. @GTK2_CFLAGS@ \
  42. @PYGTK2_CFLAGS@ \
  43. -DSCIM_PYTHON_DATADIR=\"$(pkgdatadir)\" \
  44. -DSCIM_PYTHON_LOCALEDIR=\"$(localedir)\"\
  45. @PYTHON_CFLAGS@ \
  46. $(NULL)
  47. _scim_la_LDFLAGS = \
  48. -rpath $(pymoduledir) \
  49. -Wl,--version-script=$(srcdir)/scim.version-script \
  50. -avoid-version \
  51. -module \
  52. -export-dynamic \
  53. -Wl,-export-dynamic \
  54. @SCIM_LIBS@ \
  55. @GTK2_LIBS@ \
  56. @PYGTK2_LIBS@ \
  57. @PYTHON_LIBS@ \
  58. $(NULL)
  59. noinst_HEADERS = \
  60. scim-python.h \
  61. scim-python-event.h \
  62. scim-python-config.h \
  63. scim-python-engine.h \
  64. scim-python-factory.h \
  65. scim-python-helper.h \
  66. scim-python-property.h \
  67. scim-python-attribute.h \
  68. scim-python-lookup-table.h \
  69. $(NULL)
  70. EXTRA_DIST = scim.version-script
  71. SUBDIRS = # setupui
  72. install-data-hook:
  73. mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/
  74. ln -sf $(pymoduledir)/_scim.so \
  75. $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/python.so
  76. mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/
  77. ln -sf $(pymoduledir)/_scim.so \
  78. $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/python.so
  79. mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/Helper/
  80. ln -sf $(pymoduledir)/_scim.so \
  81. $(DESTDIR)@SCIM_MODULEDIR@/Helper/python.so
  82. uninstall-hook:
  83. rm $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/python.so
  84. rm $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/python.so
  85. rm $(DESTDIR)@SCIM_MODULEDIR@/Helper/python.so