source: trunk/bindings/cpp/Makefile.am @ 1822

Revision 1767, 2.6 KB checked in by Freddie Akeroyd, 6 months ago (diff)

Add additional -L flag to shared library directory. This seems to
be needed on ubuntu to make sure the just built (rather than an
already installed) library is used during the libtool relink on install
Refs #305

  • Property svn:keywords set to HeadURL LastChangedBy LastChangedRevision LastChangedDate
Line 
1## Process this file with automake to produce Makefile.in
2#====================================================================
3#  NeXus - Neutron & X-ray Common Data Format
4
5#  $Id: Makefile.am 598 2005-08-19 16:19:15Z faa59 $
6
7#  Makefile for NeXus C++ bindings
8#
9#  Copyright (C) 2008 Freddie Akeroyd
10
11#  This library is free software; you can redistribute it and/or
12#  modify it under the terms of the GNU Lesser General Public
13#  License as published by the Free Software Foundation; either
14#  version 2 of the License, or (at your option) any later version.
15#
16#  This library is distributed in the hope that it will be useful,
17#  but WITHOUT ANY WARRANTY; without even the implied warranty of
18#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19#  Lesser General Public License for more details.
20#
21#  You should have received a copy of the GNU Lesser General Public
22#  License along with this library; if not, write to the Free
23#  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24#  MA  02111-1307  USA
25#             
26#  For further information, see http://www.nexusformat.org/
27#
28#====================================================================
29####################### Subversion Reposity details ########################
30# Repository Location     $HeadURL$
31# Revision of last commit $LastChangedRevision$
32# Date of last commit     $LastChangedDate$
33# Author of last commit   $LastChangedBy$
34############################################################################
35LIBNEXUS=$(top_builddir)/src/libNeXus.la
36lib_LTLIBRARIES=libNeXusCPP.la
37
38# nxincludedir=$(includedir)/nexus
39nxincludedir=$(pkgincludedir)
40nxinclude_HEADERS=NeXusFile.hpp NeXusException.hpp NeXusStream.hpp
41
42libNeXusCPP_la_SOURCES=NeXusFile.hpp NeXusFile.cpp NeXusException.hpp NeXusException.cpp NeXusStream.hpp NeXusStream.cpp
43libNeXusCPP_la_LIBADD=$(LIBNEXUS)
44libNeXusCPP_la_LDFLAGS=@SHARED_LDFLAGS@ -version-info $(NXLTVERSINFO) -L$(top_builddir)/src/.libs
45
46AM_CPPFLAGS=-I. -I$(top_srcdir)/include -DIN_NEXUS_CPP_LIBRARY=1
47
48if MINGW_MSYS
49MINGW_CXXFLAGS=-Wl,--export-all-symbols
50msimplibdir = ${libdir}
51libNeXusCPP.def: libNeXusCPP.la
52        pexports .libs/libNeXusCPP-0.dll > libNeXusCPP.def
53if HAVE_MS_LIB
54msimplib_DATA = libNeXusCPP.dll.lib libNeXusCPP.dll.exp libNeXusCPP.def
55libNeXusCPP.dll.exp: libNeXusCPP.dll.lib
56libNeXusCPP.dll.lib: libNeXusCPP.def
57        rm -f libNeXusCPP.dll.lib libNeXusCPP.dll.exp
58        $(MS_LIB) /MACHINE:I386 /DEF:libNeXusCPP.def /OUT:libNeXusCPP.dll.lib
59else
60msimplib_DATA = libNeXusCPP.def
61endif
62endif
63
64AM_CXXFLAGS=-prefer-pic $(MINGW_CXXFLAGS)
65CLEANFILES=libNeXusCPP.def libNeXusCPP.dll.lib libNeXusCPP.dll.exp
66
67include $(top_srcdir)/build_rules.am
Note: See TracBrowser for help on using the repository browser.