Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libpp/Makefile.com
+++ new/usr/src/lib/libpp/Makefile.com
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 (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright (c) 2018, Joyent, Inc.
25 26
26 27 SHELL=/usr/bin/ksh93
27 28
28 29 LIBRARY= libpp.a
29 30 VERS= .1
30 31
31 32 OBJECTS= \
32 33 ppargs.o \
33 34 ppbuiltin.o \
34 35 ppcall.o \
35 36 ppcomment.o \
36 37 ppcontext.o \
37 38 ppcontrol.o \
38 39 ppcpp.o \
39 40 ppdata.o \
40 41 pperror.o \
41 42 ppexpr.o \
42 43 ppfsm.o \
43 44 ppincref.o \
44 45 ppinput.o \
45 46 ppkey.o \
46 47 pplex.o \
47 48 ppline.o \
48 49 ppmacref.o \
49 50 ppmisc.o \
50 51 ppop.o \
51 52 pppragma.o \
52 53 ppprintf.o \
53 54 ppproto.o \
54 55 ppsearch.o \
55 56 pptrace.o
56 57
57 58 include ../../Makefile.astmsg
58 59
59 60 include ../../Makefile.lib
60 61
61 62 # mapfile-vers does not live with the sources in in common/ to make
62 63 # automated code updates easier.
63 64 MAPFILES= ../mapfile-vers
64 65
65 66 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
66 67 include ../../../Makefile.ast
67 68
68 69 LIBS = $(DYNLIB) $(LINTLIB)
69 70
70 71 LDLIBS += \
71 72 -last \
72 73 -lc
73 74
74 75 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
75 76
76 77 SRCDIR = ../common
77 78
78 79 # We use "=" here since using $(CPPFLAGS.master) is very tricky in our
79 80 # case - it MUST come as the last element but future changes in -D options
80 81 # may then cause silent breakage in the AST sources because the last -D
81 82 # option specified overrides previous -D options so we prefer the current
82 83 # way to explicitly list each single flag.
83 84 CPPFLAGS = \
84 85 $(DTEXTDOM) $(DTS_ERRNO) \
85 86 -I. \
86 87 -I$(ROOT)/usr/include/ast \
87 88 -I$(ROOT)/usr/include \
88 89 -D_PACKAGE_ast \
89 90 '-DUSAGE_LICENSE=\
90 91 "[-author?Glenn Fowler <gsf@research.att.com>]"\
91 92 "[-copyright?Copyright (c) 1986-2009 AT&T Intellectual Property]"\
92 93 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
93 94 "[--catalog?libpp]"'
94 95
95 96
96 97 CFLAGS += \
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
97 98 $(ASTCFLAGS)
98 99 CFLAGS64 += \
99 100 $(ASTCFLAGS64)
100 101
101 102 CERRWARN += -_gcc=-Wno-parentheses
102 103 CERRWARN += -_gcc=-Wno-uninitialized
103 104 CERRWARN += -_gcc=-Wno-char-subscripts
104 105 CERRWARN += -_gcc=-Wno-empty-body
105 106 CERRWARN += -_gcc=-Wno-unused-value
106 107
108 +# "pplex() parse error: turning off implications after 60 seconds"
109 +SMATCH = off
110 +
107 111 pics/ppcall.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
108 112 pics/ppcontrol.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
109 113 pics/ppcpp.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
110 114 pics/ppexpr.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
111 115 pics/pplex.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
112 116 pics/ppop.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
113 117 pics/ppsearch.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
114 118 pics/ppsearch.o := CERRWARN += -_gcc=-Wno-sequence-point
115 119 pics/pplex.o := CERRWARN += -_gcc=-Wno-implicit-fallthrough
116 120 pics/ppcpp.o := CERRWARN += -_gcc=-Wno-implicit-fallthrough
117 121 pics/ppproto.o := CERRWARN += -_gcc=-Wno-implicit-fallthrough
118 122
119 123 .KEEP_STATE:
120 124
121 125 all: $(LIBS)
122 126
123 127 #
124 128 # libpp is not lint-clean yet; fake up a target. (You can use
125 129 # "make lintcheck" to actually run lint; please send all lint fixes
126 130 # upstream (to AT&T) so the next update will pull them into ON.)
127 131 #
128 132 lint:
129 133 @ print "usr/src/lib/libpp is not lint-clean: skipping"
130 134
131 135 include ../../Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX