home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume28
/
ldb
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-03-15
|
3KB
|
101 lines
# 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.
CDEFS=
# CDEFS=-DOLD_CURSES
# 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
# 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 $(CDEFS)
LINTFLAGS=
# Page length to format manual with. 62 for VMS or Eunice, 66 for most others.
PAGELEN=66
### 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_FILE).c $(T_FILE).c $(R_FILE).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
SHARFILES=MANIFEST README Makefile $(CFILES) $(HFILES) makeldb.com ldb.man
ldb: $(OFILES)
cc $(CFLAGS) -s -o ldb $(OFILES) -lcurses -ltermcap
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 | sort >.tags
mv .tags tags
.XXX: