xref: /original-bsd/games/sail/Makefile (revision 4e9331e4)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley.  The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17#	@(#)Makefile	5.9 (Berkeley) 07/30/89
18#
19CFLAGS=	-O
20LIBC=	/lib/libc.a
21SRCS=	main.c pl_main.c pl_1.c pl_2.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c \
22	dr_main.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c lo_main.c \
23	assorted.c game.c globals.c misc.c parties.c sync.c version.c
24OBJS=	main.o pl_main.o pl_1.o pl_2.o pl_3.o pl_4.o pl_5.o pl_6.o pl_7.o \
25	dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \
26	assorted.o game.o globals.o misc.o parties.o sync.o version.o
27MAN=	sail.0
28
29all: sail
30
31sail: ${OBJS} ${LIBC}
32	${CC} -o $@ ${OBJS} -lcurses -ltermlib -lcompat
33
34clean:
35	rm -f ${OBJS} core sail
36
37cleandir: clean
38	rm -f ${MAN} tags .depend
39
40depend: ${SRCS}
41	mkdep ${CFLAGS} ${SRCS}
42
43install: ${MAN}
44	install -c -o games -g bin -m 600 /dev/null ${DESTDIR}/usr/games/lib/saillog
45	install -s -o games -g bin -m 4700 sail ${DESTDIR}/usr/games/hide
46	(cd ${DESTDIR}/usr/games; rm -f sail; ln -s dm sail; chown games.bin sail)
47	install -c -o bin -g bin -m 444 sail.0 ${DESTDIR}/usr/man/cat6
48
49lint: ${SRCS}
50	lint ${CFLAGS} ${SRCS}
51
52tags: ${SRCS}
53	ctags ${SRCS}
54