Commit | Line | Data |
---|---|---|
3df9ffe3 | 1 | # |
5aabaf49 | 2 | # Copyright (c) 1987 Regents of the University of California. |
c0ca48ec | 3 | # All rights reserved. |
3df9ffe3 | 4 | # |
c0ca48ec | 5 | # Redistribution and use in source and binary forms are permitted |
65c7d3b6 KB |
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. | |
c0ca48ec | 16 | # |
b021522f | 17 | # @(#)Makefile 5.8 (Berkeley) %G% |
3df9ffe3 | 18 | # |
5aabaf49 KB |
19 | CFLAGS= -O |
20 | LIBC= /lib/libc.a | |
21 | LIBS= -lcurses -ltermlib | |
22 | SRCS= 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 \ | |
857c03ff EW |
23 | dr_main.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c lo_main.c \ |
24 | assorted.c game.c globals.c misc.c parties.c sync.c version.c | |
5aabaf49 | 25 | OBJS= 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 \ |
857c03ff EW |
26 | dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \ |
27 | assorted.o game.o globals.o misc.o parties.o sync.o version.o | |
b021522f | 28 | MAN= sail.0 |
3df9ffe3 | 29 | |
ba28d9ed | 30 | all: sail |
a7f6ca95 | 31 | |
5aabaf49 KB |
32 | sail: ${OBJS} ${LIBC} |
33 | ${CC} -o $@ ${OBJS} ${LIBS} | |
34 | ||
b021522f | 35 | clean: |
5aabaf49 | 36 | rm -f ${OBJS} core sail |
3df9ffe3 | 37 | |
b021522f KB |
38 | cleandir: clean |
39 | rm -f ${MAN} tags .depend | |
40 | ||
41 | depend: ${SRCS} | |
5aabaf49 | 42 | mkdep ${CFLAGS} ${SRCS} |
3df9ffe3 | 43 | |
b021522f | 44 | install: ${MAN} |
8b51accb KB |
45 | install -c -o games -g bin -m 600 /dev/null ${DESTDIR}/usr/games/lib/saillog |
46 | install -s -o games -g bin -m 4700 sail ${DESTDIR}/usr/games/hide | |
47 | (cd ${DESTDIR}/usr/games; rm -f sail; ln -s dm sail; chown games.bin sail) | |
b021522f | 48 | install -c -o bin -g bin -m 444 sail.0 ${DESTDIR}/usr/man/cat6 |
1c4e97f4 | 49 | |
b021522f | 50 | lint: ${SRCS} |
5aabaf49 | 51 | lint ${CFLAGS} ${SRCS} |
1c4e97f4 | 52 | |
b021522f | 53 | tags: ${SRCS} |
5aabaf49 | 54 | ctags ${SRCS} |