# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.1 (Berkeley) %G%
SRCS
= abandon.c attack.c autover.c capture.c check_out.c checkcond.c \
compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \
dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \
getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \
lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \
ranf.c rest.c schedule.c score.c setup.c setwarp.c
shell.c \
shield.c snova.c srscan.c systemname.c torped.c utility.c \
visual.c warp.c win.c cgetc.c
OBJS
= abandon.o attack.o autover.o capture.o check_out.o checkcond.o \
compkl.o computer.o damage.o damaged.o dcrept.o destruct.o \
dock.o dumpgame.o dumpme.o dumpssradio.o events.o externs.o \
getcodi.o getpar.o help.o impulse.o initquad.o kill.o klmove.o \
lose.o lrscan.o main.o move.o nova.o out.o phaser.o play.o ram.o \
ranf.o rest.o schedule.o score.o setup.o setwarp.o
shell.o \
shield.o snova.o srscan.o systemname.o torped.o utility.o \
visual.o warp.o win.o cgetc.o
cc ${LFLAGS} -o trek
${OBJS} -lm
install -s trek
${DESTDIR}/usr
/games
/trek
rm -f a.out core
${OBJS} trek
(echo
`basename $$i .c`.o
: $$i >>makedep
; \
/bin
/grep
'^#[ ]*include' x.c
$$i | sed \
-e
's,<\(.*\)>,"/usr/include/\1",' \
-e
's/:[^"]*"\([^"]*\)".*/: \1/' \
-e
's/\.c/.o/' >>makedep
); done
echo
'/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo
'$$r makedep' >>eddep
echo
'# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo
'# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo
'# see make depend above' >> Makefile
# DO NOT DELETE THIS LINE -- make depend uses it
computer.o
: /usr
/include/stdio.h
dumpssradio.o
: dumpssradio.c
getpar.o
: /usr
/include/stdio.h
main.o
: /usr
/include/stdio.h
main.o
: /usr
/include/sgtty.h
ranf.o
: /usr
/include/stdio.h
systemname.o
: systemname.c
torped.o
: /usr
/include/stdio.h
cgetc.o
: /usr
/include/stdio.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY