xref: /original-bsd/old/roff/troff/Makefile (revision 1eabc47f)
1#
2# Copyright (c) 1987 The 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	5.4 (Berkeley) 08/05/89
18#
19COMMON=	../common_source
20CFLAGS=	-O -DVMUNIX -I${COMMON}
21VPATH=	${COMMON}
22LIBC=	/lib/libc.a
23SRCS=	ni.c nii.c n1.c n2.c n3.c n4.c n5.c t6.c n7.c n8.c n9.c t10.c \
24	hytab.c suftab.c tab3.c
25OBJS=	ni.o nii.o n1.o n2.o n3.o n4.o n5.o t6.o n7.o n8.o n9.o t10.o \
26	hytab.o suftab.o tab3.o
27MAN=	troff.0
28
29all: troff
30
31troff: ${OBJS} ${LIBC}
32	${CC} -o $@ ${CFLAGS} ${OBJS} -lcompat
33
34hytab.o: ${COMMON}/hytab.c
35	${CC} -R -c ${COMMON}/hytab.c
36
37suftab.o: ${COMMON}/suftab.c
38	${CC} -R -c ${COMMON}/suftab.c
39
40clean:
41	rm -f ${OBJS} core troff
42
43cleandir: clean
44	rm -f ${MAN} tags .depend
45
46depend: ${SRCS}
47	mkdep ${CFLAGS} ${SRCS}
48
49install: ${MAN}
50	install -s -o bin -g bin -m 755 troff ${DESTDIR}/usr/bin
51	install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
52
53lint: ${SRCS}
54	lint ${CFLAGS} ${SRCS}
55
56tags: ${SRCS}
57	ctags ${SRCS}
58
59FRC:
60