xref: /original-bsd/old/vpr/vtools/Makefile (revision bbb96de4)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	6.1	(Berkeley)	11/04/87
7#
8CFLAGS=	-O
9LIBC=	/lib/libc.a
10SRCS=	fcvt.c rotate.c rotprt.c vfontinfo.c vfw.c vwidth.c
11OBJS=	fcvt.o rotate.o rotprt.o vfontinfo.o vfw.o vwidth.o
12ALL=	fcvt rotate rotprt vfontinfo vfw vwidth
13
14all: ${ALL}
15
16fcvt: ${LIBC}
17	${CC} -o $@ ${CFLAGS} fcvt.c
18rotate: ${LIBC}
19	${CC} -o $@ ${CFLAGS} rotate.c
20rotprt: ${LIBC}
21	${CC} -o $@ ${CFLAGS} rotprt.c
22vfontinfo: ${LIBC}
23	${CC} -o $@ ${CFLAGS} vfontinfo.c
24vfw: ${LIBC}
25	${CC} -o $@ ${CFLAGS} vfw.c
26vwidth: ${LIBC}
27	${CC} -o $@ ${CFLAGS} vwidth.c
28
29clean: FRC
30	rm -f ${OBJS} core ${ALL}
31
32depend: FRC
33	mkdep -p ${CFLAGS} ${SRCS}
34
35install: FRC
36	install -s -o bin -g bin -m 755 fcvt ${DESTDIR}/usr/old/fcvt
37	install -s -o bin -g bin -m 755 rotate ${DESTDIR}/usr/old/rotate
38	install -s -o bin -g bin -m 755 rotprt ${DESTDIR}/usr/old/rotprt
39	install -s -o bin -g bin -m 755 vfontinfo ${DESTDIR}/usr/old/vfontinfo
40	install -s -o bin -g bin -m 755 vfw ${DESTDIR}/usr/old/vfw
41	install -s -o bin -g bin -m 755 vwdith ${DESTDIR}/usr/old/vwdith
42
43lint: FRC
44	lint ${CFLAGS} ${SRCS}
45
46tags: FRC
47	ctags ${SRCS}
48
49FRC:
50
51# DO NOT DELETE THIS LINE -- mkdep uses it.
52# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
53
54fcvt: fcvt.c /usr/include/stdio.h /usr/include/vfont.h
55rotate: rotate.c /usr/include/stdio.h /usr/include/vfont.h
56rotate: /usr/include/sys/types.h /usr/include/sys/stat.h
57rotprt: rotprt.c /usr/include/stdio.h /usr/include/vfont.h
58rotprt: /usr/include/sys/types.h /usr/include/sys/stat.h
59vfontinfo: vfontinfo.c /usr/include/stdio.h /usr/include/ctype.h
60vfontinfo: /usr/include/vfont.h
61vfw: vfw.c /usr/include/stdio.h
62vwidth: vwidth.c /usr/include/stdio.h
63
64# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
65