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