168
169 clobber: $(CLOBBER_DEPS)
170
171 lint: $(LINT_DEPS)
172
173 clean.lint: $(CLEAN_LINT_DEPS)
174
175 install: $(INSTALL_DEPS)
176
177 MAPFILE_32 = $(MAPFILE)
178 MAPFILE_64 = $(MAPFILE).amd64
179
180 MAPFILE_NAME = $(MAPFILE_$(CLASS))
181
182 $(UNIX_BIN): $(UNIX_O) $(MODSTUBS_O) $(MAPFILE_NAME) \
183 $(GENLIB) $(DTRACESTUBS) $(DBOOT_O)
184 $(LD) -dy -b -o $@ -e dboot_image -znointerp -M $(MAPFILE_NAME) \
185 $(UNIX_O) $(DBOOT_O) $(MODSTUBS_O) $(LIBOPTS) \
186 $(DTRACESTUBS)
187 $(MBH_PATCH) $(UNIX_BIN)
188 $(CTFMERGE_UNIQUIFY_AGAINST_GENUNIX)
189 $(POST_PROCESS)
190
191 $(UNIX_O): $(OBJECTS) $(OBJS_DIR)/vers.o
192 $(LD) -r -o $@ $(OBJECTS) $(OBJS_DIR)/vers.o
193
194 $(DBOOT_BIN): $(DBOOT_OBJS_DIR) $(DBOOT_OBJECTS) dboot/Mapfile.dboot
195 $(LD) -dn -e _start -M dboot/Mapfile.dboot \
196 -o $(DBOOT_BIN) $(DBOOT_OBJECTS)
197
198 $(DBOOT_O): $(DBOOT_BIN)
199 @echo " .data" > $(DBOOT_S)
200 @echo " .globl dboot_image" >> $(DBOOT_S)
201 @echo "dboot_image:" >> $(DBOOT_S)
202 $(ELFEXTRACT) $(DBOOT_BIN) >> $(DBOOT_S)
203 $(COMPILE.s) -o $(DBOOT_O) $(DBOOT_S)
204
205 $(DBOOT_OBJS_DIR):
206 -@mkdir -p $@ 2> /dev/null
207
208 #
|
168
169 clobber: $(CLOBBER_DEPS)
170
171 lint: $(LINT_DEPS)
172
173 clean.lint: $(CLEAN_LINT_DEPS)
174
175 install: $(INSTALL_DEPS)
176
177 MAPFILE_32 = $(MAPFILE)
178 MAPFILE_64 = $(MAPFILE).amd64
179
180 MAPFILE_NAME = $(MAPFILE_$(CLASS))
181
182 $(UNIX_BIN): $(UNIX_O) $(MODSTUBS_O) $(MAPFILE_NAME) \
183 $(GENLIB) $(DTRACESTUBS) $(DBOOT_O)
184 $(LD) -dy -b -o $@ -e dboot_image -znointerp -M $(MAPFILE_NAME) \
185 $(UNIX_O) $(DBOOT_O) $(MODSTUBS_O) $(LIBOPTS) \
186 $(DTRACESTUBS)
187 $(MBH_PATCH) $(UNIX_BIN)
188 $(CTFMERGE_MODULE)
189 $(POST_PROCESS)
190
191 $(UNIX_O): $(OBJECTS) $(OBJS_DIR)/vers.o
192 $(LD) -r -o $@ $(OBJECTS) $(OBJS_DIR)/vers.o
193
194 $(DBOOT_BIN): $(DBOOT_OBJS_DIR) $(DBOOT_OBJECTS) dboot/Mapfile.dboot
195 $(LD) -dn -e _start -M dboot/Mapfile.dboot \
196 -o $(DBOOT_BIN) $(DBOOT_OBJECTS)
197
198 $(DBOOT_O): $(DBOOT_BIN)
199 @echo " .data" > $(DBOOT_S)
200 @echo " .globl dboot_image" >> $(DBOOT_S)
201 @echo "dboot_image:" >> $(DBOOT_S)
202 $(ELFEXTRACT) $(DBOOT_BIN) >> $(DBOOT_S)
203 $(COMPILE.s) -o $(DBOOT_O) $(DBOOT_S)
204
205 $(DBOOT_OBJS_DIR):
206 -@mkdir -p $@ 2> /dev/null
207
208 #
|