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