mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r3074] Purpose:
Improvement Description: Made the Makefiles better. Solution: Added standard macros concerning where things are place. Like libraries and so forth. Platforms tested: Linux
This commit is contained in:
parent
ca459c1d43
commit
e552b96ce3
@ -1,4 +1,4 @@
|
||||
## HDF5-C++ test/Makefile(.in)
|
||||
## HDF5-C++ examples/Makefile(.in)
|
||||
##
|
||||
## Copyright (C) 2000 National Center for Supercomputing Applications.
|
||||
## All rights reserved.
|
||||
@ -9,12 +9,13 @@ top_builddir=../..
|
||||
srcdir=@srcdir@
|
||||
@COMMENCE@
|
||||
|
||||
hdf5_srcdir=$(top_srcdir)/src
|
||||
hdf5_builddir=$(top_builddir)/src
|
||||
|
||||
## Add include directory to the C++ preprocessor flags and the hdf5
|
||||
## library to the library list.
|
||||
LIB=../src/libhdf5_cpp.la
|
||||
CPPFLAGS=-I. -I$(srcdir) -I../src -I../../src -I$(top_srcdir)/src -I$(srcdir)/../src @CPPFLAGS@
|
||||
CPPFLAGS=-I. -I../src -I$(srcdir)/../src -I$(hdf5_builddir) -I$(hdf5_srcdir) @CPPFLAGS@
|
||||
LIBHDF5=$(hdf5_builddir)/libhdf5.la
|
||||
|
||||
## List all source files here. The list of object files will be
|
||||
|
@ -31,4 +31,6 @@ LIB_OBJ=$(LIB_SRC:.C=.lo)
|
||||
|
||||
PUB_HDR=H5Cpp.h
|
||||
|
||||
ARFLAGS=rs
|
||||
|
||||
@CONCLUDE@
|
||||
|
@ -9,21 +9,28 @@ top_builddir=../..
|
||||
srcdir=@srcdir@
|
||||
@COMMENCE@
|
||||
|
||||
hdf5_srcdir=$(top_srcdir)/src
|
||||
hdf5_builddir=$(top_builddir)/src
|
||||
|
||||
## Add include directory to the C preprocessor flags and the h5test and hdf5
|
||||
## libraries to the library list.
|
||||
LT_LINK_LIB=$(LT) --mode=link $(CXX) -rpath $(libdir)
|
||||
LIB=../src/libhdf5_cpp.la
|
||||
CPPFLAGS=-I. -I$(srcdir) -I../src -I../../src -I$(top_srcdir)/src -I$(srcdir)/../src @CPPFLAGS@
|
||||
CPPFLAGS=-I. -I../src -I$(srcdir)/../src -I$(hdf5_builddir) -I$(hdf5_srcdir) @CPPFLAGS@
|
||||
HDF5LIB=$(hdf5_builddir)/libhdf5.la
|
||||
|
||||
## These are our main targets. They should be listed in the order to be
|
||||
## executed, generally most specific tests to least specific tests.
|
||||
RUNTEST=$(LT_RUN)
|
||||
|
||||
TEST_PROGS_SRC=
|
||||
TEST_PROGS=
|
||||
|
||||
TEST_SRC=
|
||||
TEST_OBJ=$(TEST_SRC:.C=.lo)
|
||||
|
||||
TEST_SCRIPTS=testexamples.sh
|
||||
|
||||
DISTCLEAN=$(TEST_PROGS_SRC:.C=.lo) $(TEST_PROGS_SRC:.C=.o) *.h5
|
||||
|
||||
$(TEST_PROGS): $(LIB)
|
||||
|
Loading…
Reference in New Issue
Block a user