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