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 # uts/intel/Makefile
22 #
23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
25 # This makefile drives the production of all implementation architecture
26 # independent modules for Intel processors.
27
28 UTSBASE = ..
29
30 include Makefile.intel
31
32 LINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
33 LINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
34 LINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
35 LINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
36 $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
37 $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
38
39 $(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
40 $(CLOSED_BUILD)LINT_CLOSED_XMOD4 = $(CLOSED_XMODS:bnx=)
41 $(CLOSED_BUILD)LINT_CLOSED_XMOD3 = $(LINT_CLOSED_XMOD4:bnxe=)
42 $(CLOSED_BUILD)LINT_CLOSED_XMOD2 = $(LINT_CLOSED_XMOD3:lsimega=)
43 $(CLOSED_BUILD)LINT_CLOSED_XMOD1 = $(LINT_CLOSED_XMOD2:adpu320=)
44 $(CLOSED_BUILD)LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
45
46 #
47 # dprov is delivered in the SUNWcryptoint package.
48 #
49 DRV_KMODS += dprov
50
51 #
52 #
53 def := TARGET= def
54 def.prereq := TARGET= def
55 all := TARGET= all
56 all.prereq := TARGET= all
57 install := TARGET= install
58 install.prereq := TARGET= all
59 clean := TARGET= clean
60 clobber := TARGET= clobber
61 lint := TARGET= lint
62 lint.prereq := TARGET= lint
63 modlintlib := TARGET= modlintlib
64 modlist := TARGET= modlist
65 modlist := NO_STATE= -K $$MODSTATE$$$$
66 clean.lint := TARGET= clean.lint
67 check := TARGET= check
68 install_h := TARGET= install_h
69 install_h.prereq := TARGET= install_h
70
71 .KEEP_STATE:
72
73 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
74 $(CLOSED_XMODS) config $(LINT_DEPS)
75
76 def all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) \
77 $(SVVS) $(XMODS) $(CLOSED_XMODS) config
78
79
80 #
81 # Privilege constants
82 #
83 # NOTE: The rules for generating priv_const.c file are shared between all
84 # processor architectures and and should be kept in sync. If they are changed in
85 # this file make sure that sparc rules are updated as well.
86 #
87 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
88
89 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
90 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
91
92 #
93 # Prerequisites
94 #
95 # The uts/Makefile defines build parallelism for x86 platforms such that i86pc,
96 # i86xpv and intel are all built in parallel. This requires building certain
97 # parts before the parallel build can start. The uts/Makefile appends the
112 #
113 # intel/dtrace depends on i86pc/genassym, so we need to build both
114 # i86pc/genassym and intel/genassym.
115 #
116 all.prereq install.prereq def.prereq: genunix FRC
117 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
118
119 #
120 # i86pc lint libraries should be built first
121 #
122 lint.prereq: FRC
123 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
124
125 #
126 # Nothing to do for any other prerequisite targets.
127 #
128 %.prereq:
129
130 genunix: $(PRIVS_C)
131
132 modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
133 $(XMODS) $(CLOSED_XMODS)
134
135 $(KMODS) $(SUBDIRS) config: FRC
136 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
137
138 $(CLOSED_KMODS): FRC
139 cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
140
141 $(XMODS): FRC
142 @if [ -f $@/Makefile ]; then \
143 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
144 else \
145 true; \
146 fi
147
148 $(SVVS) $(CLOSED_XMODS): FRC
149 @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \
150 cd $(CLOSED)/uts/intel/$@; pwd; \
151 $(MAKE) $(NO_STATE) $(TARGET); \
152 else \
153 true; \
154 fi
155
156 install_h check: FRC
157 @cd sys; pwd; $(MAKE) $(TARGET)
158 @cd asm; pwd; $(MAKE) $(TARGET)
159 @cd ia32/sys; pwd; $(MAKE) $(TARGET)
160 @cd amd64/sys; pwd; $(MAKE) $(TARGET)
161
162 #
163 # Work-around to disable acpica global crosscheck lint warnings
164 #
165 LGREP.intel = grep -v 'intel/io/acpica'
166
167 #
168 # Full kernel lint target.
169 #
170 LINT_TARGET = globallint
171
172 # workaround for multiply defined errors
173 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
174
175 globallint:
|
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 # uts/intel/Makefile
22 #
23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
25 # This makefile drives the production of all implementation architecture
26 # independent modules for Intel processors.
27
28 UTSBASE = ..
29
30 include Makefile.intel
31
32 LINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
33 LINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
34 LINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
35 LINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
36 $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
37
38 #
39 # dprov is delivered in the SUNWcryptoint package.
40 #
41 DRV_KMODS += dprov
42
43 #
44 #
45 def := TARGET= def
46 def.prereq := TARGET= def
47 all := TARGET= all
48 all.prereq := TARGET= all
49 install := TARGET= install
50 install.prereq := TARGET= all
51 clean := TARGET= clean
52 clobber := TARGET= clobber
53 lint := TARGET= lint
54 lint.prereq := TARGET= lint
55 modlintlib := TARGET= modlintlib
56 modlist := TARGET= modlist
57 modlist := NO_STATE= -K $$MODSTATE$$$$
58 clean.lint := TARGET= clean.lint
59 check := TARGET= check
60 install_h := TARGET= install_h
61 install_h.prereq := TARGET= install_h
62
63 .KEEP_STATE:
64
65 .PARALLEL: $(PARALLEL_KMODS) $(XMODS) config $(LINT_DEPS)
66
67 def all install clean clobber modlist: $(KMODS) $(XMODS) config
68
69
70 #
71 # Privilege constants
72 #
73 # NOTE: The rules for generating priv_const.c file are shared between all
74 # processor architectures and and should be kept in sync. If they are changed in
75 # this file make sure that sparc rules are updated as well.
76 #
77 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
78
79 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
80 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
81
82 #
83 # Prerequisites
84 #
85 # The uts/Makefile defines build parallelism for x86 platforms such that i86pc,
86 # i86xpv and intel are all built in parallel. This requires building certain
87 # parts before the parallel build can start. The uts/Makefile appends the
102 #
103 # intel/dtrace depends on i86pc/genassym, so we need to build both
104 # i86pc/genassym and intel/genassym.
105 #
106 all.prereq install.prereq def.prereq: genunix FRC
107 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
108
109 #
110 # i86pc lint libraries should be built first
111 #
112 lint.prereq: FRC
113 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
114
115 #
116 # Nothing to do for any other prerequisite targets.
117 #
118 %.prereq:
119
120 genunix: $(PRIVS_C)
121
122 modlintlib clean.lint: $(LINT_KMODS) $(XMODS)
123
124 $(KMODS) $(SUBDIRS) config: FRC
125 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
126
127 $(XMODS): FRC
128 @if [ -f $@/Makefile ]; then \
129 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
130 else \
131 true; \
132 fi
133
134 install_h check: FRC
135 @cd sys; pwd; $(MAKE) $(TARGET)
136 @cd asm; pwd; $(MAKE) $(TARGET)
137 @cd ia32/sys; pwd; $(MAKE) $(TARGET)
138 @cd amd64/sys; pwd; $(MAKE) $(TARGET)
139
140 #
141 # Work-around to disable acpica global crosscheck lint warnings
142 #
143 LGREP.intel = grep -v 'intel/io/acpica'
144
145 #
146 # Full kernel lint target.
147 #
148 LINT_TARGET = globallint
149
150 # workaround for multiply defined errors
151 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
152
153 globallint:
|