From cwooldri@laurel.ocs.mq.edu.au Thu Nov 11 00:49:03 1993 Return-Path: Received: from newton.ncsa.uiuc.edu by void.ncsa.uiuc.edu (4.1/NCSA-4.1) id AA26077; Thu, 11 Nov 93 00:49:02 CST Received: from laurel.ocs.mq.edu.au by newton.ncsa.uiuc.edu with SMTP id AA14080 (5.65a/IDA-1.4.2 for koziol@void.ncsa.uiuc.edu); Thu, 11 Nov 93 00:50:36 -0600 Received: by laurel.ocs.mq.edu.au id AA12992 (5.65c/IDA-1.4.4 for koziol@ncsa.uiuc.edu); Thu, 11 Nov 1993 17:50:05 +1100 From: Christopher Wooldridge Message-Id: <199311110650.AA12992@laurel.ocs.mq.edu.au> Subject: HDF & PC Linux - makefile To: koziol@ncsa.uiuc.edu (Quincey Koziol) Date: Thu, 11 Nov 1993 17:50:05 +1100 (EST) In-Reply-To: <9311102000.AA16783@void.ncsa.uiuc.edu> from "Quincey Koziol" at Nov 10, 93 02:00:09 pm X-Mailer: ELM [version 2.4 PL22] Content-Type: text Content-Length: 4005 Status: O # ################################################################## # # NCSA HDF Version 3.3 release 1 # September 1993 # # MAKEFILE for creating the HDF library, libdf.a, # # This makefile creates the following FORTRAN and C interfaces # for HDF in a library called "libdf.a": # # DFR8 (8-bit raster image sets) # DF24 (24-bit raster image sets) # DFP (palettes) # DFSD (scientific data sets) # DFAN (annotations) # V (vsets) # # See the file INSTALL for further information on how to invoke # this makefile. # # This release of HDF marks the first use of a new set of lower # level routines. The makefile also creates these interfaces, # which are available in C only. These routines are categorized # as follows: # # H (lower level i/o) # DF (emulation of old lower level i/o routines) # HD (lower level utilities for developers) # HE (lower level error-handling) # HD (lower level utilities, for developers) # DFK (conversion routines) # # ################################################################## # # # # # This is the top level Makefile to build HDF 3.3 on Unix based # platforms # # Possible Machine Types # SUN, IBM6000, HP9000, MIPSEL (Dec Mips based machines), ... # #define your sh shell SHELL=/bin/sh # Define your machine type MACHINE=PC_UNIX # Define your C compiler and flags CC= gcc CFLAGS= -D${MACHINE} -O2 -fomit-frame-pointer -m486 # Define your FORTRAN compiler FC= f77 FFLAGS= # Location where the HDF include files are to be installed HDFINC= /usr/local/include # Location where the HDF library is to be installed HDFLIB= /usr/local/lib # Location to put HDF utility executables HDFBIN= /usr/local/bin # Name of library archiver and flags to send AR= ar ARFLAGS= r # Name of achive randomizer (use 'touch' if non-existant) RANLIB= ranlib # Name of remove utility RM= /bin/rm RMFLAGS= -f # # # 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 util test" _sub message allnofortran: @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=nofortran \ SUBDIRS="src util test" _sub message libnofortran: @$(MAKE) $(MYFLAGS) $(HDF_FLAGS) TARG=nofortran \ SUBDIRS="src" _sub message libnostub: libnofortran allnostub: allnofortran libdf: @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \ SUBDIRS="src" _sub utilities: @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \ SUBDIRS="util" _sub tests: @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \ SUBDIRS="test" _sub #install: $(INSTALL_DIRS) # @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \ # SUBDIRS="src util test" _sub clean: @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \ SUBDIRS="src util test" _sub $(RM) $(RMFLAGS) core *.log _sub: @for dir in $(SUBDIRS); do \ (cd $$dir; echo Making \`$(TARG)\' in `pwd`; \ $(MAKE) $(MFLAGS) $(HDF_FLAGS) $(TARG)); \ done message: @echo "" @echo "***********************************************************" @echo " HDF 3.3 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 -D${MACHINE} program.c libdf.a -o program" @echo "" @echo "***********************************************************" @echo ""