Commit | Line | Data |
---|---|---|
8ec6a195 KB |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
9b0a4950 | 3 | # All rights reserved. |
8ec6a195 | 4 | # |
9b0a4950 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 6.3 (Berkeley) %G% | |
8ec6a195 KB |
13 | # |
14 | CFLAGS= -O | |
15 | LIBC= /lib/libc.a | |
16 | SRCS= necf.c railmag.c rvcat.c rvsort.c sidebyside.c vcat.c \ | |
17 | vdmp.c vpf.c vplotf.c vpltdmp.c vpsf.c vsort.c | |
18 | OBJS= necf.o railmag.o rvcat.o rvsort.o sidebyside.o vcat.o \ | |
19 | vdmp.o vpf.o vplotf.o vpltdmp.o vpsf.o vsort.o | |
20 | ALL= necf railmag rvcat rvsort sidebyside vcat \ | |
21 | vdmp vpf vplotf vpltdmp vpsf vsort | |
22 | ||
23 | all: ${ALL} | |
24 | ||
25 | necf: ${LIBC} | |
26 | ${CC} -O -o $@ necf.c | |
27 | railmag: ${LIBC} | |
28 | ${CC} -O -o $@ railmag.c | |
29 | rvcat: ${LIBC} | |
30 | ${CC} -O -o $@ rvcat.c | |
31 | rvsort: ${LIBC} | |
32 | ${CC} -O -o $@ rvsort.c | |
33 | sidebyside: ${LIBC} | |
34 | ${CC} -O -o $@ sidebyside.c | |
35 | vcat: ${LIBC} | |
36 | ${CC} -O -o $@ vcat.c | |
37 | vdmp: ${LIBC} | |
38 | ${CC} -O -o $@ vdmp.c | |
39 | vpf: ${LIBC} | |
40 | ${CC} -O -o $@ vpf.c | |
41 | vplotf: ${LIBC} chrtab.c | |
42 | ${CC} -O -o $@ vplotf.c chrtab.c | |
43 | vpltdmp: ${LIBC} | |
44 | ${CC} -O -o $@ vpltdmp.c | |
45 | vpsf: ${LIBC} | |
46 | ${CC} -O -o $@ vpsf.c | |
47 | vsort: ${LIBC} | |
48 | ${CC} -O -o $@ vsort.c | |
49 | ||
50 | clean: FRC | |
16d33f13 | 51 | rm -f ${OBJS} core ${ALL} chrtab.o |
8ec6a195 KB |
52 | |
53 | depend: FRC | |
54 | mkdep -p ${CFLAGS} ${SRCS} | |
55 | ||
56 | install: FRC | |
57 | install -s -o bin -g bin -m 755 necf ${DESTDIR}/usr/lib/necf | |
58 | install -s -o bin -g bin -m 755 railmag ${DESTDIR}/usr/lib/railmag | |
59 | install -s -o bin -g bin -m 755 rvcat ${DESTDIR}/usr/lib/rvcat | |
60 | install -s -o bin -g bin -m 755 rvsort ${DESTDIR}/usr/lib/rvsort | |
61 | install -s -o bin -g bin -m 755 sidebyside ${DESTDIR}/usr/lib/sidebyside | |
62 | install -s -o bin -g bin -m 755 vcat ${DESTDIR}/usr/lib/vcat | |
63 | install -s -o bin -g bin -m 755 vdmp ${DESTDIR}/usr/lib/vdmp | |
64 | install -s -o bin -g bin -m 755 vpf ${DESTDIR}/usr/lib/vpf | |
65 | rm -f ${DESTDIR}/usr/lib/vpfW | |
66 | ln ${DESTDIR}/usr/lib/vpf ${DESTDIR}/usr/lib/vpfW | |
67 | install -s -o bin -g bin -m 755 vplotf ${DESTDIR}/usr/lib/vplotf | |
68 | install -s -o bin -g bin -m 755 vpltdmp ${DESTDIR}/usr/lib/vpltdmp | |
69 | install -s -o bin -g bin -m 755 vpsf ${DESTDIR}/usr/lib/vpsf | |
70 | install -s -o bin -g bin -m 755 vsort ${DESTDIR}/usr/lib/vsort | |
71 | ||
72 | lint: FRC | |
73 | lint ${CFLAGS} ${SRCS} | |
74 | ||
75 | tags: FRC | |
76 | ctags ${SRCS} | |
77 | ||
78 | FRC: | |
79 | ||
80 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
81 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
82 | ||
83 | necf: necf.c /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
84 | necf: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
85 | railmag: railmag.c | |
86 | rvcat: rvcat.c /usr/include/stdio.h /usr/include/sys/vcmd.h | |
87 | rvcat: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
88 | rvcat: /usr/include/sys/ttydev.h /usr/include/vfont.h | |
89 | rvsort: rvsort.c /usr/include/stdio.h | |
90 | sidebyside: sidebyside.c /usr/include/stdio.h | |
91 | vcat: vcat.c /usr/include/stdio.h /usr/include/sys/vcmd.h | |
92 | vcat: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
93 | vcat: /usr/include/sys/ttydev.h /usr/include/vfont.h | |
94 | vdmp: vdmp.c /usr/include/stdio.h /usr/include/sys/vcmd.h | |
95 | vdmp: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
96 | vdmp: /usr/include/sys/ttydev.h | |
97 | vpf: vpf.c /usr/include/signal.h /usr/include/machine/trap.h | |
98 | vpf: /usr/include/stdio.h /usr/include/sys/vcmd.h /usr/include/sys/ioctl.h | |
99 | vpf: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
100 | vplotf: vplotf.c /usr/include/stdio.h /usr/include/vfont.h | |
101 | vplotf: /usr/include/sys/vcmd.h /usr/include/sys/ioctl.h | |
102 | vplotf: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
103 | vpltdmp: vpltdmp.c /usr/include/stdio.h /usr/include/sys/vcmd.h | |
104 | vpltdmp: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
105 | vpltdmp: /usr/include/sys/ttydev.h | |
106 | vpsf: vpsf.c /usr/include/stdio.h /usr/include/sys/vcmd.h | |
107 | vpsf: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
108 | vpsf: /usr/include/sys/ttydev.h | |
109 | vsort: vsort.c /usr/include/stdio.h | |
110 | ||
111 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |