[packages/hdf5_hl_region] - new - shared patch to build shared libraries - destdir patch to fix DESTDIR install

qboosh qboosh at pld-linux.org
Thu Mar 7 16:37:47 CET 2013


commit df50bb125426a9d263e196df535f6eae61d13526
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Mar 7 16:37:29 2013 +0100

    - new
    - shared patch to build shared libraries
    - destdir patch to fix DESTDIR install

 hdf5_hl_region-destdir.patch |  27 +++++
 hdf5_hl_region-shared.patch  | 233 +++++++++++++++++++++++++++++++++++++++++++
 hdf5_hl_region.spec          | 189 +++++++++++++++++++++++++++++++++++
 3 files changed, 449 insertions(+)
---
diff --git a/hdf5_hl_region.spec b/hdf5_hl_region.spec
new file mode 100644
index 0000000..df3c5c9
--- /dev/null
+++ b/hdf5_hl_region.spec
@@ -0,0 +1,189 @@
+#
+# Conditional build:
+%bcond_without	fortran		# Fortran API
+%bcond_with	tests		# perform "make tests" (reference dumps differ from current h5dump)
+#
+Summary:	High-Level Library for handling HDF5 object and region references
+Summary(pl.UTF-8):	Wysokopoziomowa biblioteka do obsługi odniesień do obiektów i regionów HDF5
+Name:		hdf5_hl_region
+Version:	1.1.1
+Release:	1
+License:	BSD-like, changed sources must be marked
+Group:		Libraries
+Source0:	http://www.hdfgroup.uiuc.edu/ftp/pub/outgoing/NPOESS/source/hdf5_HL_REGION-%{version}.tar
+# Source0-md5:	4d4ed18e8b10b3a0bf8b9b18aede3473
+Patch0:		%{name}-shared.patch
+Patch1:		%{name}-destdir.patch
+URL:		http://www.hdfgroup.org/projects/npoess/HL_index.html
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake
+BuildRequires:	hdf5-devel
+%{?with_fortran:BuildRequires:	hdf5-fortran-devel}
+%{?with_tests:BuildRequires:	hdf5-progs}
+BuildRequires:	libtool
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains C library to:
+ - Get information and read data pointed to by region references
+ - Create an array of region references using paths to datasets and
+   corner coordinates of hyperslabs
+ - Create a dataset and write data pointed to by region references
+ - Copy data pointed to by region references
+ - Retrieve data packed in an integer (quality flags)
+
+%description -l pl.UTF-8
+Ten pakiet zawiera bibliotekę C pozwalającą na:
+ - uzyskanie informacji i odczyt danych wskazanych przez regionu
+ - utworzenie tablicy wskazań regionu przy użyciu ścieżek do zbiorów
+   danych i współrzędnych rogów obiektów hyperslab
+ - utworzenie zbioru danych i zapis danych wskazanych przez region
+ - skopiowanie danych wskazanych przez region
+ - odtworzenie danych spakowanych w liczbie całkowitej (flag jakości)
+
+%package devel
+Summary:	Header files for HDF5 HL_REGION library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki HDF5 HL_REGION
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	hdf5-devel
+
+%description devel
+Header files for HDF5 HL_REGION library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki HDF5 HL_REGION.
+
+%package static
+Summary:	Static HDF5 HL_REGION library
+Summary(pl.UTF-8):	Statyczna biblioteka HDF5 HL_REGION
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static HDF5 HL_REGION library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka HDF5 HL_REGION.
+
+%package fortran
+Summary:	High-Level Fortran Library for handling HDF5 object and region references
+Summary(pl.UTF-8):	Wysokopoziomowa biblioteka Fortranu do obsługi odniesień do obiektów i regionów HDF5
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description fortran
+This package contains Fortran library to:
+ - Get information and read data pointed to by region references
+ - Create an array of region references using paths to datasets and
+   corner coordinates of hyperslabs
+ - Create a dataset and write data pointed to by region references
+ - Copy data pointed to by region references
+ - Retrieve data packed in an integer (quality flags)
+
+%description fortran -l pl.UTF-8
+Ten pakiet zawiera bibliotekę języka Fortran pozwalającą na:
+ - uzyskanie informacji i odczyt danych wskazanych przez regionu
+ - utworzenie tablicy wskazań regionu przy użyciu ścieżek do zbiorów
+   danych i współrzędnych rogów obiektów hyperslab
+ - utworzenie zbioru danych i zapis danych wskazanych przez region
+ - skopiowanie danych wskazanych przez region
+ - odtworzenie danych spakowanych w liczbie całkowitej (flag jakości)
+
+%package fortran-devel
+Summary:	Header files for HDF5 HL_REGION Fortran library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki HDF5 HL_REGION dla Fortranu
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	%{name}-fortran = %{version}-%{release}
+
+%description fortran-devel
+Header files for HDF5 HL_REGION library.
+
+%description fortran-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki HDF5 HL_REGION dla Foortranu.
+
+%package fortran-static
+Summary:	Static HDF5 HL_REGION Fortran library
+Summary(pl.UTF-8):	Statyczna biblioteka HDF5 HL_REGION dla Fortranu
+Group:		Development/Libraries
+Requires:	%{name}-fortran-devel = %{version}-%{release}
+
+%description fortran-static
+Static HDF5 HL_REGION Fortran library.
+
+%description fortran-static -l pl.UTF-8
+Statyczna biblioteka HDF5 HL_REGION dla Fortranu.
+
+%prep
+%setup -q -n hdf5_HL_REGION-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__make} -f Makefile-F03 \
+	CC="%{__cc}" \
+	FC="%{_target_alias}-gfortran" \
+	CCFLAGS="%{rpmcflags}" \
+	FCFLAGS="%{rpmcflags}" \
+	HDF5_INSTALL_DIR=/usr \
+	HDF5_USE_SHLIB=yes \
+	LIBDIR=%{_libdir}
+
+%if %{with tests}
+%{__make} -f Makefile-F03 tests \
+	HDF5_INSTALL_DIR=/usr
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -f Makefile-F03 install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	PREFIX=%{_prefix} \
+	LIBDIR=%{_libdir} \
+	HDF5_INSTALL_DIR=/usr
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post	fortran -p /sbin/ldconfig
+%postun	fortran -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README.txt doc/RELEASE.txt
+%attr(755,root,root) %{_libdir}/libhdf5_hl_region.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_region.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhdf5_hl_region.so
+%{_libdir}/libhdf5_hl_region.la
+%{_includedir}/h5hl_region.h
+%{_includedir}/hl_region_H5LRpublic.h
+%{_includedir}/hl_region_H5LTpublic.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libhdf5_hl_region.a
+
+%files fortran
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhdf5_hl_region_fortran.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_region_fortran.so.0
+
+%files fortran-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhdf5_hl_region_fortran.so
+%{_libdir}/libhdf5_hl_region_fortran.la
+%{_includedir}/h5hl_region.mod
+%{_includedir}/hl_region_h5lr.mod
+%{_includedir}/hl_region_h5lt.mod
+
+%files fortran-static
+%defattr(644,root,root,755)
+%{_libdir}/libhdf5_hl_region_fortran.a
diff --git a/hdf5_hl_region-destdir.patch b/hdf5_hl_region-destdir.patch
new file mode 100644
index 0000000..0413ec8
--- /dev/null
+++ b/hdf5_hl_region-destdir.patch
@@ -0,0 +1,27 @@
+--- hdf5_HL_REGION-1.1.1/Makefile-F03.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/Makefile-F03	2013-03-04 18:36:32.351679663 +0100
+@@ -44,16 +44,16 @@
+ 	 cd ../test; $(MAKE));fi
+ 
+ install:
+-	(mkdir -p $(PREFIX)/lib)
+-	(mkdir -p $(PREFIX)/include)
+-	(cp src/libhdf5_hl_region.a $(PREFIX)/lib )
+-	(cp src/hl_region_H5LRpublic.h $(PREFIX)/include )
+-	(cp src/hl_region_H5LTpublic.h $(PREFIX)/include )
+-	(cp src/h5hl_region.h $(PREFIX)/include )
++	(mkdir -p $(DESTDIR)$(LIBDIR))
++	(mkdir -p $(DESTDIR)$(PREFIX)/include)
++	($(MAKE) -C src install)
++	(cp src/hl_region_H5LRpublic.h $(DESTDIR)$(PREFIX)/include )
++	(cp src/hl_region_H5LTpublic.h $(DESTDIR)$(PREFIX)/include )
++	(cp src/h5hl_region.h $(DESTDIR)$(PREFIX)/include )
+ # if h5fc is available then install FORTRAN source
+ 	if test -e $(HDF5_INSTALL_DIR)/bin/h5fc; then \
+-	(cp fortran/src/libhdf5_hl_region_fortran.a $(PREFIX)/lib; \
+-	 cp fortran/src/*.mod $(PREFIX)/include );fi
++	($(MAKE) -C fortran/src install; \
++	 cp fortran/src/*.mod $(DESTDIR)$(PREFIX)/include );fi
+ 
+ 
+ tests:
diff --git a/hdf5_hl_region-shared.patch b/hdf5_hl_region-shared.patch
new file mode 100644
index 0000000..02cf0e3
--- /dev/null
+++ b/hdf5_hl_region-shared.patch
@@ -0,0 +1,233 @@
+--- hdf5_HL_REGION-1.1.1/src/Makefile.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/src/Makefile	2013-03-03 16:28:12.292295335 +0100
+@@ -16,10 +16,11 @@
+ # source files.
+ SRC = hl_region_H5HLerror.c hl_region_H5HLint.c hl_region_H5LR.c hl_region_H5LT.c
+ 
+-OBJ = $(SRC:.c=.o)
+-
+-OUT = ./libhdf5_hl_region.a
++OBJ = $(SRC:.c=.lo)
+ 
++OUT = ./libhdf5_hl_region.la
++LIBTOOL = libtool
++LIBDIR = /usr/lib
+ 
+ # test to see if h5cc compiler is set
+ 
+@@ -43,11 +44,15 @@
+ 
+ default: $(OUT)
+ 
+-.c.o:
+-	$(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
++%.lo: %.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
+ 
+ $(OUT): $(OBJ)
+-	ar rcs $(OUT) $(OBJ)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(CCFLAGS) -o $(OUT) $(OBJ) -rpath $(LIBDIR) -lhdf5
++
++install:
++	install -d $(DESTDIR)$(LIBDIR)
++	$(LIBTOOL) --mode=install install $(OUT) $(DESTDIR)$(LIBDIR)
+ 
+ clean:
+ 	\rm -f $(OBJ) $(OUT) 
+--- hdf5_HL_REGION-1.1.1/test/Makefile.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/test/Makefile	2013-03-03 17:58:11.605402080 +0100
+@@ -16,17 +16,18 @@
+ # include directories
+ INCLUDES = -I$(HDF5_INSTALL_DIR)/include -I../src
+ 
+-LIBS = -L../src -lhdf5_hl_region
++LIBS = ../src/libhdf5_hl_region.la -lhdf5_hl
++LIBTOOL = libtool
+ 
+ CC = $(HDF5_INSTALL_DIR)/bin/h5cc
+ 
+ all: test_bitfield test_regref_hyper
+ 
+ test_bitfield: test_bitfield.c 
+-	$(CC) test_bitfield.c  -o test_bitfield $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) test_bitfield.c  -o test_bitfield $(LIBS) $(INCLUDES)
+ 
+ test_regref_hyper: test_regref_hyper.c
+-	$(CC) test_regref_hyper.c -o test_regref_hyper $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) test_regref_hyper.c -o test_regref_hyper $(LIBS) $(INCLUDES)
+ 
+ tests:
+ 	./test_bitfield; ./test_regref_hyper
+--- hdf5_HL_REGION-1.1.1/examples/Makefile.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/examples/Makefile	2013-03-03 17:59:12.908732842 +0100
+@@ -14,7 +14,8 @@
+ ##############################################################################
+ 
+ #
+-LIBS = -L../src -lhdf5_hl_region
++LIBS = ../src/libhdf5_hl_region.la -lhdf5_hl
++LIBTOOL = libtool
+ INCLUDES = -I../src
+ 
+ # compiler
+@@ -24,28 +25,28 @@
+ all: ex_bitfield ex_lite_copy_region ex_lite_read_region ex_regref_copy_references ex_regref_create ex_regref_read ex_ref_to_all ex_GMGTO
+ 
+ ex_bitfield: ex_bitfield.c
+-	$(CC) ex_bitfield.c -o ex_bitfield $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_bitfield.c -o ex_bitfield $(LIBS) $(INCLUDES)
+ 
+ ex_lite_copy_region: ex_lite_copy_region.c
+-	$(CC) ex_lite_copy_region.c -o ex_lite_copy_region $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_lite_copy_region.c -o ex_lite_copy_region $(LIBS) $(INCLUDES)
+ 
+ ex_lite_read_region: ex_lite_read_region.c
+-	$(CC) ex_lite_read_region.c -o ex_lite_read_region $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_lite_read_region.c -o ex_lite_read_region $(LIBS) $(INCLUDES)
+ 
+ ex_regref_copy_references: ex_regref_copy_references.c
+-	$(CC) ex_regref_copy_references.c -o ex_regref_copy_references $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_regref_copy_references.c -o ex_regref_copy_references $(LIBS) $(INCLUDES)
+ 
+ ex_regref_create: ex_regref_create.c
+-	$(CC) ex_regref_create.c -o ex_regref_create $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_regref_create.c -o ex_regref_create $(LIBS) $(INCLUDES)
+ 
+ ex_regref_read: ex_regref_read.c
+-	$(CC) ex_regref_read.c -o ex_regref_read $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_regref_read.c -o ex_regref_read $(LIBS) $(INCLUDES)
+ 
+ ex_ref_to_all: ex_ref_to_all.c
+-	$(CC) ex_ref_to_all.c -o ex_ref_to_all $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_ref_to_all.c -o ex_ref_to_all $(LIBS) $(INCLUDES)
+ 
+ ex_GMGTO: ex_GMGTO.c
+-	$(CC) ex_GMGTO.c -o ex_GMGTO $(LIBS) $(INCLUDES)	
++	$(LIBTOOL) --mode=link --tag=CC $(CC) ex_GMGTO.c -o ex_GMGTO $(LIBS) $(INCLUDES)	
+ 
+ tests:
+ 	./test.sh
+--- hdf5_HL_REGION-1.1.1/fortran/src/Makefile.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/fortran/src/Makefile	2013-03-03 18:03:26.355388871 +0100
+@@ -17,10 +17,12 @@
+ SRC_C   = hl_region_H5LTf.c hl_region_H5LRf.c
+ SRC_F90 = hl_region_H5LTff.f90 hl_region_H5LRff.f90 h5hl_region.f90
+ 
+-OBJ_C   = $(SRC_C:.c=.o)
+-OBJ_F90 = $(SRC_F90:.f90=.o)
++OBJ_C   = $(SRC_C:.c=.lo)
++OBJ_F90 = $(SRC_F90:.f90=.lo)
+ 
+-OUT = ./libhdf5_hl_region_fortran.a
++OUT = ./libhdf5_hl_region_fortran.la
++LIBTOOL = libtool
++LIBDIR = /usr/lib
+ 
+ # include directories
+ INCLUDES = -I$(HDF5_INSTALL_DIR)/include
+@@ -33,14 +35,14 @@
+ 
+ default: $(OUT)
+ 
+-.c.o:
+-	$(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
++%.lo: %.c
++	$(LIBTOOL) --mode=compile --tag=CC $(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
+ 
+-.f90.o:
+-	$(FC) $(INCLUDES) $(FCFLAGS) -c $< -o $@
++%.lo: %.f90
++	$(LIBTOOL) --mode=compile --tag=F77 $(FC) $(INCLUDES) $(FCFLAGS) -c $< -o $@
+ 
+ $(OUT): $(OBJ_C) $(OBJ_F90)
+-	ar rcs $(OUT) $(OBJ_C) $(OBJ_F90)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) -o $(OUT) $(OBJ_C) $(OBJ_F90) -rpath $(LIBDIR) ../../src/libhdf5_hl_region.la -lhdf5_fortran
+ # link the module files so the compiler can find them
+ # to avoid setting the module path explicitly
+ 	ln -sf ../src/hl_region_h5lr.mod ../examples/hl_region_h5lr.mod
+@@ -50,5 +52,9 @@
+ 	ln -sf ../src/hl_region_h5lt.mod ../test/hl_region_h5lt.mod
+ 	ln -sf ../src/h5hl_region.mod ../test/h5hl_region.mod
+ 
++install:
++	install -d $(DESTDIR)$(LIBDIR)
++	$(LIBTOOL) --mode=install install $(OUT) $(DESTDIR)$(LIBDIR)
++
+ clean:
+ 	\rm -f $(OBJ_C) $(OBJ_F90) $(OUT) *.mod 
+--- hdf5_HL_REGION-1.1.1/fortran/examples/Makefile.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/fortran/examples/Makefile	2013-03-03 18:07:22.965378941 +0100
+@@ -13,8 +13,8 @@
+ # 
+ ##############################################################################
+ 
+-#
+-LIBS = -L../src -L../../src -lhdf5_hl_region_fortran -lhdf5_hl_region 
+-INCLUDES = -I../src -I../../src 
++LIBTOOL = libtool
++LIBS = ../src/libhdf5_hl_region_fortran.la ../../src/libhdf5_hl_region.la -lhdf5hl_fortran
++INCLUDES = -I../src -I../../src -I/usr/include
+ 
+ # compiler
+@@ -25,25 +25,25 @@
+ all: $(EXEC)
+ 
+ ex_lite_read_region: ex_lite_read_region.f90
+-	$(FC) ex_lite_read_region.f90 -o ex_lite_read_region $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_lite_read_region.f90 -o ex_lite_read_region $(LIBS) $(INCLUDES)
+ 
+ ex_lite_copy_region: ex_lite_copy_region.f90
+-	$(FC) ex_lite_copy_region.f90 -o ex_lite_copy_region $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_lite_copy_region.f90 -o ex_lite_copy_region $(LIBS) $(INCLUDES)
+ 
+ ex_bitfield: ex_bitfield.f90
+-	$(FC) ex_bitfield.f90 -o ex_bitfield $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_bitfield.f90 -o ex_bitfield $(LIBS) $(INCLUDES)
+ 
+ ex_regref_create: ex_regref_create.f90
+-	$(FC) ex_regref_create.f90 -o ex_regref_create $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_regref_create.f90 -o ex_regref_create $(LIBS) $(INCLUDES)
+ 
+ ex_regref_read: ex_regref_read.f90
+-	$(FC) ex_regref_read.f90 -o ex_regref_read $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_regref_read.f90 -o ex_regref_read $(LIBS) $(INCLUDES)
+ 
+ ex_regref_copy_reference: ex_regref_copy_reference.f90
+-	$(FC) ex_regref_copy_reference.f90 -o ex_regref_copy_reference $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_regref_copy_reference.f90 -o ex_regref_copy_reference $(LIBS) $(INCLUDES)
+ 
+ ex_ref_to_all: ex_ref_to_all.f90
+-	$(FC) ex_ref_to_all.f90 -o ex_ref_to_all $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) ex_ref_to_all.f90 -o ex_ref_to_all $(LIBS) $(INCLUDES)
+ 
+ 
+ tests:
+--- hdf5_HL_REGION-1.1.1/fortran/test/Makefile.orig	2011-12-20 21:39:38.000000000 +0100
++++ hdf5_HL_REGION-1.1.1/fortran/test/Makefile	2013-03-03 18:08:25.478709653 +0100
+@@ -16,20 +16,21 @@
+ # include directories
+-INCLUDES = -I../src -I../../src 
++INCLUDES = -I../src -I../../src -I/usr/include
+ 
+-LIBS = -L../src -L../../src -lhdf5_hl_region_fortran -lhdf5_hl_region 
++LIBTOOL = libtool
++LIBS = ../src/libhdf5_hl_region_fortran.la ../../src/libhdf5_hl_region.la -lhdf5hl_fortran
+ 
+ FC = $(HDF5_INSTALL_DIR)/bin/h5fc
+ 
+ all:  test_util test_bitfield test_regref_hyper
+ 
+ test_bitfield: test_bitfield.f90 test_util.o
+-	$(FC) test_bitfield.f90 -o test_bitfield test_util.o $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) test_bitfield.f90 -o test_bitfield test_util.lo $(LIBS) $(INCLUDES)
+ 
+ test_regref_hyper: test_regref_hyper.f90 test_util.o
+-	$(FC) test_regref_hyper.f90 -o test_regref_hyper test_util.o $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=link --tag=F77 $(FC) test_regref_hyper.f90 -o test_regref_hyper test_util.lo $(LIBS) $(INCLUDES)
+ 
+ test_util: test_util.f90
+-	$(FC) -c test_util.f90 $(LIBS) $(INCLUDES)
++	$(LIBTOOL) --mode=compile --tag=F77 $(FC) -c test_util.f90 -o test_util.lo $(INCLUDES)
+ 
+ tests:
+ 	./test_bitfield; ./test_regref_hyper
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hdf5_hl_region.git/commitdiff/df50bb125426a9d263e196df535f6eae61d13526



More information about the pld-cvs-commit mailing list