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 = $(LINT_LIB) \
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 #
50 #
51 #
52 def := TARGET= def
53 all := TARGET= all
54 install := TARGET= install
55 install_h := TARGET= install_h
56 clean := TARGET= clean
57 clobber := TARGET= clobber
58 lint := TARGET= lint
59 lintlib := TARGET= lintlib
60 machmodlintlib := TARGET= modlintlib
61 modlist := TARGET= modlist
62 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
63 clean.lint := TARGET= clean.lint
64 check := TARGET= check
65
66 .KEEP_STATE:
67
68 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
69 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) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
78
79 install: install_platforms setup genassym unix .WAIT \
80 $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
81
82 # list the modules under i86pc.
83 modlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
84 $(IMPLEMENTATIONS)
85
86 # list the modules for Install -k i86pc.
87 modlist.karch: modlist modlist.intel
88
89 modlist.intel:
90 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
91
92 lintlib: unix
93
94 modlintlib: $(KMODS) $(CLOSED_KMODS)
95
96 genassym unix $(KMODS): FRC
97 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
98
99 setup: FRC
100 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
101
102 $(IMPLEMENTATIONS): FRC
103 @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
104
105 $(XMODS): FRC
106 @if [ -f $@/Makefile ]; then \
107 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
108 else \
109 true; \
110 fi
111
112 $(CLOSED_KMODS): FRC
113 cd $(CLOSED)/uts/i86pc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
114
115 $(CLOSED_XMODS): FRC
116 @if [ -f $(CLOSED)/uts/i86pc/$@/Makefile ]; then \
117 cd $(CLOSED)/uts/i86pc/$@; pwd; \
118 $(MAKE) $(NO_STATE) $(TARGET); \
119 else \
120 true; \
121 fi
122
123 install_h check: $(IMPLEMENTATIONS) FRC
124 @cd sys; pwd; $(MAKE) $(TARGET)
125
126 #
127 # Definitions for the /platform directory aliases.
128 # Currently none for i86pc.
129 #
130 PLAT_LINKS =
131
132 #
133 # Make the /platform directories. This is hardwired here because
134 # the first stage of the project (KBI) only implements the userland
135 # changes, but the only reasonable place to record the aliases is
136 # here in kernel land.
137 #
138 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
139 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
140 $(OEM_USR_PLAT_LINKS)
141
142 #
147 # workaround for multiply defined errors
148 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
149
150 globallint:
151 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
152 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
153
154 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS) \
155 $(IMPLEMENTATIONS)
156
157 $(INTEL_LINTS): FRC
158 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
159
160 include ../Makefile.targ
161
162 #
163 # Cross-reference customization: build a cross-reference over all of the
164 # i86pc-related directories.
165 #
166 XRDIRS = ../i86pc ../intel ../common
167 $(CLOSED_BUILD)XRDIRS += ../../../closed/uts/intel ../../../closed/uts/common
168
169 XRPRUNE = sun4u sun4
170
171 cscope.out tags: FRC
172 $(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 = $(LINT_LIB) \
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 #
49 #
50 #
51 def := TARGET= def
52 all := TARGET= all
53 install := TARGET= install
54 install_h := TARGET= install_h
55 clean := TARGET= clean
56 clobber := TARGET= clobber
57 lint := TARGET= lint
58 lintlib := TARGET= lintlib
59 machmodlintlib := TARGET= modlintlib
60 modlist := TARGET= modlist
61 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
62 clean.lint := TARGET= clean.lint
63 check := TARGET= check
64
65 .KEEP_STATE:
66
67 .PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
68
69 INITIAL_TARGETS = \
70 genassym \
71 unix \
72 cpu/scripts
73
74 def all clean clobber clean.lint: setup genassym unix .WAIT \
75 $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
76
77 install: install_platforms setup genassym unix .WAIT \
78 $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
79
80 # list the modules under i86pc.
81 modlist: unix $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
82
83 # list the modules for Install -k i86pc.
84 modlist.karch: modlist modlist.intel
85
86 modlist.intel:
87 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
88
89 lintlib: unix
90
91 modlintlib: $(KMODS)
92
93 genassym unix $(KMODS): FRC
94 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
95
96 setup: FRC
97 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
98
99 $(IMPLEMENTATIONS): FRC
100 @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
101
102 $(XMODS): FRC
103 @if [ -f $@/Makefile ]; then \
104 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
105 else \
106 true; \
107 fi
108
109 install_h check: $(IMPLEMENTATIONS) FRC
110 @cd sys; pwd; $(MAKE) $(TARGET)
111
112 #
113 # Definitions for the /platform directory aliases.
114 # Currently none for i86pc.
115 #
116 PLAT_LINKS =
117
118 #
119 # Make the /platform directories. This is hardwired here because
120 # the first stage of the project (KBI) only implements the userland
121 # changes, but the only reasonable place to record the aliases is
122 # here in kernel land.
123 #
124 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
125 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
126 $(OEM_USR_PLAT_LINKS)
127
128 #
133 # workaround for multiply defined errors
134 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
135
136 globallint:
137 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
138 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
139
140 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS) \
141 $(IMPLEMENTATIONS)
142
143 $(INTEL_LINTS): FRC
144 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
145
146 include ../Makefile.targ
147
148 #
149 # Cross-reference customization: build a cross-reference over all of the
150 # i86pc-related directories.
151 #
152 XRDIRS = ../i86pc ../intel ../common
153
154 XRPRUNE = sun4u sun4
155
156 cscope.out tags: FRC
157 $(XREF) -x $@
|