home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TIERRA40.ZIP / BEAGLE / MAKE_TOO < prev    next >
Text File  |  1992-05-05  |  4KB  |  153 lines

  1. # Makefile_sccsid: %W%    %G%
  2.  
  3. ## edit the following variables to tailor this Makefile to the system
  4. ## you want to install tierra on. (hint: if your `make' complains
  5. ## about missing values for any variable that is commented out, just
  6. ## give it a null value, ie: VAR =<Return>
  7.  
  8. ## Destination: set as appropriate for your system. it currently assumes
  9. ## you are building the system in a directory called ./
  10. #
  11. DEST          = ./
  12.  
  13.  
  14. ## Tools: uncomment the following lines as appropriate to build tools
  15. ## TIERRADIR is the path to the tierra source directory
  16. #
  17. TIERRADIR     = ../tierra/
  18. TOOLSDIR      = $(DEST)
  19.  
  20.  
  21. ## OS type: uncomment the set of lines for the operating system
  22. ## and/or machine type most closely resembling yours, if you port
  23. ## tools to a system significantly different from any of these or 
  24. ## one marked "not tested", please send us any changes you needed to
  25. ## make to get it working.
  26. #
  27. #
  28. # Sun Workstations: choose Sun3 or Sun4
  29. # other systems running Berkeley 4.2 or 4.3: choose bsd 4.3
  30. #
  31. # SGI Iris: choose IRIX
  32. # AT&T SysIII: choose Sys3 (not tested)
  33. # AT&T SysV: choose SysV   (not tested)
  34. #
  35. # IBM RS/6000: choose RS6000
  36.  
  37. ## Sun3 -------------------------------------
  38. #
  39. # OSFLAGS    = -fswitch
  40. # LIBS    = -lm 
  41. #
  42. ## Sun4 -------------------------------------
  43. #
  44. # OSFLAGS    = 
  45. LIBS    = -lm 
  46. #
  47. ## next -------------------------------------
  48. #
  49. # OSFLAGS    = 
  50. # LIBS    = -lm 
  51. #
  52. ## bsd 4.3 ----------------------------------
  53. #
  54. # OSFLAGS    =
  55. # LIBS    = -lm 
  56.  
  57. ## IRIX -------------------------------------
  58. #  only use BSD_SIGNALS for irix < 4.0
  59. # OSFLAGS    = -D_BSD_SIGNALS    
  60. # LIBS    = -lm -lsun 
  61. #
  62. ## Sys3 -------------------------------------
  63. #  (untested)
  64. # OSFLAGS    = -D_BSD_SIGNALS
  65. # LIBS    = -lm 
  66. #
  67. ## SysV -------------------------------------
  68. #  (untested)
  69. # OSFLAGS    = -D_BSD_SIGNALS
  70. # LIBS    = -lm 
  71.  
  72. ## DEC 5000  -----------------------------------
  73. #
  74. # OSFLAGS    = -D_BSD_SIGNALS 
  75. # LIBS    = -lm 
  76. #
  77.  
  78. ## RS6000 -----------------------------------
  79. #
  80. # OSFLAGS    = -D_BSD_SIGNALS -D__TRS6000__
  81. # LIBS    = -lm 
  82. #
  83. ##
  84. ## Optimization: set as appropriate for your compiler
  85. ## for debugging you should (usually) set this to -g
  86. ## to perform code optimization this setting is (usually) -O or -O<digit>
  87. #
  88. OPTIMIZ    = -O
  89.  
  90. ## Flags to be passed to the linker (usually cc). Add any special requirements
  91. ## for your system. this is hopefully oniform enough that there is no need
  92. ## to include all of the possibilities under the OS section. if you are using
  93. ## optimization, you may want to add -s to strip symbol tables and thus create 
  94. ## a smaller binary.
  95. #
  96. LDFLAGS = $(OPTIMIZ)
  97.  
  98. ## you shouldn't have to change anything below this line.
  99. ## (if you are lucky, and the gods of technology aren't angry with you...)
  100.  
  101. CFLAGS    = -w $(OPTIMIZ) $(OSFLAGS) -I$(TIERRADIR)
  102.  
  103. CC            = cc
  104. LINKER          = cc 
  105.  
  106. MAKEFILE      = Makefile
  107.  
  108. all:;
  109.     @echo "   "
  110.     @echo " Analysis Tools for the    "
  111.     @echo "   "
  112.     @echo " Tierra Artificial Life system "
  113.     @echo "   "
  114.     @echo " Please edit this Makefile, "
  115.     @echo " un-commenting the line(s) for your machine type / OS. "
  116.     @echo " and choice of options. "
  117.     @echo "   "
  118.     @echo " Then say:  " 
  119.     @echo " make programs  " 
  120.     @echo "   " 
  121.  
  122.  
  123.  
  124. probe:;            cc $(CFLAGS) probe.c $(LIBS) -o $(DEST)/probe
  125. tieout:;        cc $(CFLAGS) tieout.c $(LIBS) -o $(DEST)/tieout
  126. rdn_inst:;        cc $(CFLAGS) rnd_inst.c $(LIBS) -o $(DEST)/rnd_inst
  127.  
  128.  
  129. clean:;        rm -f *.o  probe rnd_inst tieout
  130.  
  131. depend:;    mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  132.  
  133. index:;        ctags -wx $(HDRS) $(SRCS)
  134.  
  135. install:    $(PROGRAM)
  136.         install -s $(PROGRAM) $(DEST)
  137.  
  138. print:;        $(PRINT) $(HDRS) $(SRCS)
  139.  
  140. programs:       probe tieout rnd_inst 
  141.  
  142. tags:           $(HDRS) $(SRCS); ctags $(HDRS) $(SRCS)
  143.  
  144. update:        $(DEST)/$(PROGRAM)
  145.  
  146. #distrib:    $(SRCS) $(HDRS) $(DOCS) arg.c Makefile
  147. #        cp $(SRCS) $(HDRS) $(DOCS) arg.c Makefile $(DEST)/src/distrib
  148. #        cd $(DEST)/src/distrib; 
  149.  
  150. $(DEST)/$(PROGRAM): $(PROGRAM)
  151.         @make -f $(MAKEFILE) DEST=$(DEST) install
  152.  
  153.