home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / vopl.tar.Z / vopl.tar / vopl / Makefile.rs6000 < prev    next >
Makefile  |  1995-11-30  |  2KB  |  110 lines

  1. #
  2. # Makefile for vopl
  3. #
  4. # Usage: make os
  5. #
  6. # You might have to set:
  7. #
  8. #    OS
  9. #    RANLIB
  10. #    MCFLAGS
  11. #    MCFLAGS
  12. #    LIBS
  13. #    F77
  14. #    MFFLAGS
  15. #
  16. ############################################################
  17. #
  18. # You can set -DBSD or -DSYS5 here
  19. #
  20. #OS = -DBSD
  21. #OS = -DSYS5
  22.  
  23. # If you set -DSYS5 then set RANLIB = "ar ts" or "echo"
  24. RANLIB = ranlib
  25.  
  26. #
  27. # Global CFLAGS can be set here. These are the ones we use on a sun.
  28. #
  29. # NOTE: change the -L bit or put libvogle.a 
  30. # where the linker can find them....
  31. WHERELIBS = -L/home/murumba/guest/labman/vogle/src -I/home/murumba/guest/labman/vogle/src
  32. #
  33.  
  34. # Specify the default VOGLE device for gpp here.
  35. #
  36. DEFDEV = -DX11
  37.  
  38. #MCFLAGS = -g $(OS) 
  39. MCFLAGS = $(OS) -O $(WHERELIBS)
  40. #MCFLAGS = $(OS) -O4 -fsingle -f68881 /usr/lib/libm.il
  41. #
  42. # Or on an apollo... (-Wp make it use the 'other cpp')
  43. #MCFLAGS = $(OS) -O -Wp -M3000
  44.  
  45. #
  46. # If we have fortran we have to say so.
  47. #
  48. F77 = xlf -qextname
  49. # Global FFLAGS can be set here. These are the ones we use on a sun.
  50. #
  51. MFFLAGS = $(OS) -g $(WHERELIBS)
  52. #MFFLAGS = $(OS) -O 
  53.  
  54. #
  55. # The name of the library to install and where to put it.
  56. #
  57. LIB = libvopl.a
  58. DEST = /usr/lib
  59.  
  60. #
  61. # Any other libraries that are needed go here
  62. #
  63.  
  64. SUNLIBS = -lsuntool -lsunwindow -lpixrect -lX11
  65. X11LIBS = -lX11
  66. UNIXLIBS = 
  67. APOLLOLIBS =
  68.  
  69. LIBS = -lvogle $(X11LIBS)
  70.  
  71.  
  72. all:
  73.     cd src; make -f Makefile \
  74.             RANLIB="$(RANLIB)" \
  75.             MCFLAGS="$(MCFLAGS)"
  76.  
  77.     if test -n "$(F77)" ; \
  78.     then     cd examples; \
  79.         make -f Makefile.f77 \
  80.             MFFLAGS="$(MFFLAGS)" \
  81.             F77="$(F77)" \
  82.             LIBS="$(LIBS)"; \
  83.     fi; exit 0
  84.  
  85.     cd examples; make -f Makefile \
  86.             MCFLAGS="$(MCFLAGS)" \
  87.             LIBS="$(LIBS)"
  88.  
  89.     cd gpp; make -f Makefile \
  90.             MCFLAGS="$(MCFLAGS)" \
  91.             DEFDEV="$(DEFDEV)" \
  92.             LIBS="$(LIBS)"
  93.  
  94. clean:
  95.     cd src; make clean
  96.     cd examples; make clean
  97.     cd examples; make -f Makefile.f77 clean
  98.     cd gpp; make clean
  99.  
  100. clobber:
  101.     cd src; make clobber
  102.     cd examples; make clobber
  103.     cd examples; make -f Makefile.f77 clobber
  104.     cd gpp; make clobber
  105.  
  106. install:
  107.     cp src/$(LIB) $(DEST)
  108.     chmod 644 $(DEST)/$(LIB)
  109.     $(RANLIB) $(DEST)/$(LIB)
  110.