xref: /original-bsd/games/trek/Makefile (revision b424313c)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
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.
16#
17#	@(#)Makefile	5.5 (Berkeley) 06/18/88
18#
19CFLAGS=	-O
20LIBC=	/lib/libc.a
21LIBS=	-lm
22SRCS=	abandon.c attack.c autover.c capture.c check_out.c checkcond.c \
23	compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \
24	dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \
25	getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \
26	lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \
27	ranf.c rest.c schedule.c score.c setup.c setwarp.c shell.c \
28	shield.c snova.c srscan.c systemname.c torped.c utility.c \
29	visual.c warp.c win.c cgetc.c
30OBJS=	abandon.o attack.o autover.o capture.o check_out.o checkcond.o \
31	compkl.o computer.o damage.o damaged.o dcrept.o destruct.o \
32	dock.o dumpgame.o dumpme.o dumpssradio.o events.o externs.o \
33	getcodi.o getpar.o help.o impulse.o initquad.o kill.o klmove.o \
34	lose.o lrscan.o main.o move.o nova.o out.o phaser.o play.o ram.o \
35	ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
36	shield.o snova.o srscan.o systemname.o torped.o utility.o \
37	visual.o warp.o win.o cgetc.o
38
39all: trek
40
41trek: ${OBJS} ${LIBC}
42	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
43
44clean: FRC
45	rm -f ${OBJS} core trek
46
47depend: FRC
48	mkdep ${CFLAGS} ${SRCS}
49
50install: FRC
51	install -s -o games -g bin -m 700 trek ${DESTDIR}/usr/games/hide
52	(cd ${DESTDIR}/usr/games; rm -f trek; ln -s dm trek; chown games.bin trek)
53
54lint: FRC
55	lint ${CFLAGS} ${SRCS}
56
57tags: FRC
58	ctags ${SRCS}
59
60FRC:
61
62# DO NOT DELETE THIS LINE -- mkdep uses it.
63# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
64
65abandon.o: abandon.c trek.h
66attack.o: attack.c trek.h
67autover.o: autover.c trek.h
68capture.o: capture.c trek.h
69check_out.o: check_out.c trek.h
70checkcond.o: checkcond.c trek.h
71compkl.o: compkl.c trek.h
72computer.o: computer.c trek.h getpar.h /usr/include/stdio.h
73damage.o: damage.c trek.h
74damaged.o: damaged.c trek.h
75dcrept.o: dcrept.c trek.h
76destruct.o: destruct.c trek.h
77dock.o: dock.c trek.h
78dumpgame.o: dumpgame.c trek.h
79dumpme.o: dumpme.c trek.h
80dumpssradio.o: dumpssradio.c trek.h
81events.o: events.c trek.h
82externs.o: externs.c trek.h
83getcodi.o: getcodi.c getpar.h
84getpar.o: getpar.c /usr/include/stdio.h getpar.h
85help.o: help.c trek.h
86impulse.o: impulse.c trek.h
87initquad.o: initquad.c trek.h
88kill.o: kill.c trek.h
89klmove.o: klmove.c trek.h
90lose.o: lose.c trek.h
91lrscan.o: lrscan.c trek.h
92main.o: main.c trek.h /usr/include/stdio.h /usr/include/sgtty.h
93main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
94main.o: /usr/include/sys/ttydev.h
95move.o: move.c trek.h
96nova.o: nova.c trek.h
97out.o: out.c trek.h
98phaser.o: phaser.c trek.h getpar.h
99play.o: play.c trek.h getpar.h
100ram.o: ram.c trek.h
101ranf.o: ranf.c /usr/include/stdio.h
102rest.o: rest.c trek.h getpar.h
103schedule.o: schedule.c trek.h
104score.o: score.c trek.h getpar.h
105setup.o: setup.c trek.h getpar.h
106setwarp.o: setwarp.c trek.h getpar.h
107shell.o: shell.c
108shield.o: shield.c trek.h getpar.h
109snova.o: snova.c trek.h
110srscan.o: srscan.c trek.h getpar.h
111systemname.o: systemname.c trek.h
112torped.o: torped.c /usr/include/stdio.h trek.h
113utility.o: utility.c
114visual.o: visual.c trek.h
115warp.o: warp.c trek.h
116win.o: win.c trek.h getpar.h
117cgetc.o: cgetc.c /usr/include/stdio.h
118
119# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
120