home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / hdf / unix / hdf3_2r2 / src / install < prev    next >
Encoding:
Text File  |  1992-10-29  |  2.8 KB  |  73 lines

  1. ***********************************************************************
  2.  
  3.             NCSA HDF version 3.2
  4.                 August 28, 1992
  5. ***********************************************************************
  6.  
  7.      ---------------- Invoking the Makefile ------------------ 
  8.  
  9. A Makefile is provided for building HDF3.2.  Open the Makefile
  10. in your editor and read the instructions at the top of the file.
  11. The section marked PORTING INSTRUCTIONS indicates that you need
  12. to modify certain lines in order to configure the Makefile for your
  13. particular system.
  14.  
  15. Make targets available are :
  16. make            -- compile and install library and utilities
  17. make all        -- compile and install library and utilities
  18. make allnostub  -- compile and install library without
  19.                Fortran stub routines, and utilities
  20. make libdf.a    -- compile library
  21. make libnostub  -- compile library with Fortran stub routines
  22. make utils      -- compile utilities
  23. make install    -- install library and utilities
  24. make clean      -- rm intermediate files
  25. make cleanup    -- rm all make products
  26.  
  27.  
  28.     --------------- Compiling Subsets of HDF ---------------
  29.  
  30. In order to use HDF, you must compile the C routines using the
  31. following modules: hfile.c, hfile.h, hdf.h, hdfi.h, herr.c, herr.h,
  32. hkit.c and hproto.h.  You can omit various other routines by
  33. deleting references to certain files from the makefile, as
  34. follows:
  35.  
  36.  To omit selected fortran interfaces, delete all references to
  37.      fortran files that contain those interfaces (xxx.f) and 
  38.      their object files (xxx.o).
  39.  
  40. Similarly:
  41.  
  42.   To omit DFR8 routines, delete files that begin dfr8...
  43.   To omit DF24 routines, delete files that begin df24...
  44.   To omit DFP  routines, delete files that begin dfp...
  45.   To omit DFSD routines, delete files that begin dfsd...
  46.   To omit DFAN routines, delete files that begin dfan...
  47.   To omit Vset routines, delete files that begin v...
  48.   To omit conversion routines (currently only used by DFSD
  49.      and Vset), delete files that begin dfconv...
  50.   To omit the routines that emulate the old lower layer
  51.      of HDF, delete df.h, dfi.h, df.c, dfF.c and dfFf.f
  52.  
  53.  
  54.      ------------ Compiling C programs with HDF ----------------
  55.  
  56. To use HDF routines in your program, use "#include dfrig.h", "#include dfsd.h"
  57. etc. at the top of your program, depending on the Sets you are using.
  58. Call the appropriate HDF routines as described in the documentation. 
  59. Compile your C program "myprog.c" as follows:
  60.  
  61.     cc myprog.c libdf.a -o myprog
  62.  
  63. If the include file "dfrig.h" is in the directory "incdir", and the 
  64. library file "libdf.a" is in "libdir", use
  65.  
  66.     cc -Iincdir myprog.c libdir/libdf.a -o myprog
  67.  
  68.  
  69.            ------------ Testing HDF ----------------
  70.  
  71. A partial test suite should be included in this distribution.
  72. A Makefile and instructions are included with this test suite.
  73.