Commit | Line | Data |
---|---|---|
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 | 14 | CFLAGS= -O |
f7e3c036 KB |
15 | LIBC= /lib/libc.a |
16 | LIBS= -lm | |
96ce388f KM |
17 | SRCS= 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 |
25 | OBJS= 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 | 34 | all: trek |
96ce388f | 35 | |
e9fb6bea | 36 | trek: ${OBJS} ${LIBC} |
f7e3c036 | 37 | ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} |
96ce388f | 38 | |
f7e3c036 KB |
39 | clean: FRC |
40 | rm -f ${OBJS} core trek | |
989f0432 | 41 | |
f7e3c036 KB |
42 | depend: FRC |
43 | mkdep ${CFLAGS} ${SRCS} | |
96ce388f | 44 | |
f7e3c036 | 45 | install: 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 |
49 | lint: FRC |
50 | lint ${CFLAGS} ${SRCS} | |
96ce388f | 51 | |
f7e3c036 KB |
52 | tags: FRC |
53 | ctags ${SRCS} | |
96ce388f | 54 | |
f7e3c036 KB |
55 | FRC: |
56 | ||
57 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
58 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
59 | ||
60 | abandon.o: abandon.c trek.h | |
61 | attack.o: attack.c trek.h | |
62 | autover.o: autover.c trek.h | |
63 | capture.o: capture.c trek.h | |
64 | check_out.o: check_out.c trek.h | |
65 | checkcond.o: checkcond.c trek.h | |
66 | compkl.o: compkl.c trek.h | |
67 | computer.o: computer.c trek.h getpar.h /usr/include/stdio.h | |
68 | damage.o: damage.c trek.h | |
69 | damaged.o: damaged.c trek.h | |
70 | dcrept.o: dcrept.c trek.h | |
71 | destruct.o: destruct.c trek.h | |
72 | dock.o: dock.c trek.h | |
73 | dumpgame.o: dumpgame.c trek.h | |
74 | dumpme.o: dumpme.c trek.h | |
75 | dumpssradio.o: dumpssradio.c trek.h | |
76 | events.o: events.c trek.h | |
77 | externs.o: externs.c trek.h | |
78 | getcodi.o: getcodi.c getpar.h | |
79 | getpar.o: getpar.c /usr/include/stdio.h getpar.h | |
80 | help.o: help.c trek.h | |
81 | impulse.o: impulse.c trek.h | |
82 | initquad.o: initquad.c trek.h | |
83 | kill.o: kill.c trek.h | |
84 | klmove.o: klmove.c trek.h | |
85 | lose.o: lose.c trek.h | |
86 | lrscan.o: lrscan.c trek.h | |
87 | main.o: main.c trek.h /usr/include/stdio.h /usr/include/sgtty.h | |
88 | main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
89 | main.o: /usr/include/sys/ttydev.h | |
90 | move.o: move.c trek.h | |
91 | nova.o: nova.c trek.h | |
92 | out.o: out.c trek.h | |
93 | phaser.o: phaser.c trek.h getpar.h | |
94 | play.o: play.c trek.h getpar.h | |
95 | ram.o: ram.c trek.h | |
96 | ranf.o: ranf.c /usr/include/stdio.h | |
97 | rest.o: rest.c trek.h getpar.h | |
98 | schedule.o: schedule.c trek.h | |
99 | score.o: score.c trek.h getpar.h | |
100 | setup.o: setup.c trek.h getpar.h | |
101 | setwarp.o: setwarp.c trek.h getpar.h | |
96ce388f | 102 | shell.o: shell.c |
f7e3c036 KB |
103 | shield.o: shield.c trek.h getpar.h |
104 | snova.o: snova.c trek.h | |
105 | srscan.o: srscan.c trek.h getpar.h | |
106 | systemname.o: systemname.c trek.h | |
107 | torped.o: torped.c /usr/include/stdio.h trek.h | |
96ce388f | 108 | utility.o: utility.c |
f7e3c036 KB |
109 | visual.o: visual.c trek.h |
110 | warp.o: warp.c trek.h | |
111 | win.o: win.c trek.h getpar.h | |
112 | cgetc.o: cgetc.c /usr/include/stdio.h | |
113 | ||
114 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |