get rid of sibuf; requires change to user interface because of
[unix-history] / usr / src / games / trek / Makefile
CommitLineData
b6f0a7e4 1#
f7e3c036 2# Copyright (c) 1987 Regents of the University of California.
e9fb6bea 3# All rights reserved.
b6f0a7e4 4#
e9fb6bea
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that this notice is preserved and that due credit is given
7# to the University of California at Berkeley. The name of the University
8# may not be used to endorse or promote products derived from this
9# software without specific prior written permission. This software
10# is provided ``as is'' without express or implied warranty.
11#
12# @(#)Makefile 5.4 (Berkeley) %G%
96ce388f 13#
b47fe8ad 14CFLAGS= -O
f7e3c036
KB
15LIBC= /lib/libc.a
16LIBS= -lm
96ce388f
KM
17SRCS= abandon.c attack.c autover.c capture.c check_out.c checkcond.c \
18 compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \
19 dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \
20 getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \
21 lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \
22 ranf.c rest.c schedule.c score.c setup.c setwarp.c shell.c \
23 shield.c snova.c srscan.c systemname.c torped.c utility.c \
06d69904 24 visual.c warp.c win.c cgetc.c
96ce388f
KM
25OBJS= abandon.o attack.o autover.o capture.o check_out.o checkcond.o \
26 compkl.o computer.o damage.o damaged.o dcrept.o destruct.o \
27 dock.o dumpgame.o dumpme.o dumpssradio.o events.o externs.o \
28 getcodi.o getpar.o help.o impulse.o initquad.o kill.o klmove.o \
29 lose.o lrscan.o main.o move.o nova.o out.o phaser.o play.o ram.o \
30 ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
31 shield.o snova.o srscan.o systemname.o torped.o utility.o \
06d69904 32 visual.o warp.o win.o cgetc.o
96ce388f 33
f7e3c036 34all: trek
96ce388f 35
e9fb6bea 36trek: ${OBJS} ${LIBC}
f7e3c036 37 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
96ce388f 38
f7e3c036
KB
39clean: FRC
40 rm -f ${OBJS} core trek
989f0432 41
f7e3c036
KB
42depend: FRC
43 mkdep ${CFLAGS} ${SRCS}
96ce388f 44
f7e3c036 45install: FRC
8b51accb
KB
46 install -s -o games -g bin -m 700 trek ${DESTDIR}/usr/games/hide
47 (cd ${DESTDIR}/usr/games; rm -f trek; ln -s dm trek; chown games.bin trek)
96ce388f 48
f7e3c036
KB
49lint: FRC
50 lint ${CFLAGS} ${SRCS}
96ce388f 51
f7e3c036
KB
52tags: FRC
53 ctags ${SRCS}
96ce388f 54
f7e3c036
KB
55FRC:
56
57# DO NOT DELETE THIS LINE -- mkdep uses it.
58# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
59
60abandon.o: abandon.c trek.h
61attack.o: attack.c trek.h
62autover.o: autover.c trek.h
63capture.o: capture.c trek.h
64check_out.o: check_out.c trek.h
65checkcond.o: checkcond.c trek.h
66compkl.o: compkl.c trek.h
67computer.o: computer.c trek.h getpar.h /usr/include/stdio.h
68damage.o: damage.c trek.h
69damaged.o: damaged.c trek.h
70dcrept.o: dcrept.c trek.h
71destruct.o: destruct.c trek.h
72dock.o: dock.c trek.h
73dumpgame.o: dumpgame.c trek.h
74dumpme.o: dumpme.c trek.h
75dumpssradio.o: dumpssradio.c trek.h
76events.o: events.c trek.h
77externs.o: externs.c trek.h
78getcodi.o: getcodi.c getpar.h
79getpar.o: getpar.c /usr/include/stdio.h getpar.h
80help.o: help.c trek.h
81impulse.o: impulse.c trek.h
82initquad.o: initquad.c trek.h
83kill.o: kill.c trek.h
84klmove.o: klmove.c trek.h
85lose.o: lose.c trek.h
86lrscan.o: lrscan.c trek.h
87main.o: main.c trek.h /usr/include/stdio.h /usr/include/sgtty.h
88main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
89main.o: /usr/include/sys/ttydev.h
90move.o: move.c trek.h
91nova.o: nova.c trek.h
92out.o: out.c trek.h
93phaser.o: phaser.c trek.h getpar.h
94play.o: play.c trek.h getpar.h
95ram.o: ram.c trek.h
96ranf.o: ranf.c /usr/include/stdio.h
97rest.o: rest.c trek.h getpar.h
98schedule.o: schedule.c trek.h
99score.o: score.c trek.h getpar.h
100setup.o: setup.c trek.h getpar.h
101setwarp.o: setwarp.c trek.h getpar.h
96ce388f 102shell.o: shell.c
f7e3c036
KB
103shield.o: shield.c trek.h getpar.h
104snova.o: snova.c trek.h
105srscan.o: srscan.c trek.h getpar.h
106systemname.o: systemname.c trek.h
107torped.o: torped.c /usr/include/stdio.h trek.h
96ce388f 108utility.o: utility.c
f7e3c036
KB
109visual.o: visual.c trek.h
110warp.o: warp.c trek.h
111win.o: win.c trek.h getpar.h
112cgetc.o: cgetc.c /usr/include/stdio.h
113
114# IF YOU PUT ANYTHING HERE IT WILL GO AWAY