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