blob: a0417bde5027c00a0cc97b26e0f9aa357af0925a [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#
2# Generic make definitions for Solaris 2
3#
4# $Id: Makedefs.sol2,v 1.2 2002/09/07 05:15:25 carlsonj Exp $
5#
6
7include ../Makedefs.com
8
9CPPFLAGS = -D_KERNEL -DSVR4 -DSOL2 -DPRIOQ -DDEBUG -I../include
10CFLAGS = $(CPPFLAGS) $(COPTS)
11
12# lint-specific variables
13LINT = lint
14LINT_OPT_32 =
15LINT_OPT_64 = -Xarch=v9 -errchk=longptr64
16
17LINT_32 =
18LINT_32 += -erroff=E_BAD_PTR_CAST_ALIGN
19LINT_32 += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
20LINT_32 += -erroff=E_SUSPICIOUS_COMPARISON
21LINT_32 += -erroff=E_CAST_UINT_TO_SIGNED_INT
22LINT_32 += -erroff=E_PASS_UINT_TO_SIGNED_INT
23LINT_32 += -erroff=E_INVALID_ANNOTATION_NAME
24LINT_32 += -erroff=E_FUNC_ARG_UNUSED
25# This might be needed, but zlib.c and vjcompress.c will squawk
26# when not ignored
27LINT_32 += -erroff=E_CASE_FALLTHRU
28LINT_32 += -erroff=E_RET_INT_IMPLICITLY
29LINT_32 += -erroff=E_FUNC_NO_RET_VAL
30# Some STREAMS macros will be noisy too when this isn't ignored
31LINT_32 += -erroff=E_CONSTANT_CONDITION
32LINT_32 += -erroff=E_CONST_EXPR
33
34# Extra noise suppressant for 64-bit
35EXTRA_OFF =
36EXTRA_OFF += -erroff=E_CAST_INT_TO_SMALL_INT
37EXTRA_OFF += -erroff=E_CAST_INT_CONST_TO_SMALL_INT
38EXTRA_OFF += -erroff=E_CAST_TO_PTR_FROM_INT
39EXTRA_OFF += -erroff=E_ASSIGN_INT_TO_SMALL_INT
40EXTRA_OFF += -erroff=E_ASSIGN_INT_FROM_BIG_CONST
41EXTRA_OFF += -erroff=E_CONST_PROMOTED_UNSIGNED_LL
42EXTRA_OFF += -erroff=E_CONST_PROMOTED_LONG_LONG
43EXTRA_OFF += -erroff=E_CONST_TRUNCATED_BY_ASSIGN
44EXTRA_OFF += -erroff=E_PASS_INT_FROM_BIG_CONST
45EXTRA_OFF += -erroff=E_COMP_INT_WITH_LARGE_INT
46EXTRA_OFF += -erroff=E_ASSIGN_UINT_TO_SIGNED_INT
47EXTRA_OFF += -erroff=E_ASSIGN_NARROW_CONV
48EXTRA_OFF += -erroff=E_PASS_INT_TO_SMALL_INT
49EXTRA_OFF += -erroff=E_PTR_CONV_LOSES_BITS
50
51LINT_64 = $(LINT_32)
52LINT_64 += $(EXTRA_OFF)
53
54LINTFLAGS64 = -Xa -nsxmuF -errtags=yes $(LINT_OPT_64) $(LINT_64)
55LINT64 = $(LINT) -c $(LINTFLAGS64) $(CPPFLAGS)
56
57LINTFLAGS32 = -Xa -nsxmuF -errtags=yes $(LINT_OPT_32) $(LINT_32)
58LINT32 = $(LINT) -c $(LINTFLAGS32) $(CPPFLAGS)
59