lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # |
| 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 | |
| 7 | include ../Makedefs.com |
| 8 | |
| 9 | CPPFLAGS = -D_KERNEL -DSVR4 -DSOL2 -DPRIOQ -DDEBUG -I../include |
| 10 | CFLAGS = $(CPPFLAGS) $(COPTS) |
| 11 | |
| 12 | # lint-specific variables |
| 13 | LINT = lint |
| 14 | LINT_OPT_32 = |
| 15 | LINT_OPT_64 = -Xarch=v9 -errchk=longptr64 |
| 16 | |
| 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 |
| 33 | |
| 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 |
| 50 | |
| 51 | LINT_64 = $(LINT_32) |
| 52 | LINT_64 += $(EXTRA_OFF) |
| 53 | |
| 54 | LINTFLAGS64 = -Xa -nsxmuF -errtags=yes $(LINT_OPT_64) $(LINT_64) |
| 55 | LINT64 = $(LINT) -c $(LINTFLAGS64) $(CPPFLAGS) |
| 56 | |
| 57 | LINTFLAGS32 = -Xa -nsxmuF -errtags=yes $(LINT_OPT_32) $(LINT_32) |
| 58 | LINT32 = $(LINT) -c $(LINTFLAGS32) $(CPPFLAGS) |
| 59 | |