1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
# ****************************************************************************
# * NCSA HDF *
# * Software Development Group *
# * National Center for Supercomputing Applications *
# * University of Illinois at Urbana-Champaign *
# * 605 E. Springfield, Champaign IL 61820 *
# * *
# * For conditions of distribution and use, see the accompanying *
# * hdf/COPYING file. *
# * *
# ***************************************************************************
#
# build.inc,v 1.6 1995/05/17 02:57:40 georgev Exp
#
# ##################################################################
#
#
# This is the top level Makefile to build HDF 4.0 on Unix based
# platforms
#
#
#
# Flags to recursively send
#
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)"
#
#
# General rules
#
all:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
SUBDIRS="src jpeg util test" subd message
allnofortran:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=nofortran \
SUBDIRS="src jpeg util test" subd message
rebuild rebuildnofortran:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
SUBDIRS="src jpeg util test" subd message
libnofortran:
@$(MAKE) $(MYFLAGS) $(HDF_FLAGS) TARG=nofortran \
SUBDIRS="src jpeg" subd message
libnostub: libnofortran
allnostub: allnofortran
libdf:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
SUBDIRS="src" subd
libjpeg:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
SUBDIRS="jpeg" subd
utilities:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
SUBDIRS="src jpeg util" subd
tests:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
SUBDIRS="src jpeg test" subd
testnofortran:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=nofortran \
SUBDIRS="src jpeg test" subd message
perfs:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
SUBDIRS="src jpeg perf" subd
#install: $(INSTALL_DIRS)
# @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
# SUBDIRS="src util test" subd
debug:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=debug \
SUBDIRS="src jpeg test" subd message
saber:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=saber \
SUBDIRS="src jpeg test" subd
clean:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
SUBDIRS="src jpeg util test" subd
$(RM) $(RMFLAGS) core *.log
distclean:
@$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
SUBDIRS="src jpeg util 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)); \
done
message:
@echo ""
@echo "***********************************************************"
@echo " HDF 4.0 library successfully created."
@echo ""
@echo "If you have any old vset files (v 1.0) you must use vcompat"
@echo "to make them compatible with Vset 2.0 applications"
@echo ""
@echo "User programs can be created as follows:"
@echo ""
@echo " ${CC} program.c libdf.a -o program"
@echo ""
@echo "***********************************************************"
@echo ""
|