4 # Common Development and Distribution License (the "License").
5 # You may not use this file except in compliance with the License.
6 #
7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 # or http://www.opensolaris.org/os/licensing.
9 # See the License for the specific language governing permissions
10 # and limitations under the License.
11 #
12 # When distributing Covered Code, include this CDDL HEADER in each
13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 # If applicable, add the following below this CDDL HEADER, with the
15 # fields enclosed by brackets "[]" replaced with your own identifying
16 # information: Portions Copyright [yyyy] [name of copyright owner]
17 #
18 # CDDL HEADER END
19 #
20
21 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
23 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
24
25 #
26 # This makefile contains the common definitions for all intel
27 # implementation architecture independent modules.
28 #
29
30 #
31 # Machine type (implementation architecture):
32 #
33 PLATFORM = i86pc
34
35 #
36 # Everybody needs to know how to build modstubs.o and to locate unix.o.
37 # Note that unix.o must currently be selected from among the possible
38 # "implementation architectures". Note further, that unix.o is only
39 # used as an optional error check for undefines so (theoretically)
40 # any "implementation architectures" could be used. We choose i86pc
41 # because it is the reference port.
42 #
43 UNIX_DIR = $(UTSBASE)/i86pc/unix
99 # Define supported builds
100 #
101 DEF_BUILDS = $(DEF_BUILDS64) $(DEF_BUILDS32)
102 ALL_BUILDS = $(ALL_BUILDS64) $(ALL_BUILDS32)
103
104 #
105 # x86 or amd64 inline templates
106 #
107 INLINES_32 = $(UTSBASE)/intel/ia32/ml/ia32.il
108 INLINES_64 = $(UTSBASE)/intel/amd64/ml/amd64.il
109 INLINES += $(INLINES_$(CLASS))
110
111 #
112 # kernel-specific optimizations; override default in Makefile.master
113 #
114
115 CFLAGS_XARCH_32 = $(i386_CFLAGS)
116 CFLAGS_XARCH_64 = $(amd64_CFLAGS)
117 CFLAGS_XARCH = $(CFLAGS_XARCH_$(CLASS))
118
119 COPTFLAG_32 = $(COPTFLAG)
120 COPTFLAG_64 = $(COPTFLAG64)
121 COPTIMIZE = $(COPTFLAG_$(CLASS))
122
123 CFLAGS = $(CFLAGS_XARCH)
124 CFLAGS += $(COPTIMIZE)
125 CFLAGS += $(INLINES) -D_ASM_INLINES
126 CFLAGS += $(CCMODE)
127 CFLAGS += $(SPACEFLAG)
128 CFLAGS += $(CCUNBOUND)
129 CFLAGS += $(CFLAGS_uts)
130 CFLAGS += -xstrconst
131
132 ASFLAGS_XARCH_32 = $(i386_ASFLAGS)
133 ASFLAGS_XARCH_64 = $(amd64_ASFLAGS)
134 ASFLAGS_XARCH = $(ASFLAGS_XARCH_$(CLASS))
135
136 ASFLAGS += $(ASFLAGS_XARCH)
137
138 #
139 # Define the base directory for installation.
140 #
|
4 # Common Development and Distribution License (the "License").
5 # You may not use this file except in compliance with the License.
6 #
7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 # or http://www.opensolaris.org/os/licensing.
9 # See the License for the specific language governing permissions
10 # and limitations under the License.
11 #
12 # When distributing Covered Code, include this CDDL HEADER in each
13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 # If applicable, add the following below this CDDL HEADER, with the
15 # fields enclosed by brackets "[]" replaced with your own identifying
16 # information: Portions Copyright [yyyy] [name of copyright owner]
17 #
18 # CDDL HEADER END
19 #
20
21 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
23 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
24 # Copyright 2014 Gary Mills
25
26 #
27 # This makefile contains the common definitions for all intel
28 # implementation architecture independent modules.
29 #
30
31 #
32 # Machine type (implementation architecture):
33 #
34 PLATFORM = i86pc
35
36 #
37 # Everybody needs to know how to build modstubs.o and to locate unix.o.
38 # Note that unix.o must currently be selected from among the possible
39 # "implementation architectures". Note further, that unix.o is only
40 # used as an optional error check for undefines so (theoretically)
41 # any "implementation architectures" could be used. We choose i86pc
42 # because it is the reference port.
43 #
44 UNIX_DIR = $(UTSBASE)/i86pc/unix
100 # Define supported builds
101 #
102 DEF_BUILDS = $(DEF_BUILDS64) $(DEF_BUILDS32)
103 ALL_BUILDS = $(ALL_BUILDS64) $(ALL_BUILDS32)
104
105 #
106 # x86 or amd64 inline templates
107 #
108 INLINES_32 = $(UTSBASE)/intel/ia32/ml/ia32.il
109 INLINES_64 = $(UTSBASE)/intel/amd64/ml/amd64.il
110 INLINES += $(INLINES_$(CLASS))
111
112 #
113 # kernel-specific optimizations; override default in Makefile.master
114 #
115
116 CFLAGS_XARCH_32 = $(i386_CFLAGS)
117 CFLAGS_XARCH_64 = $(amd64_CFLAGS)
118 CFLAGS_XARCH = $(CFLAGS_XARCH_$(CLASS))
119
120 COPTFLAG_32 = -_gcc=-fno-toplevel-reorder $(COPTFLAG)
121 COPTFLAG_64 = -_gcc=-fno-toplevel-reorder $(COPTFLAG64)
122 COPTIMIZE = $(COPTFLAG_$(CLASS))
123
124 CFLAGS = $(CFLAGS_XARCH)
125 CFLAGS += $(COPTIMIZE)
126 CFLAGS += $(INLINES) -D_ASM_INLINES
127 CFLAGS += $(CCMODE)
128 CFLAGS += $(SPACEFLAG)
129 CFLAGS += $(CCUNBOUND)
130 CFLAGS += $(CFLAGS_uts)
131 CFLAGS += -xstrconst
132
133 ASFLAGS_XARCH_32 = $(i386_ASFLAGS)
134 ASFLAGS_XARCH_64 = $(amd64_ASFLAGS)
135 ASFLAGS_XARCH = $(ASFLAGS_XARCH_$(CLASS))
136
137 ASFLAGS += $(ASFLAGS_XARCH)
138
139 #
140 # Define the base directory for installation.
141 #
|