1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Description: use libhdf5-dev prepackaged library
Additionally, place the built binaries into bin/ for further dh installation.
Author: Shayan Doust <hello@shayandoust.me>
Last-Update: 2020-06-29
---
--- dextractor.orig/Makefile
+++ dextractor/Makefile
@@ -1,11 +1,11 @@
-PATH_HDF5 = /sw/apps/hdf5/current
-PATH_HDF5 = /usr/local/hdf5
CFLAGS = -O3 -Wall -Wextra -fno-strict-aliasing
+MACHINE_ARCH := $(shell echo `uname -m`)
all: dextract dexta undexta dexqv undexqv
dextract: dextract.c DB.c DB.h QV.c QV.h
- gcc $(CFLAGS) -I$(PATH_HDF5)/include -L$(PATH_HDF5)/lib -o dextract dextract.c DB.c QV.c -lhdf5
+ #gcc $(CFLAGS) -I/usr/include/hdf5/serial/ -L/usr/lib/${MACHINE_ARCH}-linux-gnu/hdf5/serial/ -o dextract dextract.c DB.c QV.c -lhdf5
+ gcc $(CFLAGS) $(ARGS) -o dextract dextract.c DB.c QV.c -lhdf5
dexta: dexta.c DB.c DB.h QV.c QV.h
gcc $(CFLAGS) -o dexta dexta.c DB.c QV.c
@@ -25,7 +25,8 @@
rm -f dextract.tar.gz
install:
- cp dextract dexta undexta dexqv undexqv ~/bin
+ mkdir bin/
+ cp dextract dexta undexta dexqv undexqv bin/
package:
make clean
|