summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in25
1 files changed, 16 insertions, 9 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 1f93b00..2ab717a 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -7,26 +7,33 @@
@COMMENCE@
# Add include directory to the C preprocessor flags.
-CPPFLAGS=-I../src @CPPFLAGS@
+CPPFLAGS=-I../src -I. @CPPFLAGS@
# These are our main targets:
PROGS=h5debug h5import h5ls h5repart
+LIB=libh5tools.a
+LIBS=../src/libhdf5.a libh5tools.a @LIBS@
+
+# Source and object files for the library.
+LIB_SRC=h5dump.c
+LIB_OBJ=$(LIB_SRC:.c=.o)
# Source and object files for programs...
PROG_SRC=h5debug.c h5import.c h5ls.c h5repart.c
PROG_OBJ=$(PROG_SRC:.c=.o)
+PRIVATE_HDR=h5tools.h
# How to build the programs...
-h5debug: h5debug.o ../src/libhdf5.a
- $(CC) $(CFLAGS) -o $@ h5debug.o ../src/libhdf5.a $(LIBS)
+h5debug: h5debug.o $(LIB) ../src/libhdf5.a
+ $(CC) $(CFLAGS) -o $@ h5debug.o $(LIBS)
-h5import: h5import.o ../src/libhdf5.a
- $(CC) $(CFLAGS) -o $@ h5import.o ../src/libhdf5.a $(LIBS)
+h5import: h5import.o $(LIB) ../src/libhdf5.a
+ $(CC) $(CFLAGS) -o $@ h5import.o $(LIBS)
-h5ls: h5ls.o ../src/libhdf5.a
- $(CC) $(CFLAGS) -o $@ h5ls.o ../src/libhdf5.a $(LIBS)
+h5ls: h5ls.o $(LIB) ../src/libhdf5.a
+ $(CC) $(CFLAGS) -o $@ h5ls.o $(LIBS)
-h5repart: h5repart.o ../src/libhdf5.a
- $(CC) $(CFLAGS) -o $@ h5repart.o ../src/libhdf5.a $(LIBS)
+h5repart: h5repart.o $(LIB) ../src/libhdf5.a
+ $(CC) $(CFLAGS) -o $@ h5repart.o $(LIBS)
@CONCLUDE@