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