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