8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / troff / nroff.d / Makefile
blob295dcfb70430f7632210b028b199484f8671ad49
2 # CDDL HEADER START
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.
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.
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]
20 # CDDL HEADER END
23 # Copyright (c) 1989 by Sun Microsystems, Inc.
26 include ../../Makefile.cmd
28 SUBDIRS = terms.d
30 PROG = nroff
32 OBJS = n10.o n6.o
34 COMMONOBJS = 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
37 SRCS = $(OBJS:%.o=%.c) $(COMMONOBJS:%.o=../%.c)
40 CPPFLAGS = -DNROFF -DUSG -DINCORE -DEUC -I. -I.. $(CPPFLAGS.master)
42 CERRWARN += -_gcc=-Wno-unused-value
43 CERRWARN += -_gcc=-Wno-extra
44 CERRWARN += -_gcc=-Wno-implicit-function-declaration
45 CERRWARN += -_gcc=-Wno-parentheses
46 CERRWARN += -_gcc=-Wno-unused-variable
48 LDLIBS += -lmapmalloc
50 # message catalog
52 POFILES= $(OBJS:%.o=%.po)
53 POFILE= nroff.d.po
56 all := TARGET= all
57 install := TARGET= install
58 clean := TARGET= clean
59 clobber := TARGET= clobber
60 lint := TARGET= lint
61 strip := TARGET= strip
63 # build rule for common source above
64 %.o: ../%.c
65 $(COMPILE.c) $<
67 .KEEP_STATE:
69 .PARALLEL: $(COMMONOBJS) $(OBJS)
71 all : $(PROG) $(SUBDIRS)
73 $(PROG) : $(OBJS) $(COMMONOBJS)
74 $(LINK.c) -o $@ $(OBJS) $(COMMONOBJS) $(LDLIBS)
75 $(POST_PROCESS)
77 install : $(PROG) $(ROOTPROG) $(SUBDIRS)
79 catalog: $(POFILE)
81 $(POFILE): $(POFILES)
82 $(RM) $@
83 cat $(POFILES) > $@
86 clean : $(SUBDIRS)
87 $(RM) $(OBJS) $(COMMONOBJS)
89 strip :
90 $(STRIP) $(PROG)
92 lint : lint_SRCS
94 include ../../Makefile.targ
96 # additional dependency for clobber which is defined in Makefile.targ
97 clobber : $(SUBDIRS)
99 $(SUBDIRS) : FRC
100 @cd $@; pwd; $(MAKE) $(TARGET)
102 FRC: