mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
afef3c0358
Minor feature Description: If a user configures without C++ or Fortran, 'make' will not recurse into c++ or fortran directories. However, if the user cd's into these directories and 'makes,' the Makefiles will attempt to build interfaces that have not been configured, usually failing. In an unrelated but minor change, src/H5detect should be compiled with the -g flag to disable compiler optimizations since it is only executed once. Solution: Make it harder for users to try to compile interfaces that have not been configured by making c++, fortran, and hl directories not recurse into their subdirectories unless they have been configured. Thus, 'make' in /fortran/src will break if Fortran has not been configured, but 'make' in /fortran will not break. Platforms tested: mir, modi4, copper Misc. update:
34 lines
886 B
Makefile
34 lines
886 B
Makefile
#
|
|
# Copyright (C) 2001 National Center for Supercomputing Applications.
|
|
# All rights reserved.
|
|
#
|
|
#
|
|
# This makefile mostly just reinvokes make in the various subdirectories
|
|
# but does so in the correct order. You can alternatively invoke make from
|
|
# each subdirectory manually.
|
|
##
|
|
## Makefile.am
|
|
## Run automake to generate a Makefile.in from this file.
|
|
##
|
|
#
|
|
# HDF5 High-Level Makefile(.in)
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
## Automake will automatically recurse into fortran directory for distclean
|
|
## if we define it conditionally.
|
|
if BUILD_FORTRAN_CONDITIONAL
|
|
FORTRAN_DIR = fortran
|
|
endif
|
|
if BUILD_CXX_CONDITIONAL
|
|
CXX_DIR = c++
|
|
endif
|
|
|
|
## Don't recurse into any subdirectories if HDF5 is not configured to
|
|
## use the HL library
|
|
if BUILD_HDF5_HL_CONDITIONAL
|
|
SUBDIRS=src test $(CXX_DIR) $(FORTRAN_DIR)
|
|
endif
|
|
|
|
include $(top_srcdir)/config/conclude.am
|