trail and field are really just -t, -f
[unix-history] / usr / src / games / adventure / Makefile
... / ...
CommitLineData
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 4.7 (Berkeley) %G%
7#
8CFLAGS= -O
9LIBC= /lib/libc.a
10SRCS= done.c init.c io.c main.c save.c subr.c vocab.c wizard.c
11OBJS= done.o init.o io.o main.o save.o subr.o vocab.o wizard.o
12
13advent: ${OBJS} ${LIBC}
14 ${CC} -n ${CFLAGS} ${OBJS}
15 rm -f $@
16 echo y | ./a.out
17
18save.o: save.c # vax C optimizer bug - infinite loop
19 ${CC} -c save.c
20
21clean: FRC
22 rm -f ${OBJS} core advent a.out
23
24depend: FRC
25 mkdep ${CFLAGS} ${SRCS}
26
27install: FRC
28 install -s -o games -g bin -m 700 advent ${DESTDIR}/usr/games/hide/adventure
29 (cd ${DESTDIR}/usr/games; rm -f adventure; ln -s dm adventure; chown games.bin adventure)
30
31lint: FRC
32 lint ${CFLAGS} ${SRCS}
33
34tags: FRC
35 ctags ${SRCS}
36
37FRC:
38
39# DO NOT DELETE THIS LINE -- mkdep uses it.
40# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
41
42done.o: done.c hdr.h
43init.o: init.c hdr.h
44io.o: io.c hdr.h /usr/include/stdio.h
45main.o: main.c hdr.h
46save.o: save.c /usr/include/a.out.h /usr/include/sys/exec.h
47subr.o: subr.c hdr.h
48vocab.o: vocab.c hdr.h
49wizard.o: wizard.c hdr.h
50
51# IF YOU PUT ANYTHING HERE IT WILL GO AWAY