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