# Makefile for ldb 8/3/91 # # Copyright 1991 Perry R. Ross # # Permission to use, copy, modify, and distribute this software and its # documentation without fee is hereby granted, subject to the restrictions # detailed in the README file, which is included here by reference. # Any other use requires written permission from the author. This software # is distributed "as is" without any warranty, including any implied # warranties of merchantability or fitness for a particular purpose. # The author shall not be liable for any damages resulting from the # use of this software. By using this software, the user agrees # to these terms. ### INSTALLATION OPTIONS ### # If your host uses an ancient version of curses (e.g. VAX-C, Sequent), # uncomment the following line. To tell if you need this option, # first try compiling without it and see if your linker complains # about cbreak() and nocbreak() not being defined. If it does, # you need this option. OLDCURSES= #OLDCURSES=-DOLD_CURSES # If your system uses index and rindex rather than strchr and strrchr, # uncomment the following line. If you don't know, just try compiling # and see if you get an error. These days most systems will take strchr # and strrchr. USE_INDEX= #USE_INDEX=-DUSE_INDEX # If your libc doesn't have a rename function, uncomment the # following to use the one that's included. DO NOT use this # rename if your system already has one. RENAME= #RENAME=rename.o # Uncomment the following lines only if you are using Eunice. # If you don't know what it is, believe me, you're not using it. UNIXTOVMS=true VMSTOUNIX=true #UNIXTOVMS=unixtovms #VMSTOUNIX=vmstounix # Uncomment this line if your UNIX does not have the Berkeley # variable-length directory routines. These are opendir, # readdir, closedir, etc. NEED_READDIR= # NEED_READDIR=-DNEED_READDIR # Put the name of the filename of the appropriate pattern matcher here. # For UNIX systems, this should be flist_unix. For VMS, this should # be flist_vms. If for some reason the flist file does not work on # your system, 1) please send me mail telling me, and 2) you can # plug in flist_none, which disables pattern matching but allows # ldb to compile. FLIST=flist_unix # Put the name of the front-end you want to compile in here. # NOTE: there is currently only one available front-end (curses). FE_FILE=fe_curses # Put the name of the transport you want to compile in here. # NOTE: there is currently only one available transport (email). T_FILE=t_email # Put the name of the dice roller you want to compile in here. # If you want to write your own dice roller, you can. I would # prefer people all used the same one, since that is more fair, # but as long as it is really a random number generator, you're ok. # If you put in a fake dice roller (e.g. one that asks you what # roll you want), you are in violation of the copyright. Read # the README file for more information. R_FILE=r_xrand # Put compiler flags here. CFLAGS=-O $(OLDCURSES) $(NEED_READDIR) LIBS=-lcurses -ltermcap # use these 2 lines for SCO XENIX (also SCO UNIX?) #CFLAGS= -O -Mle -LARGE -Zi -DM_TERMCAP $(OLDCURSES) #LIBS=-lx -ltcap -ltermlib LINTFLAGS= # Name of ldb executable. LDB=ldb # LDB=ldb.exe # Page length to format manual with. 62 for VMS or Eunice, 66 for most others. PAGELEN=66 CC=cc ### END OF INSTALLATION OPTIONS ### CFILES= board.c game.c main.c misc.c move.c process.c rcvop.c control.c \ check.c readmail.c save.c vars.c fe_curses.c t_email.c r_xrand.c \ dohelp.c dostats.c rename.c flist_unix.c flist_vms.c flist_none.c \ lock.c HFILES=ldb.h patchlevel.h OFILES= board.o game.o main.o misc.o move.o process.o rcvop.o control.o \ check.o readmail.o save.o vars.o $(FE_FILE).o $(T_FILE).o $(R_FILE).o \ dohelp.o dostats.o $(RENAME) $(FLIST).o lock.o SHARFILES=MANIFEST README Makefile $(CFILES) $(HFILES) makefile.vms \ makeldb.com ldb.man $(LDB): $(OFILES) $(CC) $(CFLAGS) -s -o $(LDB) $(OFILES) $(LIBS) all: $(LDB) ldb.doc ldb.doc: ldb.man nroff -rT$(PAGELEN) -man ldb.man >ldb.doc $(UNIXTOVMS) ldb.doc ldb.doc60: ldb.man nroff -rT60 -man ldb.man >ldb.doc60 $(UNIXTOVMS) ldb.doc60 ldb.doc62: ldb.man nroff -rT62 -man ldb.man >ldb.doc62 $(UNIXTOVMS) ldb.doc62 ldb.doc66: ldb.man nroff -rT66 -man ldb.man >ldb.doc66 $(UNIXTOVMS) ldb.doc66 lint: .XXX lint $(LINTFLAGS) $(CFILES) > lint.out clean: .XXX rm -f $(OFILES) ldb *.obj ldb.exe make.out .mk lint.out MANIFEST.BAK shar: $(SHARFILES) $(VMSTOUNIX) $(SHARFILES) makekit -m tags: .XXX ctags $(CFILES) sed 's/Mmain/main/' .tags mv .tags tags .XXX: