| 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 | ############################################################################ |
|---|
| 35 | LIBNEXUS=$(top_builddir)/src/libNeXus.la |
|---|
| 36 | lib_LTLIBRARIES=libNeXusCPP.la |
|---|
| 37 | |
|---|
| 38 | # nxincludedir=$(includedir)/nexus |
|---|
| 39 | nxincludedir=$(pkgincludedir) |
|---|
| 40 | nxinclude_HEADERS=NeXusFile.hpp NeXusException.hpp NeXusStream.hpp |
|---|
| 41 | |
|---|
| 42 | libNeXusCPP_la_SOURCES=NeXusFile.hpp NeXusFile.cpp NeXusException.hpp NeXusException.cpp NeXusStream.hpp NeXusStream.cpp |
|---|
| 43 | libNeXusCPP_la_LIBADD=$(LIBNEXUS) |
|---|
| 44 | libNeXusCPP_la_LDFLAGS=@SHARED_LDFLAGS@ -version-info $(NXLTVERSINFO) -L$(top_builddir)/src/.libs |
|---|
| 45 | |
|---|
| 46 | AM_CPPFLAGS=-I. -I$(top_srcdir)/include -DIN_NEXUS_CPP_LIBRARY=1 |
|---|
| 47 | |
|---|
| 48 | if MINGW_MSYS |
|---|
| 49 | MINGW_CXXFLAGS=-Wl,--export-all-symbols |
|---|
| 50 | msimplibdir = ${libdir} |
|---|
| 51 | libNeXusCPP.def: libNeXusCPP.la |
|---|
| 52 | pexports .libs/libNeXusCPP-0.dll > libNeXusCPP.def |
|---|
| 53 | if HAVE_MS_LIB |
|---|
| 54 | msimplib_DATA = libNeXusCPP.dll.lib libNeXusCPP.dll.exp libNeXusCPP.def |
|---|
| 55 | libNeXusCPP.dll.exp: libNeXusCPP.dll.lib |
|---|
| 56 | libNeXusCPP.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 |
|---|
| 59 | else |
|---|
| 60 | msimplib_DATA = libNeXusCPP.def |
|---|
| 61 | endif |
|---|
| 62 | endif |
|---|
| 63 | |
|---|
| 64 | AM_CXXFLAGS=-prefer-pic $(MINGW_CXXFLAGS) |
|---|
| 65 | CLEANFILES=libNeXusCPP.def libNeXusCPP.dll.lib libNeXusCPP.dll.exp |
|---|
| 66 | |
|---|
| 67 | include $(top_srcdir)/build_rules.am |
|---|