139 # Default build targets.
140 #
141 .KEEP_STATE:
142
143 def: $(DEF_DEPS)
144
145 all: $(ALL_DEPS)
146
147 clean: $(CLEAN_DEPS)
148
149 clobber: $(CLOBBER_DEPS)
150
151 lint: $(LINT_DEPS)
152
153 modlintlib: $(MODLINTLIB_DEPS)
154
155 clean.lint: $(CLEAN_LINT_DEPS)
156
157 install: $(INSTALL_DEPS)
158
159 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
160 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
161
162 $(IPCTF_TARGET) ipctf_target: FRC
163 @cd $(IPDRV_DIR); pwd; $(MAKE) ipctf.$(OBJS_DIR)
164 @pwd
165
166 $(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
167 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
168 $(CTFMERGE_GENUNIX_MERGE)
169 $(POST_PROCESS)
170
171 #
172 # Include common targets.
173 #
174 include $(UTSBASE)/intel/Makefile.targ
175
176 #
177 # Software workarounds for hardware "features".
178 #
179 include $(UTSBASE)/i86pc/Makefile.workarounds
180
|
139 # Default build targets.
140 #
141 .KEEP_STATE:
142
143 def: $(DEF_DEPS)
144
145 all: $(ALL_DEPS)
146
147 clean: $(CLEAN_DEPS)
148
149 clobber: $(CLOBBER_DEPS)
150
151 lint: $(LINT_DEPS)
152
153 modlintlib: $(MODLINTLIB_DEPS)
154
155 clean.lint: $(CLEAN_LINT_DEPS)
156
157 install: $(INSTALL_DEPS)
158
159 # Due to what seems to be an issue in GCC 4 generated DWARF containing
160 # symbolic relocations against non-allocatable .debug sections, libgenunix.so
161 # must be built from a stripped object, thus we create an intermediary
162 # libgenunix.o we can safely strip.
163 LIBGENUNIX_O = $(OBJS_DIR)/libgenunix.o
164 CLEANFILES += $(LIBGENUNIX_O)
165
166 $(LIBGENUNIX_O): $(OBJECTS)
167 $(LD) -r -o $(OBJS_DIR)/libgenunix.o $(OBJECTS)
168 $(STRIP) -x $(OBJS_DIR)/libgenunix.o
169
170 $(LIBGEN): $(LIBGENUNIX_O) $(LIBSTUBS)
171 $(BUILD.SO) $(LIBGENUNIX_O) $(LIBSTUBS)
172
173 $(IPCTF_TARGET) ipctf_target: FRC
174 @cd $(IPDRV_DIR); pwd; $(MAKE) ipctf.$(OBJS_DIR)
175 @pwd
176
177 $(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
178 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
179 $(CTFMERGE_GENUNIX_MERGE)
180 $(POST_PROCESS)
181
182 #
183 # Include common targets.
184 #
185 include $(UTSBASE)/intel/Makefile.targ
186
187 #
188 # Software workarounds for hardware "features".
189 #
190 include $(UTSBASE)/i86pc/Makefile.workarounds
191
|