# Makefile for ldb under vms 5/1/92 # # Copyright 1992 Earle F. Ake # # 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. # This makefile is for the vms make program written by Todd Aven and # used by DECUS UUCP. This file should be renamed to makefile. # before it is used. If you do not have make on your system, you # can compile ldb with @makeldb.com. If you use this file, you # shouldn't need to modify any of the installation options below. ### 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 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 # 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=/nolist #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 ### *.obj : *.c write sys$output "Compiling $*" cc $(CFLAGS) $* purge/nolog $*.obj rename $*.obj *.*;1 ldb : $(LDB) write sys$output "ldb Build finished." ldb_objs = board.obj,game.obj,main.obj,misc.obj,move.obj,process.obj,\ rcvop.obj,control.obj,\ check.obj,readmail.obj,save.obj,vars.obj,$(FE_FILE).obj,\ $(T_FILE).obj,$(R_FILE).obj,\ dohelp.obj,dostats.obj,flist_vms.obj,lock.obj $(LDB) : $(ldb_objs) write sys$output "Linking $(LDB)" link/exe=$(LDB)/notrace/nodebug/nomap $(ldb_objs),\ sys$share:vaxccurse.olb/library,\ sys$disk:[]ldb.opt/option $(ldb_objs) : ldb.h patchlevel.h