add Berkeley specific header
[unix-history] / usr / src / old / vfilters / Makefile
CommitLineData
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#
14CFLAGS= -O
15LIBC= /lib/libc.a
16SRCS= 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
18OBJS= 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
20ALL= necf railmag rvcat rvsort sidebyside vcat \
21 vdmp vpf vplotf vpltdmp vpsf vsort
22
23all: ${ALL}
24
25necf: ${LIBC}
26 ${CC} -O -o $@ necf.c
27railmag: ${LIBC}
28 ${CC} -O -o $@ railmag.c
29rvcat: ${LIBC}
30 ${CC} -O -o $@ rvcat.c
31rvsort: ${LIBC}
32 ${CC} -O -o $@ rvsort.c
33sidebyside: ${LIBC}
34 ${CC} -O -o $@ sidebyside.c
35vcat: ${LIBC}
36 ${CC} -O -o $@ vcat.c
37vdmp: ${LIBC}
38 ${CC} -O -o $@ vdmp.c
39vpf: ${LIBC}
40 ${CC} -O -o $@ vpf.c
41vplotf: ${LIBC} chrtab.c
42 ${CC} -O -o $@ vplotf.c chrtab.c
43vpltdmp: ${LIBC}
44 ${CC} -O -o $@ vpltdmp.c
45vpsf: ${LIBC}
46 ${CC} -O -o $@ vpsf.c
47vsort: ${LIBC}
48 ${CC} -O -o $@ vsort.c
49
50clean: FRC
16d33f13 51 rm -f ${OBJS} core ${ALL} chrtab.o
8ec6a195
KB
52
53depend: FRC
54 mkdep -p ${CFLAGS} ${SRCS}
55
56install: 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
72lint: FRC
73 lint ${CFLAGS} ${SRCS}
74
75tags: FRC
76 ctags ${SRCS}
77
78FRC:
79
80# DO NOT DELETE THIS LINE -- mkdep uses it.
81# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
82
83necf: necf.c /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
84necf: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
85railmag: railmag.c
86rvcat: rvcat.c /usr/include/stdio.h /usr/include/sys/vcmd.h
87rvcat: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
88rvcat: /usr/include/sys/ttydev.h /usr/include/vfont.h
89rvsort: rvsort.c /usr/include/stdio.h
90sidebyside: sidebyside.c /usr/include/stdio.h
91vcat: vcat.c /usr/include/stdio.h /usr/include/sys/vcmd.h
92vcat: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
93vcat: /usr/include/sys/ttydev.h /usr/include/vfont.h
94vdmp: vdmp.c /usr/include/stdio.h /usr/include/sys/vcmd.h
95vdmp: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
96vdmp: /usr/include/sys/ttydev.h
97vpf: vpf.c /usr/include/signal.h /usr/include/machine/trap.h
98vpf: /usr/include/stdio.h /usr/include/sys/vcmd.h /usr/include/sys/ioctl.h
99vpf: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
100vplotf: vplotf.c /usr/include/stdio.h /usr/include/vfont.h
101vplotf: /usr/include/sys/vcmd.h /usr/include/sys/ioctl.h
102vplotf: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
103vpltdmp: vpltdmp.c /usr/include/stdio.h /usr/include/sys/vcmd.h
104vpltdmp: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
105vpltdmp: /usr/include/sys/ttydev.h
106vpsf: vpsf.c /usr/include/stdio.h /usr/include/sys/vcmd.h
107vpsf: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
108vpsf: /usr/include/sys/ttydev.h
109vsort: vsort.c /usr/include/stdio.h
110
111# IF YOU PUT ANYTHING HERE IT WILL GO AWAY