Salome HOME
4353e257d6ab56a3f47a74fd80350fb89e6faa9c
[samples/atomic.git] / src / AtomicPy / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  File   : Makefile.am
21 #  Author : Roman NIKOLAEV
22 #
23
24 include $(top_srcdir)/adm_local/unix/make_common_starter.am
25
26 lib_LTLIBRARIES = libAtomicPy.la
27
28 # extra source files (generated by sip)
29 SIP_SRC = sipAPIAtomicPy.h                        \
30           sipAtomicPyAtomicMolecule.cc  \
31           sipAtomicPycmodule.cc
32
33 # Sip definition file
34 SIP_FILES = AtomicPy.sip
35
36 # extra dist files
37 EXTRA_DIST += $(SIP_FILES)
38
39 # extra clean files
40 CLEANFILES = $(SIP_SRC)
41
42 dist_libAtomicPy_la_SOURCES = AtomicPy.h AtomicPy.cxx
43
44 nodist_libAtomicPy_la_SOURCES = $(SIP_SRC)
45
46 # compilation flags
47 libAtomicPy_la_CPPFLAGS = $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) \
48                           $(GUI_CXXFLAGS) -I$(srcdir)/../ATOMICGUI
49
50 libAtomicPy_la_LIBADD = $(PYTHON_LIBS) $(SIP_LIBS) \
51                         ../ATOMICGUI/libATOMIC.la
52
53 # custom build step: generate C++ wrapping according to $(SIP_FILES)
54 $(SIP_SRC): $(SIP_FILES)
55         $(SIP) $(PYQT_SIPFLAGS) $<
56
57 # custom install step: create symbolic link
58 install-exec-hook:
59         (cd $(DESTDIR)$(libdir); ln -sf libAtomicPy.so AtomicPy.so)
60
61 # custom uninstall step: remove symbolic link
62 uninstall-hook:
63         rm -f $(DESTDIR)$(libdir)/AtomicPy.so