2011-08-16 15:19:41 +04:00
|
|
|
# $NetBSD: Makefile,v 1.21 2011/08/16 11:19:41 christos Exp $
|
1995-03-23 11:28:00 +03:00
|
|
|
# @(#)Makefile 5.12 (Berkeley) 5/30/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
# EXTRA
|
|
|
|
# Incorporates code to gather additional performance statistics
|
1997-10-19 00:03:05 +04:00
|
|
|
#
|
|
|
|
# TERMIO
|
|
|
|
# Use sysv termio
|
|
|
|
# TERMIOS
|
|
|
|
# Use posix termios
|
1993-03-21 12:45:37 +03:00
|
|
|
# BSD
|
|
|
|
# Use BSD specific features (mostly timer and signal stuff)
|
|
|
|
# BSD4.1
|
|
|
|
# Use BSD4.1 to avoid some 4.2 dependencies (must be used with
|
|
|
|
# BSD above; do not mix with SYSV)
|
|
|
|
# HIDEBYLINK
|
|
|
|
# If defined, the program attempts to hide from ps
|
|
|
|
# DOCHECKPOINTS
|
|
|
|
# If not defined, checkpoint files are periodically written by the
|
|
|
|
# larn process (no forking) if enabled in the .larnopts description
|
|
|
|
# file. Checkpointing is handy on an unreliable system, but takes
|
|
|
|
# CPU. Inclusion of DOCHECKPOINTS will cause fork()ing to perform the
|
|
|
|
# checkpoints (again if enabled in the .larnopts file). This usually
|
|
|
|
# avoids pauses in larn while the checkpointing is being done (on
|
|
|
|
# large machines).
|
|
|
|
# VER
|
|
|
|
# This is the version of the software, example: 12
|
|
|
|
# SUBVER
|
|
|
|
# This is the revision of the software, example: 1
|
|
|
|
# FLUSHNO=#
|
|
|
|
# Set the input queue excess flushing threshold (default 5)
|
|
|
|
# NOVARARGS
|
|
|
|
# Define for systems that don't have varargs (a default varargs will
|
|
|
|
# be used).
|
|
|
|
# MACRORND
|
|
|
|
# Define to use macro version of rnd() and rund() (fast and big)
|
|
|
|
# UIDSCORE
|
|
|
|
# Define to use user id's to manage scoreboard. Leaving this out will
|
|
|
|
# cause player id's from the file ".playerids" to be used instead.
|
|
|
|
# (.playerids is created upon demand). Only one entry per id # is
|
|
|
|
# allowed in each scoreboard (winning & non-winning).
|
|
|
|
# VT100
|
|
|
|
# Compile for using vt100 family of terminals. Omission of this
|
|
|
|
# define will cause larn to use termcap, but it will be MUCH slower
|
|
|
|
# due to an extra layer of output interpretation. Also, only VT100
|
|
|
|
# mode allows 2 different standout modes, inverse video, and bold video.
|
|
|
|
# And only in VT100 mode is the scrolling region of the terminal used
|
|
|
|
# (much nicer than insert/delete line sequences to simulate it, if
|
|
|
|
# VT100 is omitted).
|
|
|
|
# NONAP
|
|
|
|
# This causes napms() to return immediately instead of delaying n
|
|
|
|
# milliseconds. This define may be needed on some systems if the nap
|
|
|
|
# stuff does not work correctly (possible hang). nap() is primarilly
|
|
|
|
# used to delay for effect when casting missile type spells.
|
|
|
|
# NOLOG
|
|
|
|
# Turn off logging.
|
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= larn
|
1994-12-22 12:31:26 +03:00
|
|
|
MAN= larn.6
|
1997-10-22 09:26:25 +04:00
|
|
|
CPPFLAGS+=-DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -DTERMIOS
|
1993-03-21 12:45:37 +03:00
|
|
|
SRCS= main.c object.c create.c tok.c display.c global.c data.c io.c \
|
|
|
|
monster.c store.c diag.c help.c config.c nap.c bill.c scores.c \
|
2008-02-19 09:05:26 +03:00
|
|
|
signal.c action.c moreobj.c movem.c regen.c fortune.c savelev.c
|
2010-02-03 18:34:37 +03:00
|
|
|
DPADD= ${LIBTERMINFO}
|
|
|
|
LDADD= -lterminfo
|
1993-03-21 12:45:37 +03:00
|
|
|
HIDEGAME=hidegame
|
1997-11-20 03:12:30 +03:00
|
|
|
SETGIDGAME=yes
|
2006-05-12 03:16:28 +04:00
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
1997-03-25 01:15:37 +03:00
|
|
|
DAT=larnmaze larnopts larn.help
|
|
|
|
FILES=${DAT:S@^@${.CURDIR}/datfiles/@g}
|
|
|
|
FILESDIR=/usr/share/games/larn
|
1998-09-29 11:33:20 +04:00
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2011-08-16 15:19:41 +04:00
|
|
|
COPTS.display.c += -Wno-format-nonliteral
|
|
|
|
COPTS.monster.c += -Wno-format-nonliteral
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|