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