| 1 |
## Makefile.am -- Process this file with automake to produce Makefile.in |
| 2 |
## |
| 3 |
## Copyright (c) 2015-2026, The matio contributors |
| 4 |
## Copyright (c) 2005-2014, Christopher C. Hulbert |
| 5 |
## All rights reserved. |
| 6 |
## |
| 7 |
## Redistribution and use in source and binary forms, with or without |
| 8 |
## modification, are permitted provided that the following conditions are met: |
| 9 |
## |
| 10 |
## 1. Redistributions of source code must retain the above copyright notice, this |
| 11 |
## list of conditions and the following disclaimer. |
| 12 |
## |
| 13 |
## 2. Redistributions in binary form must reproduce the above copyright notice, |
| 14 |
## this list of conditions and the following disclaimer in the documentation |
| 15 |
## and/or other materials provided with the distribution. |
| 16 |
## |
| 17 |
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 18 |
## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 |
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 20 |
## DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 21 |
## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 22 |
## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 23 |
## SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 24 |
## CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 25 |
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 |
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 |
## |
| 28 |
VPATH = @srcdir@ |
| 29 |
|
| 30 |
LT_CURRENT=14 |
| 31 |
LT_REVISION=0 |
| 32 |
LT_AGE=0 |
| 33 |
|
| 34 |
AM_CFLAGS = -I. $(HDF5_CFLAGS) $(ZLIB_CFLAGS) $(LT_CFLAGS) |
| 35 |
AM_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(LT_LDFLAGS) |
| 36 |
|
| 37 |
if HAVE_ZLIB |
| 38 |
ZLIB_SRC = inflate.c |
| 39 |
endif |
| 40 |
|
| 41 |
SNPRINTF_LIBS = $(top_builddir)/snprintf/libsnprintf.la |
| 42 |
|
| 43 |
nodist_noinst_HEADERS = matioConfig.h |
| 44 |
nodist_include_HEADERS = matio_pubconf.h |
| 45 |
include_HEADERS = matio.h |
| 46 |
noinst_HEADERS = matio_private.h mat4.h mat5.h mat73.h \ |
| 47 |
read_data_impl.h safe-math.h |
| 48 |
lib_LTLIBRARIES = libmatio.la |
| 49 |
libmatio_la_SOURCES = endian.c io.c $(ZLIB_SRC) read_data.c \ |
| 50 |
mat5.c mat4.c mat.c matvar_cell.c matvar_struct.c |
| 51 |
libmatio_la_LIBADD = $(HDF5_LIBS) $(ZLIB_LIBS) $(SNPRINTF_LIBS) |
| 52 |
libmatio_la_LDFLAGS = -no-undefined -export-symbols @srcdir@/matio.sym $(AM_LDFLAGS) |
| 53 |
|
| 54 |
if MAT73 |
| 55 |
libmatio_la_SOURCES += mat73.c |
| 56 |
endif |
| 57 |
|
| 58 |
EXTRA_DIST = matio.sym |
| 59 |
|
| 60 |
dosubst = sed -e 's,[@]PACKAGE[@],$(PACKAGE),g' \ |
| 61 |
-e 's,[@]VERSION[@],$(VERSION),g' \ |
| 62 |
-e 's,\/,\\,g' |
| 63 |
|
| 64 |
doc: |
| 65 |
|
| 66 |
|
| 67 |
print: |
| 68 |
@list='$(libmatio_a_SOURCES)'; \ |
| 69 |
rm -f libmatio.ps; \ |
| 70 |
curdir=`pwd`; \ |
| 71 |
cd $(srcdir); \ |
| 72 |
for f in $$list; do \ |
| 73 |
enscript -2 -G -r -Ec --color -o - $$f >> $$curdir/libmatio.ps;\ |
| 74 |
done; \ |
| 75 |
cd $$curdir |