xref: /titanic_52/usr/src/cmd/troff/nroff.d/Makefile (revision 52244c0958bdf281ca42932b449f644b4decfdc2)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright (c) 1989 by Sun Microsystems, Inc.
24#
25
26include 	../../Makefile.cmd
27
28SUBDIRS =	terms.d
29
30PROG =		nroff
31
32OBJS =		n10.o n6.o
33
34COMMONOBJS =	hytab.o n1.o n2.o n3.o n4.o n5.o	\
35		n7.o n8.o n9.o ni.o nii.o suftab.o
36
37SRCS =		$(OBJS:%.o=%.c) $(COMMONOBJS:%.o=../%.c)
38
39
40CPPFLAGS =	-DNROFF -DUSG -DINCORE -DEUC -I. -I.. $(CPPFLAGS.master)
41
42CERRWARN +=	-_gcc=-Wno-unused-value
43CERRWARN +=	-_gcc=-Wno-extra
44CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
45CERRWARN +=	-_gcc=-Wno-parentheses
46CERRWARN +=	-_gcc=-Wno-unused-variable
47
48LDLIBS +=	-lmapmalloc
49#
50# message catalog
51#
52POFILES= $(OBJS:%.o=%.po)
53POFILE= nroff.d.po
54
55
56all :=		TARGET= all
57install :=	TARGET= install
58clean :=	TARGET= clean
59clobber :=	TARGET= clobber
60lint :=		TARGET= lint
61strip :=	TARGET= strip
62
63# build rule for common source above
64%.o: ../%.c
65		$(COMPILE.c) $<
66
67.KEEP_STATE:
68
69.PARALLEL: $(COMMONOBJS) $(OBJS)
70
71all :		$(PROG) $(SUBDIRS)
72
73$(PROG) :	$(OBJS) $(COMMONOBJS)
74		$(LINK.c) -o $@ $(OBJS) $(COMMONOBJS) $(LDLIBS)
75		$(POST_PROCESS)
76
77install :	$(PROG) $(ROOTPROG) $(SUBDIRS)
78
79catalog:        $(POFILE)
80
81$(POFILE):      $(POFILES)
82	 $(RM)	$@
83	 cat $(POFILES)  >       $@
84
85
86clean :		$(SUBDIRS)
87		$(RM) $(OBJS) $(COMMONOBJS)
88
89strip :
90		$(STRIP) $(PROG)
91
92lint :		lint_SRCS
93
94include		../../Makefile.targ
95
96# additional dependency for clobber which is defined in Makefile.targ
97clobber :	$(SUBDIRS)
98
99$(SUBDIRS) :	FRC
100		@cd $@; pwd; $(MAKE) $(TARGET)
101
102FRC:
103