xref: /titanic_50/usr/src/cmd/troff/nroff.d/Makefile (revision 20c794b39650d115e17a15983b6b82e46238cf45)
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# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989 by Sun Microsystems, Inc.
26#
27# cmd/troff/nroff.d/Makefile
28#
29
30include 	../../Makefile.cmd
31
32SUBDIRS =	terms.d
33
34PROG =		nroff
35
36OBJS =		n10.o n6.o
37
38COMMONOBJS =	hytab.o n1.o n2.o n3.o n4.o n5.o	\
39		n7.o n8.o n9.o ni.o nii.o suftab.o
40
41SRCS =		$(OBJS:%.o=%.c) $(COMMONOBJS:%.o=../%.c)
42
43
44CPPFLAGS =	-DNROFF -DUSG -DINCORE -DEUC -I. -I.. $(CPPFLAGS.master)
45
46LDLIBS +=	-lmapmalloc
47#
48# message catalog
49#
50POFILES= $(OBJS:%.o=%.po)
51POFILE= nroff.d.po
52
53
54all :=		TARGET= all
55install :=	TARGET= install
56clean :=	TARGET= clean
57clobber :=	TARGET= clobber
58lint :=		TARGET= lint
59strip :=	TARGET= strip
60
61# build rule for common source above
62%.o: ../%.c
63		$(COMPILE.c) $<
64
65.KEEP_STATE:
66
67.PARALLEL: $(COMMONOBJS) $(OBJS)
68
69all :		$(PROG) $(SUBDIRS)
70
71$(PROG) :	$(OBJS) $(COMMONOBJS)
72		$(LINK.c) -o $@ $(OBJS) $(COMMONOBJS) $(LDLIBS)
73		$(POST_PROCESS)
74
75install :	$(PROG) $(ROOTPROG) $(SUBDIRS)
76
77catalog:        $(POFILE)
78
79$(POFILE):      $(POFILES)
80	 $(RM)	$@
81	 cat $(POFILES)  >       $@
82
83
84clean :		$(SUBDIRS)
85		$(RM) $(OBJS) $(COMMONOBJS)
86
87strip :
88		$(STRIP) $(PROG)
89
90lint :		lint_SRCS
91
92include		../../Makefile.targ
93
94# additional dependency for clobber which is defined in Makefile.targ
95clobber :	$(SUBDIRS)
96
97$(SUBDIRS) :	FRC
98		@cd $@; pwd; $(MAKE) $(TARGET)
99
100FRC:
101