home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / makefile < prev    next >
Makefile  |  1993-05-04  |  6KB  |  184 lines

  1. #
  2. # Makefile for SAOimage
  3. #
  4. # To build:
  5. #    % make aix        # IBM RS/6000 running AIX
  6. #    % make alliant        # Alliant FX series
  7. #    % make apollo        # Any Apollo, software floating point
  8. #    % make apollo_68882    # Apollo for MC68882 fp
  9. #    % make apollo_fpa    # Apollo for FPA1
  10. #    % make apollo_prism    # Apollo for PRISM architecture (a88k)
  11. #    % make aux        # Macintosh A/UX
  12. #    % make hp        # HP-UX
  13. #    % make mips        # MIPStation running RISCOS
  14. #    % make sgi        # SGI Personal Iris running Irix
  15. #     % make sun        # All Sun architectures, maybe software fp
  16. #    % make sun_sparc    # Sun SPARC
  17. #    % make sun_ffpa        # Sun-3 floating point accelerator
  18. #    % make sun_f68881    # Sun-3 motorola f68881 floating point
  19. #    % make sun_fswitch    # All Suns, switchable floating point
  20. #    % make ultrix        # DECstation and VAXstation
  21. #
  22. # The full "make install" both installs SAOimage in Unix and sets up for
  23. # communications with IRAF:
  24. #    % make install
  25. #    (or, % make install SAOBINDIR = "/ourown/local/bindir")
  26. #
  27. # Partial installs may also be used:
  28. #    % make install_saobin    # just install binary (can add SAOBINDIR)
  29. #    % make install_saoman    # just install manual page
  30. #    % make install_fifo    # just install iraf fifo's
  31. #    % make install_imtoolrc    # just install iraf imtoolrc file
  32. #
  33. # NOTICE: You can't run the installation targets from this umbrella makefile.
  34. # You must run the correct makefile.<machine> for the workstation you are
  35. # installing on.  For instance,
  36. #
  37. #    % make -f makefile.dec install
  38. #
  39. # Other options:
  40. #    % make manual        # make manual.dvi file in doc subdirectory
  41. #    % make clean        # clean up object & miscellaneous other files
  42. #    % make tar        # make saoimage.tar in CWD
  43. #    % make -s pipe        # create tarfile on stdout for piping
  44. #    % make tape        # create tarfile on /dev/nrxt8
  45. #
  46. # Make macros (parameters) that can be specified on command line:
  47. #    SAOBINDIR        # Destination directory for SAOimage program
  48. #    SAOMANDIR        # Destination directory for on-line manpage
  49. #    ARCFILE            # Disk archive file name (used with make tar)
  50. #    TAPEDEV            # Tape archive device name (used with make tape)
  51.  
  52. SAOIMAGE = saoimage
  53.  
  54. oops:
  55.     @echo No architecture specified.  Please re-run as \"make ARCH\", \
  56.     where ARCH is one of
  57.     @grep '^[a-z].*:' makefile | grep -v $@ | sed 's/:.*$$//'
  58.  
  59. # It would be nicer to print out the supported architectures in a pretty
  60. # table, but the AIX awk complains that END is a syntax error, so we will
  61. # leave this out for now.
  62.  
  63. #        awk '{printf ("    %-14.14s", $$0); np++; \
  64. #         if (np == 3) {printf ("\n"); np=0} \
  65. #         } END {if (np > 0) print ""}'
  66.  
  67.  
  68. # Following are targets for all the supported architecures.  Note that there
  69. # is a different makefile.<vendor> for each workstation manufacturer; this
  70. # is sufficient at this stage.  The only changes that should be required in
  71. # selecting a particular architecture is the adjustment of the ADFLAGS macro,
  72. # which sets the architecture-dependent flags for compilation and linking.
  73.  
  74.  
  75. aix:                        # IBM RT6000 (AIX)
  76.     $(MAKE) -f makefile.ibm $(SAOIMAGE) ARCH=$@ \
  77.         ADFLAGS="-D_BSD"
  78.  
  79.  
  80. alliant:                    # Alliant FX
  81.     $(MAKE) -f makefile.alnt $(SAOIMAGE) ARCH=$@
  82.  
  83.  
  84. # For Apollo, note that you need ADFLAGS = -DXV11R2 for OS prior to SR10.2.
  85. # The XV11R2 flag is necessary when libX11 does not contain an entry for
  86. # "XVisualIDFromVisual"; the relevant ifdef is in clrinit.c.
  87.  
  88. apollo:                        # Apollo, software floating pt
  89.     $(MAKE) -f makefile.apo $(SAOIMAGE) ARCH=$@ \
  90.         ADFLAGS="-W0,-opt,3,-ndb -L/usr/lib/X11"
  91.  
  92. apollo_68882:                    # Apollo, MC68882 floating pt
  93.     $(MAKE) -f makefile.apo $(SAOIMAGE) ARCH=$@ \
  94.         ADFLAGS="-W0,-opt,3,-cpu,3000,-ndb -L/usr/lib/X11"
  95.  
  96. apollo_fpa:                    # Apollo, Weitek FPA floating pt
  97.     $(MAKE) -f makefile.apo $(SAOIMAGE) ARCH=$@ \
  98.         ADFLAGS="-W0,-opt,3,-cpu,FPA1,-ndb -L/usr/lib/X11"
  99.  
  100. apollo_prism:                    # Apollo, PRISM architecture
  101.     $(MAKE) -f makefile.apo $(SAOIMAGE) ARCH=$@ \
  102.         ADFLAGS="-W0,-opt,3,-cpu,a88k,-ndb -L/usr/lib/X11"
  103.  
  104. apollo_a88k:
  105.     $(MAKE) apollo_prism
  106.  
  107. apollo_m68k:
  108.     $(MAKE) apollo_68882
  109.  
  110.  
  111. hp:                        # Hewlett-Packard (HPUX)
  112.     $(MAKE) -f makefile.hp $(SAOIMAGE) ARCH=$@
  113.  
  114.  
  115. mips:                        # MIPS, Inc. (RISCOS)
  116.     $(MAKE) -f makefile.mips $(SAOIMAGE) ARCH=$@
  117.  
  118.  
  119. sgi:                        # SGI Personal Iris (Irix)
  120.     $(MAKE) -f makefile.sgi $(SAOIMAGE) ARCH=$@ \
  121.         ADFLAGS="-I/usr/include/sun -I/usr/include/bsd"
  122.  
  123.  
  124. sun:                        # Sun generic => SPARC
  125.     $(MAKE) sun_sparc
  126.  
  127. sun_sparc:                    # Sun, sparc architecture
  128.     $(MAKE) -f makefile.sun $(SAOIMAGE) ARCH=$@
  129.  
  130. sun_f68881:                    # Sun3, mc68881 floating pt
  131.     $(MAKE) -f makefile.sun $(SAOIMAGE) ARCH=$@ \
  132.         ADFLAGS="-f68881"
  133.  
  134. sun_ffpa:                    # Sun3, ffpa floating pt
  135.     $(MAKE) -f makefile.sun $(SAOIMAGE) ARCH=$@ \
  136.         ADFLAGS="-ffpa"
  137.  
  138. sun_fswitch:                    # Suns, switchable fp
  139.     $(MAKE) -f makefile.sun $(SAOIMAGE) ARCH=$@ \
  140.         ADFLAGS="-fswitch"
  141.  
  142.  
  143. ultrix:                        # DECstation/VAXstation (Ultrix)
  144.     $(MAKE) -f makefile.dec $(SAOIMAGE) ARCH=$@
  145.  
  146. aux:                                            # A/UX (Macintosh)
  147.     $(MAKE) -f makefile.aux $(SAOIMAGE) ARCH=$@
  148.  
  149. dec:                        # DEC (Ultrix)
  150.     $(MAKE) ultrix
  151.  
  152.  
  153. # Some of the utility targets are generic enough that we can just point to
  154. # one of the architecture-specific makefiles.
  155.  
  156. MAKEUTIL = makefile.dec
  157.  
  158. ARCFILE = saoimage.tar
  159. TAPEDEV = /dev/nrxt8
  160.  
  161. tar:
  162. #    $(MAKE) -f makefile`ls .buildarch.* | sed 's/\.buildarch//'` $@
  163.     $(MAKE) -f $(MAKEUTIL) $@ ARCFILE=$(ARCFILE)
  164. pipe:
  165.     $(MAKE) -f $(MAKEUTIL) -s tar ARCFILE=-
  166. tape:
  167.     $(MAKE) -f $(MAKEUTIL) tar ARCFILE=$(TAPEDEV)
  168. clean:
  169.     $(MAKE) -f $(MAKEUTIL) $@
  170.  
  171. install:
  172.     @echo You can\'t run install from this umbrella makefile. \
  173.         You must run the correct
  174.     @echo makefile.machine for the workstation \
  175.         you are installing on.  For instance,
  176.     @echo
  177.     @echo "    % make -f makefile.dec install"
  178.  
  179. manual:
  180.     cd doc; latex $@
  181.     @echo $@.dvi created in `pwd`.
  182.     @echo You must run a DVI translator appropriate for \
  183.         your printer, e.g., dvips.
  184.