home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / usenet / volume6 / conquer4 / patch2b < prev    next >
Encoding:
Internet Message Format  |  1989-07-13  |  10.1 KB

  1. Path: uunet!zephyr!tektronix!tekgen!tekred!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v07i011:  conquer4 - middle earth multi-player game (V4), Patch2b
  5. Message-ID: <4224@tekred.CNA.TEK.COM>
  6. Date: 12 Jul 89 13:43:49 GMT
  7. Sender: nobody@tekred.CNA.TEK.COM
  8. Lines: 306
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: Bill Randle <billr@tekred.CNA.TEK.COM>
  12. Posting-number: Volume 7, Issue 11
  13. Archive-name: conquer4/Patch2b
  14. Patch-To: conquer4: Volume 6, Issue 96
  15.  
  16.     [This replaces the original Makefile. Remove the original
  17.      before unpacking this shar file (otherwise it will fail).]
  18.  
  19. #! /bin/sh
  20. # This is a shell archive.  Remove anything before this line, then unpack
  21. # it by saving it into a file and typing "sh file".  To overwrite existing
  22. # files, type "sh file -c".  You can also feed this as standard input via
  23. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  24. # will see the following message at the end:
  25. #        "End of shell archive."
  26. # Contents:  Makefile
  27. # Wrapped by billr@saab on Wed Jul 12 06:36:20 1989
  28. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  29. if test -f 'Makefile' -a "${1}" != "-c" ; then 
  30.   echo shar: Will not clobber existing file \"'Makefile'\"
  31. else
  32. echo shar: Extracting \"'Makefile'\" \(8505 characters\)
  33. sed "s/^X//" >'Makefile' <<'END_OF_FILE'
  34. X#    conquer: Copyright (c) 1989 by Edward M Barlow
  35. X#
  36. X#    BY CHANGING THIS FILE, YOU AGREE TO ABIDE BY THE LIMITATIONS STATED IN
  37. X#    THE LIMITED USE CONTRACT CONTAINED IN THE FILE "header.h"
  38. X#
  39. X#       This makefile has been modified to allow compilation using
  40. X#       a parallelized make program.  It has been used successfully
  41. X#       on an Encore Multimax parallel computer with both 4 and
  42. X#       6 cpus.
  43. X#
  44. X#       It should pose no problems for non parallel makes.
  45. X#
  46. X#       Please report any problems to adb@bucsf.bu.edu
  47. X#
  48. XMAKE    = /bin/make
  49. XCC    = /bin/cc
  50. XRM      = /bin/rm -f
  51. X
  52. X#    LN must be "ln -s" if source, data, and default span disks
  53. XLN    = ln
  54. XCP    = cp
  55. XNULL    = 2>/dev/null
  56. X
  57. X#    Flags to lint
  58. XLTFLG   = -h -lcurses
  59. X
  60. X#    Options for shar program, SHARLIM is limit of each shar
  61. X#    file created in kilobytes and SHARNAM is the prefix for
  62. X#    SHARFILE name.
  63. X#    [This is for a public domain shar from USENET, I can send
  64. X#    copies if you wish - adb@bu-cs.bu.edu]
  65. XSHAR    = xshar
  66. XSHARLIM    = 50
  67. XSHARNAM    = shar.
  68. XSHARFLG = -D -c -l$(SHARLIM) -o$(SHARNAM)
  69. X
  70. X#    This should be installed by whomever you want to own the game.
  71. X#    I recommend "games" or "root".
  72. X
  73. X#    uncomment the next line if you dont have getopt in your library
  74. X#    (eg you are on a pc, or a non unix system).  getopt.c is a
  75. X#    public domain software, and has not been tested by the authors
  76. X#    of conquer.
  77. X#GETOPT    = getopt.o
  78. X
  79. X#if the final link does not compile change to the line below
  80. XLIBRARIES = -lcurses -ltermcap
  81. X#LIBRARIES = -lcurses
  82. X
  83. X#    DEFAULT is the directory where default nations & help files will be 
  84. X#    stored.     It is also the default directory = where players will play 
  85. X#    if they do not use the -d option.
  86. XDEFAULT = /usr4/acm/stud/adb/games/conqlib
  87. X
  88. X#    This directory is where the executables will be stored
  89. XEXEDIR = /usr4/acm/stud/adb/games
  90. X
  91. X#    Definitions used for compiling conquer
  92. XCDEFS  = -DDEFAULTDIR=\"$(DEFAULT)\" -DEXEDIR=\"$(EXEDIR)\"
  93. X
  94. X#    Options flag used for non-debugging purposes
  95. XOPTFLG  = -O
  96. X
  97. X#    Options flag used for debugging purposes
  98. X#    [make sure to comment out 'strip' commands in install section]
  99. X#OPTFLG  = -DDEBUG -g
  100. X
  101. X#    this is the name of the user executable
  102. X#       the user executable contains commands for the games players
  103. XGAME  = conquer
  104. X#    this is the name of the administrative executable
  105. X#       the administrative executable contains commands for the game super user
  106. XADMIN = conqrun
  107. X#    this is the name of the sorting program which conquer uses
  108. XSORT  = conqsort
  109. X
  110. X#       GAME IDENTIFICATION
  111. X#    this is the game identifier.  See the DATA variable below
  112. XGAMEID = 1
  113. X#    This directory is where individual Conquer game data will be stored.
  114. X#    As multiple simultaneous games are supported, each game must have its 
  115. X#    own directory.
  116. XDATA  = $(DEFAULT)/$(GAMEID)
  117. X
  118. X#    Suffixes for conquer files.
  119. X.SUFFIXES:    A.o G.o
  120. X
  121. X# AFILS are files needed for game updating...
  122. XAFILS = combat.c cexecute.c io.c admin.c makeworl.c navy.c spew.c \
  123. Xnewlogin.c update.c magic.c npc.c misc.c randeven.c data.c trade.c check.c
  124. XAOBJS = combat.o cexecuteA.o ioA.o admin.o makeworl.o navyA.o spew.o \
  125. Xnewlogin.o update.o magicA.o npc.o miscA.o randeven.o dataA.o \
  126. XtradeA.o $(GETOPT) check.o
  127. X
  128. X# GFILS are files needed to run a normal interactive game
  129. XGFILS = commands.c cexecute.c forms.c io.c main.c move.c navy.c \
  130. Xmagic.c misc.c reports.c data.c display.c extcmds.c trade.c check.c
  131. XGOBJS = commands.o cexecuteG.o forms.o ioG.o main.o move.o navyG.o \
  132. XmagicG.o miscG.o reports.o dataG.o display.o extcmds.o tradeG.o \
  133. X$(GETOPT) check.o
  134. X
  135. X#txt[0-4] are input help files.  help[0-4] are output. HELPSCR is sed script.
  136. XHELP=txt
  137. XHELPOUT=help
  138. XHELPSCR=sed
  139. X
  140. XHEADERS=header.h data.h newlogin.h patchlevel.h
  141. XSUPT1=nations Makefile $(HELP)[0-5] README run man.page rules
  142. XSUPT2=execute messages news commerce
  143. XALLFILS=$(SUPT1) $(HEADERS) $(AFILS) commands.c forms.c main.c move.c \
  144. Xreports.c display.c extcmds.c newhelp.c sort.c getopt.c
  145. X
  146. Xall:    $(ADMIN) $(GAME) $(SORT) helpfile
  147. X    @echo YAY! make new_game to set up permissions, zero appropriate
  148. X    @echo initial files, move $(GAME) and $(ADMIN) to 
  149. X    @echo $(EXEDIR), and set up the world.
  150. X    @echo If a game is in progress, make install will just move $(GAME) 
  151. X    @echo and $(ADMIN) to $(EXEDIR).
  152. X    @echo
  153. X
  154. X$(ADMIN):    $(AOBJS)
  155. X    @echo phew...
  156. X    @echo if the next command does not work you might also need -ltermcap
  157. X    @echo === compiling administrative functions
  158. X    $(CC) $(OPTFLG) -o $(ADMIN) $(AOBJS) $(LIBRARIES)
  159. X#    comment out the next line during debugging    
  160. X    strip $(ADMIN)
  161. X
  162. X$(GAME):    $(GOBJS)
  163. X    @echo phew... 
  164. X    @echo if the next command does not work you might also need -ltermcap
  165. X    @echo === compiling user interface
  166. X    $(CC) $(OPTFLG) -o $(GAME) $(GOBJS) $(LIBRARIES)
  167. X#    comment out the next line during debugging
  168. X    strip $(GAME)
  169. X
  170. X$(SORT):    sort.c
  171. X    $(CC) $(OPTFLG) -o $(SORT) sort.c
  172. X#    comment out the next line if debugging
  173. X    strip $(SORT)
  174. X
  175. Xclobber:
  176. X    $(RM) *.o $(HELPOUT)[0-5] $(SORT) newhelp in$(GAME) in$(SORT) in$(ADMIN) $(HELPSCR).[12] lint[aghs] conquer.doc $(GAME) $(ADMIN) $(NULL)
  177. X
  178. Xclean:
  179. X    $(RM) *.o lint[aghs] conquer.doc $(NULL)
  180. X
  181. Xin$(GAME):    $(GAME)
  182. X    -$(RM) $(EXEDIR)/$(GAME)
  183. X    $(CP) $(GAME) $(EXEDIR)
  184. X    chmod 4751 $(EXEDIR)/$(GAME)
  185. X    touch in$(GAME)
  186. X
  187. Xin$(ADMIN):    $(ADMIN)
  188. X    -$(RM) $(EXEDIR)/$(ADMIN)
  189. X    $(CP) $(ADMIN) $(EXEDIR)
  190. X    chmod 4751 $(EXEDIR)/$(ADMIN)
  191. X    touch in$(ADMIN)
  192. X
  193. Xin$(SORT):    $(SORT)
  194. X    -$(RM) $(EXEDIR)/$(SORT)
  195. X    $(CP) $(SORT) $(EXEDIR)
  196. X    chmod 751 $(EXEDIR)/$(SORT)
  197. X    touch in$(SORT)
  198. X
  199. Xinstall:    in$(GAME) in$(ADMIN) in$(SORT) helpfile
  200. X    @echo ""
  201. X    @echo "Installation complete"
  202. X
  203. Xnew_game:    all
  204. X    @echo Installing new game
  205. X    -mkdir $(EXEDIR) $(NULL)
  206. X    -mkdir $(DATA) $(NULL)
  207. X    -mkdir $(DEFAULT)  $(NULL)
  208. X    chmod 755 $(EXEDIR)
  209. X    chmod 750 $(DATA) $(DEFAULT)
  210. X    $(CP) $(GAME) $(ADMIN) $(SORT) $(EXEDIR)
  211. X    chmod 4755 $(EXEDIR)/$(GAME) $(EXEDIR)/$(ADMIN)
  212. X    chmod 0755 $(EXEDIR)/$(SORT)
  213. X    chmod 0600 nations
  214. X    chmod 0700 run
  215. X    $(CP) nations rules $(DATA)
  216. X    $(CP) nations rules $(DEFAULT)
  217. X    @echo now making the world
  218. X    $(EXEDIR)/$(ADMIN) -d$(DATA) -m
  219. X    $(EXEDIR)/$(ADMIN) -d$(DATA) -a
  220. X
  221. Xhelpfile:    $(HELPOUT)0 $(HELPOUT)1 $(HELPOUT)2 $(HELPOUT)3 $(HELPOUT)4 $(HELPOUT)5
  222. X    @echo Helpfiles built
  223. X    touch helpfile
  224. X
  225. X$(HELPOUT)0:    $(HELP)0 $(HELPSCR).1 $(HELPSCR).2
  226. X    @echo building $(HELPOUT)0
  227. X    cat $(HELP)0 | sed -f $(HELPSCR).1 | sed -f $(HELPSCR).2 > $(HELPOUT)0
  228. X    -$(RM) $(DEFAULT)/$(HELPOUT)0
  229. X    -$(LN) $(HELPOUT)0 $(DEFAULT)/$(HELPOUT)0
  230. X
  231. X$(HELPOUT)1:    $(HELP)1 $(HELPSCR).1 $(HELPSCR).2
  232. X    @echo building $(HELPOUT)1
  233. X    cat $(HELP)1 | sed -f $(HELPSCR).1 | sed -f $(HELPSCR).2 > $(HELPOUT)1
  234. X    -$(RM) $(DEFAULT)/$(HELPOUT)1
  235. X    -$(LN) $(HELPOUT)1 $(DEFAULT)/$(HELPOUT)1
  236. X
  237. X$(HELPOUT)2:    $(HELP)2 $(HELPSCR).1 $(HELPSCR).2
  238. X    @echo building $(HELPOUT)2
  239. X    cat $(HELP)2 | sed -f $(HELPSCR).1 | sed -f $(HELPSCR).2 > $(HELPOUT)2
  240. X    -$(RM) $(DEFAULT)/$(HELPOUT)2
  241. X    -$(LN) $(HELPOUT)2 $(DEFAULT)/$(HELPOUT)2
  242. X
  243. X$(HELPOUT)3:    $(HELP)3 $(HELPSCR).1 $(HELPSCR).2
  244. X    @echo building $(HELPOUT)3
  245. X    cat $(HELP)3 | sed -f $(HELPSCR).1 | sed -f $(HELPSCR).2 > $(HELPOUT)3
  246. X    -$(RM) $(DEFAULT)/$(HELPOUT)3
  247. X    -$(LN) $(HELPOUT)3 $(DEFAULT)/$(HELPOUT)3
  248. X
  249. X$(HELPOUT)4:    $(HELP)4 $(HELPSCR).1 $(HELPSCR).2
  250. X    @echo building $(HELPOUT)4
  251. X    cat $(HELP)4 | sed -f $(HELPSCR).1 | sed -f $(HELPSCR).2 > $(HELPOUT)4
  252. X    -$(RM) $(DEFAULT)/$(HELPOUT)4
  253. X    -$(LN) $(HELPOUT)4 $(DEFAULT)/$(HELPOUT)4
  254. X
  255. X$(HELPOUT)5:    $(HELP)5 $(HELPSCR).1 $(HELPSCR).2
  256. X    @echo building $(HELPOUT)5
  257. X    cat $(HELP)5 | sed -f $(HELPSCR).1 | sed -f $(HELPSCR).2 > $(HELPOUT)5
  258. X    -$(RM) $(DEFAULT)/$(HELPOUT)5
  259. X    -$(LN) $(HELPOUT)5 $(DEFAULT)/$(HELPOUT)5
  260. X
  261. X$(HELPSCR).1:    newhelp
  262. X    newhelp
  263. X
  264. X$(HELPSCR).2:    newhelp
  265. X    newhelp
  266. X
  267. Xnewhelp:    dataG.o    newhelp.o
  268. X    $(CC) dataG.o newhelp.o -o newhelp
  269. X
  270. Xlint:
  271. X    lint $(LTFLG) $(CDEFS) -DCONQUER $(GFILS) > lintg
  272. X    lint $(LTFLG) $(CDEFS) -DADMIN $(AFILS) > linta
  273. X
  274. Xdocs:    conquer.doc
  275. X
  276. Xconquer.doc:    $(HELPOUT)0 $(HELPOUT)1 $(HELPOUT)2 $(HELPOUT)3 $(HELPOUT)4 $(HELPOUT)5
  277. X    cat $(HELPOUT)? |sed -e "s/^DONE/ /g"|sed -e "s/^END//g" >conquer.doc
  278. X
  279. Xcpio:
  280. X    -$(RM) core
  281. X    find . -name '*[CrpsEech]' -print | cpio -ocBv > cpiosv
  282. X
  283. Xshar:    
  284. X    echo " lines   words chars   FILENAME" > MANIFEST
  285. X    wc $(ALLFILS) >> MANIFEST
  286. X    $(SHAR) $(SHARFLG) $(ALLFILS)
  287. X
  288. X.cA.o:    $<
  289. X    ( trap "" 0 1 2 3 4 ; $(LN) $*.c $*A.c ;\
  290. X    $(CC) $(OPTFLG) $(CDEFS) -DADMIN -c $*A.c ;\
  291. X    $(RM) $*A.c )
  292. X
  293. X.cG.o:    $<
  294. X    ( trap "" 0 1 2 3 4 ; $(LN) $*.c $*G.c ;\
  295. X    $(CC) $(OPTFLG) $(CDEFS) -DCONQUER -c $*G.c ;\
  296. X    $(RM) $*G.c )
  297. X
  298. X.c.o:    $<
  299. X#    compiles using both defines since they
  300. X#    are needed for the data.h definitions for
  301. X#    each file... but should not be needed for
  302. X#    the actual C source file being compiled
  303. X    $(CC) $(OPTFLG) $(CDEFS) -DADMIN -DCONQUER -c $*.c
  304. X
  305. X$(GOBJS):    data.h header.h
  306. X
  307. X$(AOBJS):    data.h header.h
  308. X
  309. END_OF_FILE
  310. if test 8505 -ne `wc -c <'Makefile'`; then
  311.     echo shar: \"'Makefile'\" unpacked with wrong size!
  312. fi
  313. # end of 'Makefile'
  314. fi
  315. echo shar: End of shell archive.
  316. exit 0
  317.