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
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]
23 # Copyright (c) 1989 by Sun Microsystems, Inc.
26 include ..
/..
/Makefile.cmd
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
52 POFILES
= $(OBJS
:%.o
=%.po
)
57 install := TARGET
= install
58 clean := TARGET
= clean
59 clobber := TARGET
= clobber
61 strip := TARGET
= strip
63 # build rule for common source above
69 .PARALLEL
: $(COMMONOBJS
) $(OBJS
)
71 all : $(PROG
) $(SUBDIRS
)
73 $(PROG
) : $(OBJS
) $(COMMONOBJS
)
74 $(LINK.c
) -o
$@
$(OBJS
) $(COMMONOBJS
) $(LDLIBS
)
77 install : $(PROG
) $(ROOTPROG
) $(SUBDIRS
)
87 $(RM
) $(OBJS
) $(COMMONOBJS
)
94 include ..
/..
/Makefile.targ
96 # additional dependency for clobber which is defined in Makefile.targ
100 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)