1# @(#)Makefile 5.12 (Berkeley) 5/30/93 2# $FreeBSD: src/games/larn/Makefile,v 1.6.2.5 2002/08/07 16:31:42 ru Exp $ 3# $DragonFly: src/games/larn/Makefile,v 1.5 2006/10/08 16:22:35 pavalos Exp $ 4 5# EXTRA 6# Incorporates code to gather additional performance statistics 7# SYSV 8# Use system III/V (instead of V7) type ioctl calls 9# BSD 10# Use BSD specific features (mostly timer and signal stuff) 11# BSD4.1 12# Use BSD4.1 to avoid some 4.2 dependencies (must be used with 13# BSD above; do not mix with SYSV) 14# HIDEBYLINK 15# If defined, the program attempts to hide from ps 16# DOCHECKPOINTS 17# If not defined, checkpoint files are periodically written by the 18# larn process (no forking) if enabled in the .larnopts description 19# file. Checkpointing is handy on an unreliable system, but takes 20# CPU. Inclusion of DOCHECKPOINTS will cause fork()ing to perform the 21# checkpoints (again if enabled in the .larnopts file). This usually 22# avoids pauses in larn while the checkpointing is being done (on 23# large machines). 24# VER 25# This is the version of the software, example: 12 26# SUBVER 27# This is the revision of the software, example: 1 28# FLUSHNO=# 29# Set the input queue excess flushing threshold (default 5) 30# NOVARARGS 31# Define for systems that don't have varargs (a default varargs will 32# be used). 33# MACRORND 34# Define to use macro version of rnd() and rund() (fast and big) 35# UIDSCORE 36# Define to use user id's to manage scoreboard. Leaving this out will 37# cause player id's from the file ".playerids" to be used instead. 38# (.playerids is created upon demand). Only one entry per id # is 39# allowed in each scoreboard (winning & non-winning). 40# VT100 41# Compile for using vt100 family of terminals. Omission of this 42# define will cause larn to use termcap, but it will be MUCH slower 43# due to an extra layer of output interpretation. Also, only VT100 44# mode allows 2 different standout modes, inverse video, and bold video. 45# And only in VT100 mode is the scrolling region of the terminal used 46# (much nicer than insert/delete line sequences to simulate it, if 47# VT100 is omitted). 48# NONAP 49# This causes napms() to return immediately instead of delaying n 50# milliseconds. This define may be needed on some systems if the nap 51# stuff does not work correctly (possible hang). nap() is primarilly 52# used to delay for effect when casting missile type spells. 53# NOLOG 54# Turn off logging. 55 56PROG= larn 57MAN= larn.6 58CFLAGS+=-DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE 59SRCS= main.c object.c create.c tok.c display.c global.c data.c io.c \ 60 monster.c store.c diag.c help.c config.c nap.c bill.c scores.c \ 61 signal.c moreobj.c movem.c regen.c fortune.c savelev.c 62DPADD= ${LIBTERMCAP} 63LDADD= -ltermcap 64FILES= larnmaze larnopts larn.help 65FILESDIR= ${SHAREDIR}/games/larn 66HIDEGAME=hidegame 67 68.PATH: ${.CURDIR}/datfiles 69 70beforeinstall: 71.if !exists(${DESTDIR}/var/games/larn/lscore12.0) 72 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \ 73 ${DESTDIR}/var/games/larn/lscore12.0 74.endif 75.if !exists(${DESTDIR}/var/games/larn/llog12.0) 76 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \ 77 ${DESTDIR}/var/games/larn/llog12.0 78.endif 79 80.include <bsd.prog.mk> 81