11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
27 # Copyright 2015 Gary Mills
28 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
29 # Copyright 2016 Toomas Soome <tsoome@me.com>
30 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
31 #
32
33 #
34 # Makefile.master, global definitions for system source
35 #
36 ROOT= /proto
37
38 #
39 # Adjunct root, containing an additional proto area to be used for headers
40 # and libraries.
41 #
42 ADJUNCT_PROTO=
43
44 #
45 # Adjunct for building things that run on the build machine.
46 #
47 NATIVE_ADJUNCT= /usr
48
49 #
50 # RELEASE_BUILD should be cleared for final release builds.
418 #
419 # turn warnings into errors (C)
420 CERRWARN = -errtags=yes -errwarn=%all
421 CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
422 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
423
424 CERRWARN += -_gcc=-Wno-missing-braces
425 CERRWARN += -_gcc=-Wno-sign-compare
426 CERRWARN += -_gcc=-Wno-unknown-pragmas
427 CERRWARN += -_gcc=-Wno-unused-parameter
428 CERRWARN += -_gcc=-Wno-missing-field-initializers
429
430 # Unfortunately, this option can misfire very easily and unfixably.
431 CERRWARN += -_gcc=-Wno-array-bounds
432
433 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
434 # -nd builds
435 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
436 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
437
438 #
439 # turn warnings into errors (C++)
440 CCERRWARN= -xwe
441
442 # C standard. Keep Studio flags until we get rid of lint.
443 CSTD_GNU89= -xc99=%none
444 CSTD_GNU99= -xc99=%all
445 CSTD= $(CSTD_GNU89)
446 C99LMODE= $(CSTD:-xc99%=-Xc99%)
447
448 # In most places, assignments to these macros should be appended with +=
449 # (CPPFLAGS.first allows values to be prepended to CPPFLAGS).
450 sparc_CFLAGS= $(sparc_XARCH) $(CCSTATICSYM)
451 sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
452 $(CCSTATICSYM)
453 i386_CFLAGS= $(i386_XARCH)
454 amd64_CFLAGS= $(amd64_XARCH)
455
456 sparc_ASFLAGS= $(sparc_AS_XARCH)
457 sparcv9_ASFLAGS=$(sparcv9_AS_XARCH)
|
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
27 # Copyright 2015 Gary Mills
28 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
29 # Copyright 2016 Toomas Soome <tsoome@me.com>
30 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
31 # Copyright (c) 2018, Joyent, Inc.
32 #
33
34 #
35 # Makefile.master, global definitions for system source
36 #
37 ROOT= /proto
38
39 #
40 # Adjunct root, containing an additional proto area to be used for headers
41 # and libraries.
42 #
43 ADJUNCT_PROTO=
44
45 #
46 # Adjunct for building things that run on the build machine.
47 #
48 NATIVE_ADJUNCT= /usr
49
50 #
51 # RELEASE_BUILD should be cleared for final release builds.
419 #
420 # turn warnings into errors (C)
421 CERRWARN = -errtags=yes -errwarn=%all
422 CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
423 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
424
425 CERRWARN += -_gcc=-Wno-missing-braces
426 CERRWARN += -_gcc=-Wno-sign-compare
427 CERRWARN += -_gcc=-Wno-unknown-pragmas
428 CERRWARN += -_gcc=-Wno-unused-parameter
429 CERRWARN += -_gcc=-Wno-missing-field-initializers
430
431 # Unfortunately, this option can misfire very easily and unfixably.
432 CERRWARN += -_gcc=-Wno-array-bounds
433
434 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
435 # -nd builds
436 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
437 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
438
439 CERRWARN += -_smatch=-p=illumos_user
440 include $(SRC)/Makefile.smatch
441
442 #
443 # turn warnings into errors (C++)
444 CCERRWARN= -xwe
445
446 # C standard. Keep Studio flags until we get rid of lint.
447 CSTD_GNU89= -xc99=%none
448 CSTD_GNU99= -xc99=%all
449 CSTD= $(CSTD_GNU89)
450 C99LMODE= $(CSTD:-xc99%=-Xc99%)
451
452 # In most places, assignments to these macros should be appended with +=
453 # (CPPFLAGS.first allows values to be prepended to CPPFLAGS).
454 sparc_CFLAGS= $(sparc_XARCH) $(CCSTATICSYM)
455 sparcv9_CFLAGS= $(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
456 $(CCSTATICSYM)
457 i386_CFLAGS= $(i386_XARCH)
458 amd64_CFLAGS= $(amd64_XARCH)
459
460 sparc_ASFLAGS= $(sparc_AS_XARCH)
461 sparcv9_ASFLAGS=$(sparcv9_AS_XARCH)
|