home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume28 / ldb / part01 / Makefile < prev    next >
Makefile  |  1992-03-15  |  3KB  |  101 lines

  1. # Makefile for ldb    8/3/91
  2. #
  3. # Copyright 1991  Perry R. Ross
  4. #
  5. # Permission to use, copy, modify, and distribute this software and its
  6. # documentation without fee is hereby granted, subject to the restrictions
  7. # detailed in the README file, which is included here by reference.
  8. # Any other use requires written permission from the author.  This software
  9. # is distributed "as is" without any warranty, including any implied
  10. # warranties of merchantability or fitness for a particular purpose.
  11. # The author shall not be liable for any damages resulting from the
  12. # use of this software.  By using this software, the user agrees
  13. # to these terms.
  14.  
  15. ### INSTALLATION OPTIONS ###
  16. # If your host uses an ancient version of curses (e.g. VAX-C, Sequent),
  17. # uncomment the following line.  To tell if you need this option,
  18. # first try compiling without it and see if your linker complains
  19. # about cbreak() and nocbreak() not being defined.  If it does,
  20. # you need this option.
  21. CDEFS=
  22. # CDEFS=-DOLD_CURSES
  23.  
  24. # Uncomment the following lines only if you are using Eunice.
  25. # If you don't know what it is, believe me, you're not using it.
  26. UNIXTOVMS=true
  27. VMSTOUNIX=true
  28. # UNIXTOVMS=unixtovms
  29. # VMSTOUNIX=vmstounix
  30.  
  31. # Put the name of the front-end you want to compile in here.
  32. # NOTE: there is currently only one available front-end (curses).
  33. FE_FILE=fe_curses
  34.  
  35. # Put the name of the transport you want to compile in here.
  36. # NOTE: there is currently only one available transport (email).
  37. T_FILE=t_email
  38.  
  39. # Put the name of the dice roller you want to compile in here.
  40. # If you want to write your own dice roller, you can.  I would
  41. # prefer people all used the same one, since that is more fair,
  42. # but as long as it is really a random number generator, you're ok.
  43. # If you put in a fake dice roller (e.g. one that asks you what
  44. # roll you want), you are in violation of the copyright.  Read
  45. # the README file for more information.
  46. R_FILE=r_xrand
  47.  
  48. # Put compiler flags here.
  49. CFLAGS=-O $(CDEFS)
  50. LINTFLAGS=
  51.  
  52. # Page length to format manual with.  62 for VMS or Eunice, 66 for most others.
  53. PAGELEN=66
  54.  
  55. ### END OF INSTALLATION OPTIONS ###
  56.  
  57. CFILES=    board.c game.c main.c misc.c move.c process.c rcvop.c control.c \
  58.     check.c readmail.c save.c vars.c $(FE_FILE).c $(T_FILE).c $(R_FILE).c
  59. HFILES=ldb.h patchlevel.h
  60. OFILES=    board.o game.o main.o misc.o move.o process.o rcvop.o control.o \
  61.     check.o readmail.o save.o vars.o $(FE_FILE).o $(T_FILE).o $(R_FILE).o
  62. SHARFILES=MANIFEST README Makefile $(CFILES) $(HFILES) makeldb.com ldb.man
  63.  
  64. ldb: $(OFILES)
  65.     cc $(CFLAGS) -s -o ldb $(OFILES) -lcurses -ltermcap
  66.  
  67. all: ldb ldb.doc
  68.  
  69. ldb.doc: ldb.man
  70.     nroff -rT$(PAGELEN) -man ldb.man >ldb.doc
  71.     $(UNIXTOVMS) ldb.doc
  72.  
  73. ldb.doc60: ldb.man
  74.     nroff -rT60 -man ldb.man >ldb.doc60
  75.     $(UNIXTOVMS) ldb.doc60
  76.  
  77. ldb.doc62: ldb.man
  78.     nroff -rT62 -man ldb.man >ldb.doc62
  79.     $(UNIXTOVMS) ldb.doc62
  80.  
  81. ldb.doc66: ldb.man
  82.     nroff -rT66 -man ldb.man >ldb.doc66
  83.     $(UNIXTOVMS) ldb.doc66
  84.  
  85. lint: .XXX
  86.     lint $(LINTFLAGS) $(CFILES) > lint.out
  87.  
  88. clean: .XXX
  89.     rm -f $(OFILES) ldb *.obj ldb.exe make.out .mk lint.out MANIFEST.BAK
  90.  
  91. shar: $(SHARFILES)
  92.     $(VMSTOUNIX) $(SHARFILES)
  93.     makekit -m
  94.  
  95. tags: .XXX
  96.     ctags $(CFILES)
  97.     sed 's/Mmain/main/' <tags | sort >.tags
  98.     mv .tags tags
  99.  
  100. .XXX:
  101.