| 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 Matlab bindings |
|---|
| 8 | # |
|---|
| 9 | # Copyright (C) 2010 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 | MATLABLIBDIR=$(MATLAB_ROOT)/bin/$(MATLAB_ARCH) |
|---|
| 32 | MATLAB_LIBS=-lmx -lmex |
|---|
| 33 | AM_CPPFLAGS=-I$(MATLAB_ROOT)/extern/include -DMATLAB_MEX_FILE # -DARGCHECK |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | idldlmdir = @IDLDLM@ |
|---|
| 37 | idldlm_LTLIBRARIES = libNeXusIDL-API.la |
|---|
| 38 | idldlm_DATA = NeXusIDL-API.dlm |
|---|
| 39 | |
|---|
| 40 | libNeXusIDL_API_la_SOURCES = NeXusIDL-API.c handle.c handle.h |
|---|
| 41 | libNeXusIDL_API_la_LIBADD = $(top_builddir)/src/libNeXus.la |
|---|
| 42 | libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -L$(IDLROOT)/bin/$(IDL_HOST) -lidl $(LDFLAGS) |
|---|
| 43 | |
|---|
| 44 | AM_CPPFLAGS = -I$(IDLROOT)/external/include |
|---|
| 45 | |
|---|
| 46 | all : all-am NeXusIDL-API.so |
|---|
| 47 | |
|---|
| 48 | install-exec-hook : |
|---|
| 49 | ( cd $(DESTDIR)$(idldlmdir); ln -s libNeXusIDL-API.so NeXusIDL-API.so ) |
|---|
| 50 | |
|---|
| 51 | NeXusIDL-API.so : libNeXusIDL-API.la |
|---|
| 52 | ln -sf .libs/libNeXusIDL-API.so $@ |
|---|
| 53 | if test ! -r NeXusIDL-API.dlm; then ln -s $(srcdir)/NeXusIDL-API.dlm .; fi |
|---|
| 54 | |
|---|
| 55 | CLEANFILES = NeXusIDL-API.so |
|---|
| 56 | |
|---|
| 57 | EXTRA_DIST = \ |
|---|
| 58 | build_testmodule.pro \ |
|---|
| 59 | build_win.bat \ |
|---|
| 60 | data \ |
|---|
| 61 | NeXusIDL-API.def \ |
|---|
| 62 | NeXusIDL-API.dlm \ |
|---|
| 63 | NeXusIDL-API.export \ |
|---|
| 64 | nxext.h5 \ |
|---|
| 65 | nxext.hdf \ |
|---|
| 66 | nxext.xml \ |
|---|
| 67 | NXtest.h5 \ |
|---|
| 68 | NXtest.hdf \ |
|---|
| 69 | NXtest.xml \ |
|---|
| 70 | README.html \ |
|---|
| 71 | read_test.pro \ |
|---|
| 72 | recursiveread.pro \ |
|---|
| 73 | recursivesearch.pro \ |
|---|
| 74 | testfocus.pro \ |
|---|
| 75 | write_test.pro \ |
|---|
| 76 | testidlnapi |
|---|
| 77 | |
|---|
| 78 | dist-hook : |
|---|
| 79 | find $(distdir)/data -depth -type d -name '.svn' -exec rm -fr {} \; |
|---|
| 80 | |
|---|
| 81 | include $(top_srcdir)/build_rules.am |
|---|