Commit | Line | Data |
---|---|---|
493d9d92 KB |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
6 | # @(#)Makefile 5.1 (Berkeley) %G% | |
7 | # | |
8 | CFLAGS= -O | |
9 | LIBC= /lib/libc.a | |
10 | SRCS= btlgammon.c | |
11 | OBJS= | |
12 | ||
13 | all: btlgammon | |
14 | ||
15 | btlgammon: ${OBJS} ${LIBC} | |
16 | ${CC} -o $@ ${CFLAGS} ${SRCS} | |
17 | ||
18 | clean: FRC | |
19 | rm -f ${OBJS} core btlgammon | |
20 | ||
21 | depend: FRC | |
22 | mkdep -p ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -s -o games -g bin -m 4700 btlgammon ${DESTDIR}/usr/games/hide | |
26 | install -c -o games -g bin -m 444 backrules ${DESTDIR}/usr/games/lib | |
27 | (cd ${DESTDIR}/usr/games; rm -f btlgammon; ln -s dm btlgammon; chown games.bin btlgammon) | |
28 | ||
29 | lint: FRC | |
30 | lint ${CFLAGS} ${SRCS} | |
31 | ||
32 | tags: FRC | |
33 | ctags ${SRCS} | |
34 | ||
35 | FRC: | |
36 | ||
37 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
38 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
39 | ||
40 | btlgammon: btlgammon.c /usr/include/stdio.h | |
41 | ||
42 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |