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 2020 Joyent, Inc.
32 # Copyright 2019 RackTop Systems.
33 # Copyright 2020 Oxide Computer Company
34 # Copyright 2020 Peter Tribble
35 #
36
37 #
38 # Makefile.master, global definitions for system source
39 #
40 ROOT= /proto
41
42 #
43 # Adjunct root, containing an additional proto area to be used for headers
44 # and libraries.
45 #
46 ADJUNCT_PROTO=
47 # HAVE_ADJUNCT_PROTO - ADJUNCT_PROTO is set to a non-default value
48 # NO_ADJUNCT_PROTO - ADJUNCT_PROTO is unset
49 #
50 # This works by replacing any value in ADJUNCT_PROTO with POUND_SIGN, which
51 # only happens if it has some value, and then setting HAVE_ADJUNCT_PROTO
692 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \
693 $(CCNOAGGRESSIVELOOPS) \
694 $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS)
695 CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \
696 $(ILDOFF) $(CERRWARN) $(CSTD) $(CCUNBOUND) $(IROPTFLAG64) \
697 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \
698 $(CCNOAGGRESSIVELOOPS) \
699 $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS64)
700 #
701 # Flags that are used to build parts of the code that are subsequently
702 # run on the build machine (also known as the NATIVE_BUILD).
703 #
704 NATIVE_CFLAGS= $(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \
705 $(ILDOFF) $(CERRWARN) $(CSTD) $($(NATIVE_MACH)_CCUNBOUND) \
706 $(IROPTFLAG) $(CGLOBALSTATIC) $(CCNOAUTOINLINE) \
707 $(CCNOREORDER) $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS)
708
709 NATIVE_CCFLAGS= $(CCOPTFLAG) $($(NATIVE_MACH)_CCFLAGS) $(CCSOURCEDEBUGFLAGS) \
710 $(CCUSERFLAGS)
711
712 DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\" # For messaging.
713 DTS_ERRNO=-D_TS_ERRNO
714 CPPFLAGS.first= # Please keep empty. Only lower makefiles should set this.
715 CPPFLAGS.master=$(DTEXTDOM) $(DTS_ERRNO) \
716 $(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4) \
717 $(ADJUNCT_PROTO:%=-I%/usr/include)
718 CPPFLAGS.native=$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) \
719 $(ENVCPPFLAGS4) -I$(NATIVE_ADJUNCT)/include
720 CPPFLAGS= $(CPPFLAGS.first) $(CPPFLAGS.master)
721 AS_CPPFLAGS= $(CPPFLAGS.first) $(CPPFLAGS.master)
722 JAVAFLAGS= -source 7 -target 7 -Xlint:deprecation,-options
723 $(BLD_JAVA_11)JAVAFLAGS= -source 7 -target 7 -Xlint:-options
724
725 #
726 # For source message catalogue
727 #
728 .SUFFIXES: $(SUFFIXES) .i .po
729 MSGROOT= $(ROOT)/catalog
730 MSGDOMAIN= $(MSGROOT)/$(TEXT_DOMAIN)
731 MSGDOMAINPOFILE = $(MSGDOMAIN)/$(POFILE)
|
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 2021 Joyent, Inc.
32 # Copyright 2019 RackTop Systems.
33 # Copyright 2020 Oxide Computer Company
34 # Copyright 2020 Peter Tribble
35 #
36
37 #
38 # Makefile.master, global definitions for system source
39 #
40 ROOT= /proto
41
42 #
43 # Adjunct root, containing an additional proto area to be used for headers
44 # and libraries.
45 #
46 ADJUNCT_PROTO=
47 # HAVE_ADJUNCT_PROTO - ADJUNCT_PROTO is set to a non-default value
48 # NO_ADJUNCT_PROTO - ADJUNCT_PROTO is unset
49 #
50 # This works by replacing any value in ADJUNCT_PROTO with POUND_SIGN, which
51 # only happens if it has some value, and then setting HAVE_ADJUNCT_PROTO
692 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \
693 $(CCNOAGGRESSIVELOOPS) \
694 $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS)
695 CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \
696 $(ILDOFF) $(CERRWARN) $(CSTD) $(CCUNBOUND) $(IROPTFLAG64) \
697 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \
698 $(CCNOAGGRESSIVELOOPS) \
699 $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS64)
700 #
701 # Flags that are used to build parts of the code that are subsequently
702 # run on the build machine (also known as the NATIVE_BUILD).
703 #
704 NATIVE_CFLAGS= $(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \
705 $(ILDOFF) $(CERRWARN) $(CSTD) $($(NATIVE_MACH)_CCUNBOUND) \
706 $(IROPTFLAG) $(CGLOBALSTATIC) $(CCNOAUTOINLINE) \
707 $(CCNOREORDER) $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS)
708
709 NATIVE_CCFLAGS= $(CCOPTFLAG) $($(NATIVE_MACH)_CCFLAGS) $(CCSOURCEDEBUGFLAGS) \
710 $(CCUSERFLAGS)
711
712 NATIVE_CFLAGS64= $(COPTFLAG64) $($(NATIVE_MACH64)_CFLAGS) $(CCMODE64) \
713 $(ILDOFF) $(CERRWARN) $(CSTD) $($(NATIVE_MACH64)_CCUNBOUND) \
714 $(IROPTFLAG64) $(CGLOBALSTATIC) $(CCNOAUTOINLINE) \
715 $(CCNOREORDER) $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS64)
716
717 NATIVE_CCFLAGS64= $(CCOPTFLAG64) $($(NATIVE_MACH64)_CCFLAGS) \
718 $(CCSOURCEDEBUGFLAGS) $(CCUSERFLAGS64)
719
720 DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\" # For messaging.
721 DTS_ERRNO=-D_TS_ERRNO
722 CPPFLAGS.first= # Please keep empty. Only lower makefiles should set this.
723 CPPFLAGS.master=$(DTEXTDOM) $(DTS_ERRNO) \
724 $(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4) \
725 $(ADJUNCT_PROTO:%=-I%/usr/include)
726 CPPFLAGS.native=$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) \
727 $(ENVCPPFLAGS4) -I$(NATIVE_ADJUNCT)/include
728 CPPFLAGS= $(CPPFLAGS.first) $(CPPFLAGS.master)
729 AS_CPPFLAGS= $(CPPFLAGS.first) $(CPPFLAGS.master)
730 JAVAFLAGS= -source 7 -target 7 -Xlint:deprecation,-options
731 $(BLD_JAVA_11)JAVAFLAGS= -source 7 -target 7 -Xlint:-options
732
733 #
734 # For source message catalogue
735 #
736 .SUFFIXES: $(SUFFIXES) .i .po
737 MSGROOT= $(ROOT)/catalog
738 MSGDOMAIN= $(MSGROOT)/$(TEXT_DOMAIN)
739 MSGDOMAINPOFILE = $(MSGDOMAIN)/$(POFILE)
|