2001-02-23 05:56:54 +08:00
|
|
|
## Tools HDF5 Makefile(.in)
|
1999-07-20 03:56:57 +08:00
|
|
|
##
|
2003-04-04 04:00:42 +08:00
|
|
|
## Copyright (C) 2001, 2002
|
|
|
|
## National Center for Supercomputing Applications.
|
|
|
|
## All rights reserved.
|
1999-07-20 03:56:57 +08:00
|
|
|
##
|
1999-03-04 07:17:48 +08:00
|
|
|
top_srcdir=@top_srcdir@
|
1999-03-20 04:09:50 +08:00
|
|
|
top_builddir=..
|
|
|
|
srcdir=@srcdir@
|
2001-02-23 05:56:54 +08:00
|
|
|
|
|
|
|
## All subdirectories except for the ``lib'' subdirectory.
|
|
|
|
##
|
2003-04-04 04:00:42 +08:00
|
|
|
SUBDIRS=h5dump h5diff h5ls misc gifconv h5import
|
2001-02-23 05:56:54 +08:00
|
|
|
|
1999-03-20 04:09:50 +08:00
|
|
|
@COMMENCE@
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Add include directory to the C preprocessor flags, add -lh5tools and
|
|
|
|
## -lhdf5 to the list of libraries.
|
2001-02-23 05:56:54 +08:00
|
|
|
##
|
|
|
|
CPPFLAGS=-I. -I$(srcdir) -I$(top_builddir)/src -I$(top_srcdir)/src \
|
|
|
|
-I$(top_srcdir)/tools/lib @CPPFLAGS@
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Test programs and scripts.
|
2001-02-23 05:56:54 +08:00
|
|
|
##
|
2001-02-24 06:23:01 +08:00
|
|
|
TEST_PROGS=
|
2001-02-23 06:24:34 +08:00
|
|
|
TEST_SCRIPTS=
|
1998-09-04 04:46:32 +08:00
|
|
|
|
2001-02-23 05:56:54 +08:00
|
|
|
## These are our main targets: library and tools.
|
|
|
|
##
|
|
|
|
LIBTOOLS=$(top_builddir)/tools/lib/libh5tools.la
|
|
|
|
LIBHDF5=$(top_builddir)/src/libhdf5.la
|
|
|
|
|
|
|
|
PROGS=$(PUB_PROGS) $(TEST_PROGS)
|
1998-07-13 23:35:21 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Source and object files for the tests
|
2001-02-23 05:56:54 +08:00
|
|
|
##
|
2001-02-24 06:23:01 +08:00
|
|
|
TEST_SRC=
|
1999-04-26 22:43:53 +08:00
|
|
|
TEST_OBJ=$(TEST_SRC:.c=.lo)
|
1998-11-13 23:06:06 +08:00
|
|
|
|
2001-02-23 05:56:54 +08:00
|
|
|
lib ::
|
|
|
|
(cd lib && $(MAKE) $@) || exit 1;
|
|
|
|
|
|
|
|
progs: $(LIBTOOLS) $(LIBHDF5)
|
|
|
|
@@SETX@; for d in $(SUBDIRS); do \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2001-12-30 23:07:00 +08:00
|
|
|
dep depend:
|
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2001-02-23 05:56:54 +08:00
|
|
|
check tests test _test: $(PROGS)
|
2001-02-24 06:23:01 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-23 05:56:54 +08:00
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
2001-03-03 02:05:23 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-23 05:56:54 +08:00
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install:
|
2001-03-03 02:05:23 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-23 05:56:54 +08:00
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install-doc:
|
2001-03-03 02:05:23 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-23 05:56:54 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
|
|
|
done
|
|
|
|
|
2001-12-30 23:07:00 +08:00
|
|
|
.PHONY: all lib progs test _test install uninstall clean \
|
2001-02-23 05:56:54 +08:00
|
|
|
mostlyclean distclean maintainer-clean
|
|
|
|
|
|
|
|
clean mostlyclean:
|
2001-03-03 02:05:23 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-23 05:56:54 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
|
|
|
done
|
|
|
|
|
|
|
|
distclean:
|
2001-03-03 02:05:23 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-28 06:41:49 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
2001-02-23 05:56:54 +08:00
|
|
|
done
|
|
|
|
-$(RM) Makefile
|
|
|
|
|
|
|
|
maintainer-clean:
|
2001-03-03 02:05:23 +08:00
|
|
|
@@SETX@; for d in lib $(SUBDIRS); do \
|
2001-02-23 05:56:54 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
|
|
|
done
|
1999-10-15 22:53:57 +08:00
|
|
|
|