26 # dependent modules for the i86pc architecture.
27 #
28
29 UTSBASE = ..
30
31 include Makefile.i86pc
32
33 #
34 # The following are x86 specific (rather than i86pc) specific modules
35 # which are required for the i86pc kernel to completely lint. They are
36 # not involved in the build in any other way. In order to minimize
37 # build time, it is assumed that they are up to date.
38 #
39 INTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
40
41 INTEL_LINTS = genunix
42
43 LINT_LIBS = \
44 $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
45 $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
46 $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
47 $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
48
49 I86PC_LINTS = dr drmach_acpi
50
51 #
52 #
53 #
54 def := TARGET= def
55 all := TARGET= all
56 install := TARGET= install
57 install_h := TARGET= install_h
58 clean := TARGET= clean
59 clobber := TARGET= clobber
60 lint := TARGET= lint
61 lintlib := TARGET= lintlib
62 machmodlintlib := TARGET= modlintlib
63 modlist := TARGET= modlist
64 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
65 clean.lint := TARGET= clean.lint
66 check := TARGET= check
67
68 .KEEP_STATE:
69
70 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
71 modlist modlist.intel
72
73 INITIAL_TARGETS = \
74 genassym \
75 unix \
76 cpu/scripts
77
78 def all clean clobber clean.lint: setup genassym unix .WAIT \
79 $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
80
81 install: install_platforms setup genassym unix .WAIT \
82 $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
83
84 # Need to clean in here too because of lint.
85 clean: $(I86PC_LINTS)
86
87 # list the modules under i86pc.
88 modlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
89 $(IMPLEMENTATIONS)
90
91 # list the modules for Install -k i86pc.
92 modlist.karch: modlist modlist.intel
93
94 modlist.intel:
95 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
96
97 lintlib: unix
98
99 modlintlib: $(KMODS) $(CLOSED_KMODS)
100
101 genassym unix $(KMODS): FRC
102 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
103
104 setup: FRC
105 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
106
107 $(IMPLEMENTATIONS): FRC
108 @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
109
110 $(XMODS): FRC
111 @if [ -f $@/Makefile ]; then \
112 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
113 else \
114 true; \
115 fi
116
117 $(CLOSED_KMODS): FRC
118 cd $(CLOSED)/uts/i86pc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
119
120 $(CLOSED_XMODS): FRC
121 @if [ -f $(CLOSED)/uts/i86pc/$@/Makefile ]; then \
122 cd $(CLOSED)/uts/i86pc/$@; pwd; \
123 $(MAKE) $(NO_STATE) $(TARGET); \
124 else \
125 true; \
126 fi
127
128 install_h check: $(IMPLEMENTATIONS) FRC
129 @cd sys; pwd; $(MAKE) $(TARGET)
130
131 #
132 # Definitions for the /platform directory aliases.
133 # Currently none for i86pc.
134 #
135 PLAT_LINKS =
136
137 #
138 # Make the /platform directories. This is hardwired here because
139 # the first stage of the project (KBI) only implements the userland
140 # changes, but the only reasonable place to record the aliases is
141 # here in kernel land.
142 #
143 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
144 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
145 $(OEM_USR_PLAT_LINKS)
146
147 #
152 # workaround for multiply defined errors
153 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
154
155 globallint:
156 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
157 @-$(LINT) $(LINTFLAGS) $(LINT_LIB) $(LINT_LIBS) 2>&1 | $(LGREP.2)
158
159 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS) \
160 $(IMPLEMENTATIONS)
161
162 $(INTEL_LINTS): FRC
163 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
164
165 include ../Makefile.targ
166
167 #
168 # Cross-reference customization: build a cross-reference over all of the
169 # i86pc-related directories.
170 #
171 XRDIRS = ../i86pc ../intel ../common
172 $(CLOSED_BUILD)XRDIRS += ../../../closed/uts/intel ../../../closed/uts/common
173
174 XRPRUNE = sun4u sun4
175
176 cscope.out tags: FRC
177 $(XREF) -x $@
|
26 # dependent modules for the i86pc architecture.
27 #
28
29 UTSBASE = ..
30
31 include Makefile.i86pc
32
33 #
34 # The following are x86 specific (rather than i86pc) specific modules
35 # which are required for the i86pc kernel to completely lint. They are
36 # not involved in the build in any other way. In order to minimize
37 # build time, it is assumed that they are up to date.
38 #
39 INTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
40
41 INTEL_LINTS = genunix
42
43 LINT_LIBS = \
44 $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
45 $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
46 $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
47
48 I86PC_LINTS = dr drmach_acpi
49
50 #
51 #
52 #
53 def := TARGET= def
54 all := TARGET= all
55 install := TARGET= install
56 install_h := TARGET= install_h
57 clean := TARGET= clean
58 clobber := TARGET= clobber
59 lint := TARGET= lint
60 lintlib := TARGET= lintlib
61 machmodlintlib := TARGET= modlintlib
62 modlist := TARGET= modlist
63 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
64 clean.lint := TARGET= clean.lint
65 check := TARGET= check
66
67 .KEEP_STATE:
68
69 .PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
70
71 INITIAL_TARGETS = \
72 genassym \
73 unix \
74 cpu/scripts
75
76 def all clean clobber clean.lint: setup genassym unix .WAIT \
77 $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
78
79 install: install_platforms setup genassym unix .WAIT \
80 $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
81
82 # Need to clean in here too because of lint.
83 clean: $(I86PC_LINTS)
84
85 # list the modules under i86pc.
86 modlist: unix $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
87
88 # list the modules for Install -k i86pc.
89 modlist.karch: modlist modlist.intel
90
91 modlist.intel:
92 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
93
94 lintlib: unix
95
96 modlintlib: $(KMODS)
97
98 genassym unix $(KMODS): FRC
99 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
100
101 setup: FRC
102 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
103
104 $(IMPLEMENTATIONS): FRC
105 @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
106
107 $(XMODS): FRC
108 @if [ -f $@/Makefile ]; then \
109 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
110 else \
111 true; \
112 fi
113
114 install_h check: $(IMPLEMENTATIONS) FRC
115 @cd sys; pwd; $(MAKE) $(TARGET)
116
117 #
118 # Definitions for the /platform directory aliases.
119 # Currently none for i86pc.
120 #
121 PLAT_LINKS =
122
123 #
124 # Make the /platform directories. This is hardwired here because
125 # the first stage of the project (KBI) only implements the userland
126 # changes, but the only reasonable place to record the aliases is
127 # here in kernel land.
128 #
129 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
130 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
131 $(OEM_USR_PLAT_LINKS)
132
133 #
138 # workaround for multiply defined errors
139 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
140
141 globallint:
142 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
143 @-$(LINT) $(LINTFLAGS) $(LINT_LIB) $(LINT_LIBS) 2>&1 | $(LGREP.2)
144
145 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS) \
146 $(IMPLEMENTATIONS)
147
148 $(INTEL_LINTS): FRC
149 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
150
151 include ../Makefile.targ
152
153 #
154 # Cross-reference customization: build a cross-reference over all of the
155 # i86pc-related directories.
156 #
157 XRDIRS = ../i86pc ../intel ../common
158
159 XRPRUNE = sun4u sun4
160
161 cscope.out tags: FRC
162 $(XREF) -x $@
|