11.21Schristos# $NetBSD: Makefile,v 1.21 2011/08/16 11:19:41 christos Exp $ 21.7Scgd# @(#)Makefile 5.12 (Berkeley) 5/30/93 31.1Scgd 41.1Scgd# EXTRA 51.1Scgd# Incorporates code to gather additional performance statistics 61.12Schristos# 71.12Schristos# TERMIO 81.12Schristos# Use sysv termio 91.12Schristos# TERMIOS 101.12Schristos# Use posix termios 111.1Scgd# BSD 121.1Scgd# Use BSD specific features (mostly timer and signal stuff) 131.1Scgd# BSD4.1 141.1Scgd# Use BSD4.1 to avoid some 4.2 dependencies (must be used with 151.1Scgd# BSD above; do not mix with SYSV) 161.1Scgd# HIDEBYLINK 171.1Scgd# If defined, the program attempts to hide from ps 181.1Scgd# DOCHECKPOINTS 191.1Scgd# If not defined, checkpoint files are periodically written by the 201.1Scgd# larn process (no forking) if enabled in the .larnopts description 211.1Scgd# file. Checkpointing is handy on an unreliable system, but takes 221.1Scgd# CPU. Inclusion of DOCHECKPOINTS will cause fork()ing to perform the 231.1Scgd# checkpoints (again if enabled in the .larnopts file). This usually 241.1Scgd# avoids pauses in larn while the checkpointing is being done (on 251.1Scgd# large machines). 261.1Scgd# VER 271.1Scgd# This is the version of the software, example: 12 281.1Scgd# SUBVER 291.1Scgd# This is the revision of the software, example: 1 301.1Scgd# FLUSHNO=# 311.1Scgd# Set the input queue excess flushing threshold (default 5) 321.1Scgd# NOVARARGS 331.1Scgd# Define for systems that don't have varargs (a default varargs will 341.1Scgd# be used). 351.1Scgd# MACRORND 361.1Scgd# Define to use macro version of rnd() and rund() (fast and big) 371.1Scgd# UIDSCORE 381.1Scgd# Define to use user id's to manage scoreboard. Leaving this out will 391.1Scgd# cause player id's from the file ".playerids" to be used instead. 401.1Scgd# (.playerids is created upon demand). Only one entry per id # is 411.1Scgd# allowed in each scoreboard (winning & non-winning). 421.1Scgd# VT100 431.1Scgd# Compile for using vt100 family of terminals. Omission of this 441.1Scgd# define will cause larn to use termcap, but it will be MUCH slower 451.1Scgd# due to an extra layer of output interpretation. Also, only VT100 461.1Scgd# mode allows 2 different standout modes, inverse video, and bold video. 471.1Scgd# And only in VT100 mode is the scrolling region of the terminal used 481.1Scgd# (much nicer than insert/delete line sequences to simulate it, if 491.1Scgd# VT100 is omitted). 501.1Scgd# NONAP 511.1Scgd# This causes napms() to return immediately instead of delaying n 521.1Scgd# milliseconds. This define may be needed on some systems if the nap 531.1Scgd# stuff does not work correctly (possible hang). nap() is primarilly 541.1Scgd# used to delay for effect when casting missile type spells. 551.1Scgd# NOLOG 561.1Scgd# Turn off logging. 571.1Scgd 581.16Slukem.include <bsd.own.mk> 591.16Slukem 601.1ScgdPROG= larn 611.6ScgdMAN= larn.6 621.13SlukemCPPFLAGS+=-DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -DTERMIOS 631.1ScgdSRCS= main.c object.c create.c tok.c display.c global.c data.c io.c \ 641.1Scgd monster.c store.c diag.c help.c config.c nap.c bill.c scores.c \ 651.19Sdholland signal.c action.c moreobj.c movem.c regen.c fortune.c savelev.c 661.20SroyDPADD= ${LIBTERMINFO} 671.20SroyLDADD= -lterminfo 681.1ScgdHIDEGAME=hidegame 691.14SmrgSETGIDGAME=yes 701.17Smrg 711.16Slukem.if ${MKSHARE} != "no" 721.10SchristosDAT=larnmaze larnopts larn.help 731.10SchristosFILES=${DAT:S@^@${.CURDIR}/datfiles/@g} 741.10SchristosFILESDIR=/usr/share/games/larn 751.15Slukem.endif 761.1Scgd 771.21SchristosCOPTS.display.c += -Wno-format-nonliteral 781.21SchristosCOPTS.monster.c += -Wno-format-nonliteral 791.21Schristos 801.1Scgd.include <bsd.prog.mk> 81