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 clobber: clobber.targ
80
81 #
82 # Privilege constants
83 #
84 # NOTE: The rules for generating priv_const.c file are shared between all
85 # processor architectures and and should be kept in sync. If they are changed in
86 # this file make sure that sparc rules are updated as well.
87 #
88 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
89
90 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
91 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
92
93 CLOBBERFILES += $(PRIVS_C)
94
95 #
96 # Prerequisites
97 #
115 #
116 # intel/dtrace depends on i86pc/genassym, so we need to build both
117 # i86pc/genassym and intel/genassym.
118 #
119 all.prereq install.prereq def.prereq: genunix FRC
120 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
121
122 #
123 # i86pc lint libraries should be built first
124 #
125 lint.prereq: FRC
126 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
127
128 #
129 # Nothing to do for any other prerequisite targets.
130 #
131 %.prereq:
132
133 genunix: $(PRIVS_C)
134
135 modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
136 $(XMODS) $(CLOSED_XMODS)
137
138 $(KMODS) $(SUBDIRS) config: FRC
139 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
140
141 $(CLOSED_KMODS): FRC
142 cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
143
144 $(XMODS): FRC
145 @if [ -f $@/Makefile ]; then \
146 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
147 else \
148 true; \
149 fi
150
151 $(SVVS) $(CLOSED_XMODS): FRC
152 @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \
153 cd $(CLOSED)/uts/intel/$@; pwd; \
154 $(MAKE) $(NO_STATE) $(TARGET); \
155 else \
156 true; \
157 fi
158
159 install_h check: FRC
160 @cd sys; pwd; $(MAKE) $(TARGET)
161 @cd asm; pwd; $(MAKE) $(TARGET)
162 @cd ia32/sys; pwd; $(MAKE) $(TARGET)
163 @cd amd64/sys; pwd; $(MAKE) $(TARGET)
164
165 #
166 # Work-around to disable acpica global crosscheck lint warnings
167 #
168 LGREP.intel = grep -v 'intel/io/acpica'
169
170 #
171 # Full kernel lint target.
172 #
173 LINT_TARGET = globallint
174
175 # workaround for multiply defined errors
176 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
177
178 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 clobber: clobber.targ
70
71 #
72 # Privilege constants
73 #
74 # NOTE: The rules for generating priv_const.c file are shared between all
75 # processor architectures and and should be kept in sync. If they are changed in
76 # this file make sure that sparc rules are updated as well.
77 #
78 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
79
80 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
81 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
82
83 CLOBBERFILES += $(PRIVS_C)
84
85 #
86 # Prerequisites
87 #
105 #
106 # intel/dtrace depends on i86pc/genassym, so we need to build both
107 # i86pc/genassym and intel/genassym.
108 #
109 all.prereq install.prereq def.prereq: genunix FRC
110 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
111
112 #
113 # i86pc lint libraries should be built first
114 #
115 lint.prereq: FRC
116 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
117
118 #
119 # Nothing to do for any other prerequisite targets.
120 #
121 %.prereq:
122
123 genunix: $(PRIVS_C)
124
125 modlintlib clean.lint: $(LINT_KMODS) $(XMODS)
126
127 $(KMODS) $(SUBDIRS) config: FRC
128 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
129
130 $(XMODS): FRC
131 @if [ -f $@/Makefile ]; then \
132 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
133 else \
134 true; \
135 fi
136
137 install_h check: FRC
138 @cd sys; pwd; $(MAKE) $(TARGET)
139 @cd asm; pwd; $(MAKE) $(TARGET)
140 @cd ia32/sys; pwd; $(MAKE) $(TARGET)
141 @cd amd64/sys; pwd; $(MAKE) $(TARGET)
142
143 #
144 # Work-around to disable acpica global crosscheck lint warnings
145 #
146 LGREP.intel = grep -v 'intel/io/acpica'
147
148 #
149 # Full kernel lint target.
150 #
151 LINT_TARGET = globallint
152
153 # workaround for multiply defined errors
154 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
155
156 globallint:
|