| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
#==================================================================== |
| 3 |
# NeXus - Neutron & X-ray Common Data Format |
| 4 |
# |
| 5 |
# $Id$ |
| 6 |
# |
| 7 |
# Makefile for NeXus FORTRAN 90 bindings |
| 8 |
# |
| 9 |
# Copyright (C) 2004 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 |
#==================================================================== |
| 30 |
# |
| 31 |
# Unix makefile for NeXusIDL-API DLM. |
| 32 |
# |
| 33 |
# This makefile is used to build NeXusIDL-API --- an example DLM. |
| 34 |
# It works by determining what platform you are on and then |
| 35 |
# recursively invoking make with the proper options to do the build. |
| 36 |
# |
| 37 |
idldlmdir = @IDLDLM@ |
| 38 |
idldlm_LTLIBRARIES = libNeXusIDL-API.la |
| 39 |
idldlm_DATA = NeXusIDL-API.dlm |
| 40 |
|
| 41 |
libNeXusIDL_API_la_SOURCES = NeXusIDL-API.c handle.c handle.h |
| 42 |
libNeXusIDL_API_la_LIBADD = $(top_builddir)/src/libNeXus.la |
| 43 |
libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -L$(IDLROOT)/bin/$(IDL_HOST) -lidl $(LDFLAGS) |
| 44 |
|
| 45 |
AM_CPPFLAGS = -I$(IDLROOT)/external/include |
| 46 |
|
| 47 |
all : all-am NeXusIDL-API.so |
| 48 |
|
| 49 |
install-exec-hook : |
| 50 |
( cd $(DESTDIR)$(idldlmdir); ln -s libNeXusIDL-API.so NeXusIDL-API.so ) |
| 51 |
|
| 52 |
NeXusIDL-API.so : libNeXusIDL-API.la |
| 53 |
ln -sf .libs/libNeXusIDL-API.so $@ |
| 54 |
if test ! -r NeXusIDL-API.dlm; then ln -s $(srcdir)/NeXusIDL-API.dlm .; fi |
| 55 |
|
| 56 |
CLEANFILES = NeXusIDL-API.so |
| 57 |
|
| 58 |
EXTRA_DIST = \ |
| 59 |
build_testmodule.pro \ |
| 60 |
build_win.bat \ |
| 61 |
data \ |
| 62 |
NeXusIDL-API.def \ |
| 63 |
NeXusIDL-API.dlm \ |
| 64 |
NeXusIDL-API.export \ |
| 65 |
nxext.h5 \ |
| 66 |
nxext.hdf \ |
| 67 |
nxext.xml \ |
| 68 |
NXtest.h5 \ |
| 69 |
NXtest.hdf \ |
| 70 |
NXtest.xml \ |
| 71 |
README.html \ |
| 72 |
read_test.pro \ |
| 73 |
recursiveread.pro \ |
| 74 |
recursivesearch.pro \ |
| 75 |
testfocus.pro \ |
| 76 |
write_test.pro \ |
| 77 |
testidlnapi |
| 78 |
|
| 79 |
dist-hook : |
| 80 |
find $(distdir)/data -depth -type d -name '.svn' -exec rm -fr {} \; |
| 81 |
|
| 82 |
include $(top_srcdir)/build_rules.am |