diff options
-rw-r--r-- | Makefile | 204 |
1 files changed, 105 insertions, 99 deletions
@@ -1,117 +1,123 @@ -# ################################################################## +# Generated automatically from Makefile.in by configure. +# Top-level HDF5 Makefile(.in) -*- makefile -*- # +# Copyright (C) 1997 National Center for Supercomputing Applications. +# All rights reserved. # -# This is the top level Makefile to build HDF5 on Unix based -# platforms +# +# 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. # -# Define your sh shell -#SHELL=/bin/sh - -# Define your machine type -#MACHINE=UNIX386 - -# Define your C compiler and flags -CC= gcc -#CFLAGS= -ansi -Wall -pedantic -O -c -CFLAGS= -ansi -Wall -pedantic -g -c - -# Define your FORTRAN compiler -FC= f77 -FFLAGS= - -# Location where the HDF include files are to be installed -HDFINC= `pwd`/src - -# Location where the HDF library is to be installed -HDFLIB= `pwd`/src - -# Location to put HDF utility executables -HDFBIN= `pwd`/bin - -# Name of library archiver and flags to send -AR= ar -ARFLAGS= ru - -# Name of achive randomizer (use 'touch' if non-existant) -RANLIB= ranlib - -# Name of remove utility -RM= /bin/rm -RMFLAGS= -f - -# ################################################################## +#------------------------------------------------------------- -*- makefile -*- +# The following section of this makefile comes from the +# `./config/commence' file which was generated with config.status +# from `./config/commence.in'. +#------------------------------------------------------------------------------ + +# Things that Make needs +.SUFFIXES: +.SUFFIXES: .c .o + + +# Programs +SHELL=/bin/sh +CC=gcc +CFLAGS=-g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs +CPPFLAGS= +LIBS= +AR=ar +RANLIB=ranlib +RM=rm -f +INSTALL=/usr/bin/install -c +INSTALL_PROGRAM=${INSTALL} +INSTALL_DATA=${INSTALL} -m 644 + +# Installation points +prefix=/usr/local +exec_prefix=${prefix} +bindir=${exec_prefix}/bin +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +#------------------------------------------------------------------------------ +# The following section of this makefile comes from the middle of `Makefile.in' +# from this directory. It was generated by running `config.status'. +#------------------------------------------------------------------------------ + +# Subdirectories in build-order +SUBDIRS=src test + +############################################################################## +# T A R G E T S # -# This is the top level Makefile to build HDF5 on Unix based -# platforms +# all: Build libraries, header files, and programs in the various +# subdirectories but do not install them. # - +# install: Installs libraries, header files, programs, and documentation +# in the various directories under the prefix directory (lib, +# include, bin, man, info). Use the `--prefix=PATH' option +# to `configure' (or `config.status') or say `--help' for +# other alternatives. The default prefix is `/usr/local'. # +# uninstall: Delete all the installed files that the `install' target +# created (but not the noninstalled files such as `make all' +# created). # -# Flags to recursively send +# clean: Removes temporary files except those that record the +# configuration and those that are part of the distribution. # - -HDF_FLAGS = \ - CC="$(CC)" \ - CFLAGS="$(CFLAGS)" \ - FC="$(FC)" \ - FFLAGS="$(FFLAGS)" \ - RANLIB="$(RANLIB)" \ - AR="$(AR)" \ - ARFLAGS="$(ARFLAGS)" \ - RM="$(RM)" \ - RMFLAGS="$(RMFLAGS)" \ - MACHINE="$(MACHINE)" \ - HDFLIB="$(HDFLIB)" \ - HDFINC="$(HDFINC)" \ - HDFBIN="$(HDFBIN)" - +# mostlyclean: Like `clean' except it doesn't delete a few files like +# libraries, programs, and/or generated header files because +# regenerating them is rarely necessary and takes a lot of time. # +# distclean: Deletes all files that are created by configuring or building +# HDF5. If you have unpacked the source and built HDF5 without +# creating any other files, then `make distclean' will leave +# only the files that were in the distrubution. # -# General rules +# maintainer-clean: +# Like `distclean' except it deletes more files. It deletes +# all generated files. This target is not intended for normal +# users; it deletes files that may require special tools to +# rebuild. # -all: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \ - SUBDIRS="src test" subd message - -rebuild: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \ - SUBDIRS="src test" subd message - -libhdf5: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \ - SUBDIRS="src" subd - -tests: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=test \ - SUBDIRS="src test" subd - -debug: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=debug \ - SUBDIRS="src test" subd message +# TAGS: Updates the tags table for this program. +# +# dep depend: Builds dependencies in all subdirectories. These targets +# might not be available on certain combinations of make +# programs and C compilers. At the other extreme, the GNU +# make used in combination with gcc will maintain dependency +# information automatically. +# +all install uninstall TAGS dep depend: + @set -x; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done -clean: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \ - SUBDIRS="src test" subd - $(RM) $(RMFLAGS) core *.log +clean mostlyclean: + @set -x; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done distclean: - @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \ - SUBDIRS="src test" subd - $(RM) $(RMFLAGS) core *.log - $(RM) -rf bin lib include - -subd: - @for dir in $(SUBDIRS); do \ - (cd $$dir; echo Making \`$(TARG)\' in `pwd`; \ - $(MAKE) $(MFLAGS) $(HDF_FLAGS) $(TARG)); \ + @set -x; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done + $(RM) config/commence config/conclude config/depend + $(RM) config.cache config.log config.status src/config.h + $(RM) Makefile + +maintainer-clean: + @echo "This command is intented for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + @set -x; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ done + $(RM) config.cache config.log config.status src/config.h + $(RM) configure src/config.h.in -message: - @echo "" - @echo "***********************************************************" - @echo " HDF5 library successfully created." - @echo "" - @echo "***********************************************************" - @echo "" +# This file does not end with the `CONCLUDE' statement since it has +# redefined all the standard targets anyway. |