1 # Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # Author : Roman NIKOLAEV
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29 lib_LTLIBRARIES = libAtomicPy.la
31 # extra source files (generated by sip)
32 SIP_SRC = sipAPIAtomicPy.h \
33 sipAtomicPyAtomicMolecule.cc \
37 SIP_FILES = AtomicPy.sip
40 EXTRA_DIST += $(SIP_FILES)
43 CLEANFILES = $(SIP_SRC)
45 dist_libAtomicPy_la_SOURCES = AtomicPy.cxx
47 nodist_libAtomicPy_la_SOURCES = $(SIP_SRC)
50 libAtomicPy_la_CPPFLAGS = $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) \
51 $(GUI_CXXFLAGS) -I$(srcdir)/../ATOMICGUI
53 libAtomicPy_la_LIBADD = $(PYTHON_LIBS) $(SIP_LIBS) \
54 ../ATOMICGUI/libATOMIC.la
56 # custom build step: generate C++ wrapping according to $(SIP_FILES)
57 $(SIP_SRC): $(SIP_FILES)
58 $(SIP) $(PYQT_SIPFLAGS) $<
60 # custom install step: create symbolic link
62 (cd $(DESTDIR)$(libdir); ln -sf libAtomicPy.so AtomicPy.so)
64 # custom uninstall step: remove symbolic link
66 rm -f $(DESTDIR)$(libdir)/AtomicPy.so