home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume18 / spellcast / part01 / Makefile < prev    next >
Makefile  |  1993-07-19  |  3KB  |  79 lines

  1. # These three lines define the fonts that spellcast tries to use by default;
  2. # it looks for FONT1 first, then FONT2, then FONT3. (If a user sets
  3. # his spellcast*font resource, that is tried first, instead of FONT1.)
  4. # You can change these to suit your environment. 
  5. FONT1 = \"-*-times-medium-r-*--14-*\"
  6. FONT2 = \"-*-helvetica-medium-r-*--12-*\"
  7. FONT3 = \"fixed\"
  8.  
  9. # The next line defines the directory in which game transcripts are
  10. # stored. It should be a fully-qualified pathname, beginning (but
  11. # not ending) with a slash.
  12. LOGDIR = \"/tmp\"
  13.  
  14. # The next lines define the directories where the executable, man page, and
  15. # spell list postscript file are installed. Change them to whatever is appropriate.
  16. DESTDIR=/afs/andrew.cmu.edu/usr0/games
  17. DESTBIN=$(DESTDIR)/bin/.unpriv/@sys
  18. DESTMAN=$(DESTDIR)/man/man6
  19. DESTLIB=$(DESTDIR)/lib/spellcast
  20.  
  21. CFLAGS = -g -I/usr/local/include -I./bitmaps -DBODYFONT=$(FONT1) \
  22.     -DBODYFONT_ALT=$(FONT2) -DBODYFONT_ALT2=$(FONT3) -DTRANSCRIPTDIR=$(LOGDIR)
  23. LFLAGS = -g
  24.  
  25. XLIB = -L/usr/local/lib -lX11
  26.  
  27. OBJS = engine.o espells.o execute.o execute2.o emonster.o etran.o
  28. XOBJS = main.o xtext.o xquery.o xloop.o xgest.o xbutton.o xtalk.o
  29.  
  30. all: spellcast
  31.  
  32. # spellcast: the X executable
  33. spellcast: $(OBJS) $(XOBJS)
  34.     $(CC) $(LFLAGS) -o spellcast $(OBJS) $(XOBJS) $(XLIB)
  35.  
  36. # stupid: the stupid stdin/stdout version of the game
  37. stupid: stupid.o $(OBJS)
  38.     $(CC) $(LFLAGS) -o spellcast stupid.o $(OBJS)
  39.  
  40. # makelist: a small program used to create spelllist.ps, which you
  41. # shouldn't have to use, because spelllist.ps is already there.
  42. makelist: makelist.o espells.o
  43.     $(CC) $(LFLAGS) -o makelist makelist.o espells.o
  44.  
  45. install: spellcast
  46.     install -c -s spellcast $(DESTBIN)
  47.     install -c spellcast.6 $(DESTMAN)
  48.     -mkdir $(DESTLIB)
  49.     install -c spelllist.ps $(DESTLIB)
  50.  
  51. main.o: handwave.h spelllist.h xspell.h patchlevel.h
  52. xtext.o: handwave.h spelllist.h xspell.h
  53. xquery.o: handwave.h spelllist.h xspell.h
  54. xloop.o: handwave.h spelllist.h xspell.h
  55. xgest.o: handwave.h spelllist.h xspell.h
  56. xbutton.o: handwave.h spelllist.h xspell.h
  57. xtalk.o: handwave.h spelllist.h xspell.h
  58.  
  59. internal.h: spelllist.h
  60.  
  61. engine.o: handwave.h spelllist.h internal.h
  62. espells.o: handwave.h spelllist.h internal.h
  63. execute.o: handwave.h spelllist.h internal.h
  64. execute2.o: handwave.h spelllist.h internal.h
  65. emonster.o: handwave.h spelllist.h internal.h
  66. etran.o: handwave.h spelllist.h internal.h
  67.  
  68. stupid.o: stupid.c handwave.h spelllist.h
  69.  
  70. # The following rule creates the spelllist.ps document,
  71. # but you shouldn't have to use it, because it's already
  72. # there.
  73. spelllist.ps: makelist bitmaps/base.ps
  74.     ./makelist > tmp.ps
  75.     cat bitmaps/base.ps tmp.ps > spelllist.ps
  76.  
  77. clean:
  78.     rm -f *~ *.o spellcast stupid makelist tmp.ps core
  79.