home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / tinymud2.zip / MAKEFILE < prev    next >
Text File  |  1990-09-02  |  8KB  |  204 lines

  1. #################################################################
  2. #
  3. # Makefile for TinyMUD source code...June 6, 1990
  4. #
  5. #################################################################
  6. #
  7. # Whatever you put in for $(CC) must be able to grok ANSI C.
  8. #
  9.  
  10. # GCC:
  11. #CC=gcc
  12. #OPTIM= -g -W -Wreturn-type -Wunused -Wcomment -Wwrite-strings
  13.  
  14. # Systems with 'cc' built from GCC (IBM RT, NeXT):
  15. CC=cc
  16. OPTIM=-g
  17.  
  18. # Dec 3100 C compiler
  19. #CC=cc
  20. #OPTIM= -g -Dconst=
  21.  
  22. # To log failed commands (HUH's) to stderr, include -DLOG_FAILED_COMMANDS
  23. # To restrict object-creating commands to users with the BUILDER bit,
  24. #   include -DRESTRICTED_BUILDING
  25. # To log all commands, include -DLOG_COMMANDS
  26. # To force fork_and_dump() to use vfork() instead of fork(), include 
  27. #   -DUSE_VFORK.
  28. # To force grow_database() to be clever about its memory management,
  29. #   include -DDB_DOUBLING.  Use this only if your realloc does not allocate
  30. #   in powers of 2 (if you already have a clever realloc, this option will
  31. #   only cost you extra space).
  32. # By default, db.c initially allocates enough space for 10000 objects, then
  33. #   grows the space if needed.  To change this value, include
  34. #   -DDB_INITIAL_SIZE=xxxx where xxxx is the new value (minimum 1).
  35. # To include code for keeping track of the number of blocks allocated,
  36. #   include -DTEST_MALLOC.
  37. # To include code which attempts to compress string data, include -DCOMPRESS.
  38. # To eliminate the message third parties see when a player whispers, include
  39. #   -DQUIET_WHISPER.
  40. # To include Stephen White's gender flags and pronoun substitution code, 
  41. #   include -DGENDER.
  42. # To give set (!)WIZARD and extended WHO privs only to id #1,
  43. #   include -DGOD_PRIV.  When this option is set, two other options
  44. #   become meanigful
  45. #    -DGOD_MODE        Restricts host names some commands to #1
  46. #    -DGOD_ONLY_PCREATE    Restricts @pcreate to player #1
  47. # To have logs and WHO use hostnames instead of addresses, include
  48. #   -DHOST_NAME.
  49. # To have messages for connect and disconnect, include -DCONNECT_MESSAGES.
  50. # To use a hashed player list for player name lookups, 
  51. #   include -DPLAYER_LIST.
  52. # To disable login-time creation of players, include -DREGISTRATION.
  53. #    see GOD_ONLY_PCREATE above.
  54. # To cause netmud to detach itself from the terminal on startup, include
  55. #   -DDETACH.  The log file appears on LOG_FILE, set in config.h.
  56. # To add the @count & @recycle command, include -DRECYCLE
  57. # To disable core dump on errors, include -DNODUMPCORE
  58. # To add the ROBOT flag (allowing robots to be excluded from some rooms
  59. #   at each player's request), include -DROBOT_MODE
  60. # To use Tinker instead of Wizard, Bobble instead of Toad, and
  61. #    donate instead of sacrifice, include -DTINKER
  62. # To prevent users from using confusing names
  63. #   (currently A, An, The, You, Your, Going, Huh?), include -DNOFAKES
  64. #
  65. # To Use Islandia values in config.h, include -DISLANDIA
  66. # To Use TinyHELL values in config.h, include -DTINYHELL
  67.  
  68. #DEFS= -DGOD_PRIV -DCOMPRESS -DQUIET_WHISPER -DGENDER -DHOST_NAME \
  69. #      -DCONNECT_MESSAGES -DPLAYER_LIST -DDETACH -DREGISTRATION \
  70. #      -DGOD_ONLY_PCREATE -DROBOT_MODE -DRECYCLE -DNOFAKES \
  71. #      -DTINYHELL
  72.  
  73. DEFS= -DGOD_PRIV -DCOMPRESS -DQUIET_WHISPER -DGENDER -DHOST_NAME \
  74.       -DCONNECT_MESSAGES -DPLAYER_LIST -DDETACH -DROBOT_MODE \
  75.       -DRECYCLE -DTINKER -DNOFAKES -DISLANDIA
  76.  
  77. CFLAGS= $(OPTIM) $(DEFS)
  78.  
  79. # Everything needed to use db.c
  80. DBFILES= db.c compress.c player_list.c stringutil.c
  81. DBOFILES= db.o compress.o player_list.o stringutil.o
  82.  
  83. # Everything except interface.c --- allows for multiple interfaces
  84. CFILES= create.c game.c help.c look.c match.c move.c player.c predicates.c \
  85.     rob.c set.c speech.c utils.c wiz.c game.c \
  86.     boolexp.c unparse.c conc.c oldinterface.c $(DBFILES)
  87.  
  88. # .o versions of above
  89. OFILES= create.o game.o help.o look.o match.o move.o player.o predicates.o \
  90.     rob.o set.o speech.o utils.o wiz.o boolexp.o \
  91.     unparse.o $(DBOFILES)
  92.  
  93. # Files in the standard distribution
  94. DISTFILES= $(CFILES) config.h db.h externs.h interface.h match.h \
  95.     interface.c sanity-check.c extract.c dump.c decompress.c \
  96.     help.txt small.db minimal.db restart-cmu do_gripes \
  97.     restart-day restart-night \
  98.      README small.db.README \
  99.     CHANGES Makefile copyright.h
  100.  
  101. OUTFILES= netmud dump paths sanity-check extract decompress TAGS
  102.  
  103. BINDIR= /clients/Islandia/bin
  104. LIBDIR= /clients/Islandia/lib
  105.  
  106. BINS= $(BINDIR)/netmud.conc $(BINDIR)/extract $(BINDIR)/sanity-check \
  107.       $(BINDIR)/dump $(BINDIR)/decompress $(BINDIR)/concentrate
  108.  
  109. # paths is likely to remain broken
  110. all: extract sanity-check dump decompress netmud netmud.conc concentrate
  111.  
  112. TAGS: *.c *.h
  113.     etags *.c *.h
  114.  
  115. netmud.conc: $P interface.o $(OFILES)
  116.     -mv -f netmud.conc netmud.conc~
  117.     $(CC) $(CFLAGS) -o netmud.conc interface.o $(OFILES)
  118.  
  119. netmud: $P oldinterface.o $(OFILES)
  120.     -mv -f netmud netmud~
  121.     $(CC) $(CFLAGS) -o netmud oldinterface.o $(OFILES)
  122.  
  123. concentrate: $P conc.c config.h
  124.     -mv -f concentrate concentrate~
  125.     $(CC) $(CFLAGS) -o concentrate conc.c
  126.  
  127. dump: $P dump.o unparse.o $(DBOFILES)
  128.     -rm -f dump
  129.     $(CC) $(CFLAGS) -o dump dump.o unparse.o $(DBOFILES) 
  130.  
  131. sanity-check: $P sanity-check.o utils.o $(DBOFILES) 
  132.     -rm -f sanity-check
  133.     $(CC) $(CFLAGS) -o sanity-check sanity-check.o utils.o $(DBOFILES)
  134.  
  135. extract: $P extract.o utils.o $(DBOFILES) 
  136.     -rm -f extract
  137.     $(CC) $(CFLAGS) -o extract extract.o utils.o $(DBOFILES)
  138.  
  139. paths: $P paths.o unparse.o $(DBOFILES)
  140.     -rm -f paths
  141.     $(CC) $(CFLAGS) -o paths paths.o unparse.o $(DBOFILES)
  142.  
  143. decompress: $P decompress.o compress.o
  144.     -rm -f decompress
  145.     $(CC) $(CFLAGS) -o decompress decompress.o compress.o
  146.  
  147. clean:
  148.     -rm -f *.o a.out core gmon.out $(OUTFILES)
  149.  
  150. dist.tar.Z: $(DISTFILES)
  151.     tar cvf - $(DISTFILES) | compress -c > dist.tar.Z.NEW
  152.     mv dist.tar.Z.NEW dist.tar.Z
  153.  
  154. install: $(BINS)
  155.  
  156. $(BINDIR)/extract: extract
  157.     cp extract $(BINDIR)/extract
  158. $(BINDIR)/sanity-check: sanity-check
  159.     cp sanity-check $(BINDIR)/sanity-check
  160. $(BINDIR)/concentrate: concentrate
  161.     cp concentrate $(BINDIR)/concentrate
  162. $(BINDIR)/netmud.conc: netmud.conc
  163.     cp netmud.conc $(BINDIR)/netmud.conc
  164. $(BINDIR)/netmud: netmud
  165.     cp netmud $(BINDIR)/netmud
  166. $(BINDIR)/dump: dump
  167.     cp dump $(BINDIR)/dump
  168. $(BINDIR)/decompress: decompress
  169.     cp decompress $(BINDIR)/decompress
  170.  
  171. # DO NOT REMOVE THIS LINE OR CHANGE ANYTHING AFTER IT #
  172. boolexp.o: boolexp.c copyright.h db.h match.h externs.h config.h interface.h
  173. compress.o: compress.c
  174. create.o: create.c copyright.h db.h config.h interface.h externs.h
  175. db.o: db.c copyright.h db.h config.h
  176. decompress.o: decompress.c
  177. dump.o: dump.c copyright.h db.h
  178. extract.o: extract.c copyright.h db.h
  179. fix.o: fix.c copyright.h db.h config.h
  180. game.o: game.c copyright.h db.h config.h interface.h match.h externs.h
  181. help.o: help.c copyright.h db.h config.h interface.h externs.h
  182. interface.o: interface.c copyright.h db.h interface.h config.h
  183. look.o: look.c copyright.h db.h config.h interface.h match.h externs.h
  184. match.o: match.c copyright.h db.h config.h match.h
  185. move.o: move.c copyright.h db.h config.h interface.h match.h externs.h
  186. paths.o: paths.c copyright.h db.h config.h
  187. player.o: player.c copyright.h db.h config.h interface.h externs.h
  188. predicates.o: predicates.c copyright.h db.h interface.h config.h externs.h
  189. rob.o: rob.c copyright.h db.h config.h interface.h match.h externs.h
  190. sanity-check.o: sanity-check.c copyright.h db.h config.h
  191. set.o: set.c copyright.h db.h config.h match.h interface.h externs.h
  192. speech.o: speech.c copyright.h db.h interface.h match.h config.h externs.h
  193. stringutil.o: stringutil.c copyright.h externs.h
  194. unparse.o: unparse.c db.h externs.h config.h interface.h
  195. utils.o: utils.c copyright.h db.h
  196. wiz.o: wiz.c copyright.h db.h interface.h match.h externs.h
  197. config.h: copyright.h
  198. copyright.h:
  199. db.h: copyright.h
  200. externs.h: copyright.h db.h
  201. interface.h: copyright.h db.h
  202. match.h: copyright.h db.h
  203.