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