home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / MAKE.MIPSEL < prev    next >
Encoding:
Text File  |  1992-10-30  |  3.9 KB  |  160 lines

  1. # ##################################################################
  2. #
  3. #                   NCSA HDF Version 3.2 release 2
  4. #                        October 30, 1992
  5. #
  6. #           MAKEFILE for creating the HDF library, libdf.a, on Suns
  7. #
  8. # This makefile creates the following FORTRAN and C interfaces
  9. # for HDF in a library called "libdf.a":
  10. #
  11. #              DFR8   (8-bit raster image sets)
  12. #              DF24   (24-bit raster image sets)
  13. #              DFP    (palettes)
  14. #              DFSD   (scientific data sets)
  15. #              DFAN   (annotations)
  16. #              V      (vsets)
  17. #
  18. # See the file INSTALL for further information on how to invoke
  19. # this makefile.
  20. #
  21. # This release of HDF marks the first use of a new set of lower
  22. # level routines.  The makefile also creates these interfaces,
  23. # which are available in C only.  These routines are categorized
  24. # as follows:
  25. #
  26. #              H      (lower level i/o)
  27. #              DF     (emulation of old lower level i/o routines)
  28. #              HD     (lower level utilities for developers)
  29. #              HE     (lower level error-handling)
  30. #              HD     (lower level utilities, for developers)
  31. #              DFK    (conversion routines)
  32. #
  33. # ##################################################################
  34. #
  35. #
  36. #
  37. #
  38. # This is the top level Makefile to build HDF 3.2 on Unix based
  39. #       platforms
  40. #
  41. # Possible Machine Types
  42. #   SUN, IBM6000, HP9000, MIPSEL (Dec Mips based machines), ...
  43. #
  44.  
  45. #define your sh shell
  46. SHELL=/bin/sh
  47.  
  48. # Define your machine type
  49. MACHINE=MIPSEL
  50.  
  51. # Define your C compiler and flags
  52. CC= cc
  53. CFLAGS= -D${MACHINE} 
  54.  
  55. # Define your FORTRAN compiler
  56. FC= f77
  57. FFLAGS=
  58.  
  59. # Location where the HDF include files are to be installed
  60. HDFINC= `pwd`/include
  61.  
  62. # Location where the HDF library is to be installed
  63. HDFLIB= `pwd`/lib
  64.  
  65. # Location to put HDF utility executables
  66. HDFBIN= `pwd`/bin
  67.  
  68. # Name of library archiver and flags to send
  69. AR= ar
  70. ARFLAGS= r
  71.  
  72. # Name of achive randomizer (use 'touch' if non-existant)
  73. RANLIB= ranlib
  74.  
  75. # Name of remove utility
  76. RM= /bin/rm
  77. RMFLAGS= -f 
  78.  
  79. #
  80. #
  81. # Flags to recursively send
  82. #
  83.  
  84. HDF_FLAGS       = \
  85.         CC="$(CC)" \
  86.         CFLAGS="$(CFLAGS)" \
  87.         FC="$(FC)" \
  88.         FFLAGS="$(FFLAGS)" \
  89.         RANLIB="$(RANLIB)" \
  90.         AR="$(AR)" \
  91.         ARFLAGS="$(ARFLAGS)" \
  92.         RM="$(RM)" \
  93.         RMFLAGS="$(RMFLAGS)" \
  94.         MACHINE="$(MACHINE)" \
  95.         HDFLIB="$(HDFLIB)" \
  96.         HDFINC="$(HDFINC)" \
  97.     HDFBIN="$(HDFBIN)"    
  98.  
  99. #
  100. #
  101. # General rules
  102. #
  103. all:
  104.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
  105.           SUBDIRS="src util test" _sub message 
  106.  
  107. allnofortran:
  108.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=nofortran \
  109.           SUBDIRS="src util test" _sub message 
  110.  
  111. libnofortran:
  112.     @$(MAKE) $(MYFLAGS) $(HDF_FLAGS) TARG=nofortran \
  113.       SUBDIRS="src" _sub message
  114.  
  115. libnostub: libnofortran
  116.  
  117. allnostub: allnofortran
  118.  
  119. libdf:
  120.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  121.           SUBDIRS="src" _sub
  122.  
  123. utilities:
  124.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  125.           SUBDIRS="util" _sub
  126.  
  127. tests:
  128.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  129.           SUBDIRS="test" _sub
  130.  
  131. #install:      $(INSTALL_DIRS)
  132. #    @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@  \
  133. #          SUBDIRS="src util test" _sub
  134.  
  135. clean:
  136.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@  \
  137.           SUBDIRS="src util test" _sub
  138.     $(RM) $(RMFLAGS) core *.log
  139.  
  140. _sub:
  141.     @for dir in $(SUBDIRS); do \
  142.           (cd $$dir; echo Making \`$(TARG)\' in `pwd`; \
  143.               $(MAKE) $(MFLAGS) $(HDF_FLAGS) $(TARG)); \
  144.     done
  145.  
  146. message:
  147.     @echo ""
  148.     @echo "***********************************************************"
  149.     @echo " HDF 3.2 library successfully created."
  150.     @echo ""
  151.     @echo "If you have any old vset files (v 1.0) you must use vcompat"
  152.     @echo "to make them compatible with Vset 2.0 applications"
  153.     @echo ""
  154.     @echo "User programs can be created as follows:"
  155.     @echo ""
  156.     @echo "   cc -D${MACHINE} program.c libdf.a -o program"
  157.     @echo ""
  158.     @echo "***********************************************************"
  159.     @echo ""
  160.