# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # # File : Makefile.am # Author : Roman NIKOLAEV # include $(top_srcdir)/adm_local/unix/make_common_starter.am lib_LTLIBRARIES = libAtomicPy.la # extra source files (generated by sip) SIP_SRC = sipAPIAtomicPy.h \ sipAtomicPyAtomicMolecule.cc \ sipAtomicPycmodule.cc # Sip definition file SIP_FILES = AtomicPy.sip # extra dist files EXTRA_DIST += $(SIP_FILES) # extra clean files CLEANFILES = $(SIP_SRC) dist_libAtomicPy_la_SOURCES = AtomicPy.h AtomicPy.cxx nodist_libAtomicPy_la_SOURCES = $(SIP_SRC) # compilation flags libAtomicPy_la_CPPFLAGS = $(QT_INCLUDES) $(SIP_INCLUDES) $(PYTHON_INCLUDES) \ $(GUI_CXXFLAGS) -I$(srcdir)/../ATOMICGUI libAtomicPy_la_LIBADD = $(PYTHON_LIBS) $(SIP_LIBS) \ ../ATOMICGUI/libATOMIC.la # custom build step: generate C++ wrapping according to $(SIP_FILES) $(SIP_SRC): $(SIP_FILES) $(SIP) $(PYQT_SIPFLAGS) $< # custom install step: create symbolic link install-exec-hook: (cd $(DESTDIR)$(libdir); ln -sf libAtomicPy.so AtomicPy.so) # custom uninstall step: remove symbolic link uninstall-hook: rm -f $(DESTDIR)$(libdir)/AtomicPy.so