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