xref: /original-bsd/old/vfilters/Makefile (revision b0ceb3f2)
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	6.8 (Berkeley) 05/19/89
18#
19CFLAGS=	-O
20LIBC=	/lib/libc.a
21SRCS=	chrtab.c 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
23OBJS=	chrtab.o 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
25ALL=	necf railmag rvcat rvsort sidebyside vcat vdmp vpf vpltdmp vpsf vsort
26
27all: ${ALL} vplotf
28
29${ALL}: ${LIBC}
30	${CC} -O -o $@ $@.c
31
32vplotf: ${LIBC} chrtab.c
33	${CC} -O -o $@ vplotf.c chrtab.c
34
35clean:
36	rm -f ${OBJS} core ${ALL} vplotf
37
38cleandir: clean
39	rm -f ${MAN} tags .depend
40
41depend: ${SRCS}
42	mkdep -p ${CFLAGS} ${SRCS}
43
44install: ${MAN}
45	install -s -o bin -g bin -m 755 ${ALL} vplotf \
46	    ${DESTDIR}/usr/libexec/lpr
47	rm -f ${DESTDIR}/usr/libexec/lpr/vpfW
48	ln ${DESTDIR}/usr/libexec/lpr/vpf ${DESTDIR}/usr/libexec/lpr/vpfW
49
50lint: ${SRCS}
51	lint ${CFLAGS} ${SRCS}
52
53tags: ${SRCS}
54	ctags ${SRCS}
55