277 #
278
279 KRTLD_INC_PATH = -I$(UTSBASE)/common/krtld -I$(UTSBASE)/intel/sys
280 KRTLD_INC_PATH += -I$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld
281
282 KRTLD_CPPFLAGS = -D_KRTLD -DELF_TARGET_AMD64 -DMODDIR_SUFFIX=\"amd64\"
283
284 $(OBJS_DIR)/%.o: $(UTSBASE)/common/krtld/%.c
285 $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
286 $(CTFCONVERT_O)
287
288 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
289 $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
290 $(CTFCONVERT_O)
291
292 #
293 # _DBOOT indicates that krtld is called from a dboot ELF section
294 #
295 $(OBJS_DIR)/kobj.o := CPPFLAGS += -D_DBOOT
296
297 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
298 $(COMPILE.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
299
300 $(OBJS_DIR)/%.o: $(SRC)/common/util/$(SUBARCH_DIR)/%.c
301 $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
302 $(CTFCONVERT_O)
303
304
305 #
306 # Section 1b: Lint `object' build rules.
307 #
308 $(LINTS_DIR)/%.ln: $(SRC)/common/fs/%.c
309 @($(LHEAD) $(LINT.c) $< $(LTAIL))
310
311 $(LINTS_DIR)/%.ln: $(SRC)/common/util/i386/%.s
312 @($(LHEAD) $(LINT.s) $< $(LTAIL))
313
314 $(LINTS_DIR)/%.ln: $(UTSBASE)/intel/brand/sn1/%.s
315 @($(LHEAD) $(LINT.s) $< $(LTAIL))
316
|
277 #
278
279 KRTLD_INC_PATH = -I$(UTSBASE)/common/krtld -I$(UTSBASE)/intel/sys
280 KRTLD_INC_PATH += -I$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld
281
282 KRTLD_CPPFLAGS = -D_KRTLD -DELF_TARGET_AMD64 -DMODDIR_SUFFIX=\"amd64\"
283
284 $(OBJS_DIR)/%.o: $(UTSBASE)/common/krtld/%.c
285 $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
286 $(CTFCONVERT_O)
287
288 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
289 $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
290 $(CTFCONVERT_O)
291
292 #
293 # _DBOOT indicates that krtld is called from a dboot ELF section
294 #
295 $(OBJS_DIR)/kobj.o := CPPFLAGS += -D_DBOOT
296
297 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/ml/%.s
298 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
299
300
301 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
302 $(COMPILE.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
303
304 $(OBJS_DIR)/%.o: $(SRC)/common/util/$(SUBARCH_DIR)/%.c
305 $(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
306 $(CTFCONVERT_O)
307
308
309 #
310 # Section 1b: Lint `object' build rules.
311 #
312 $(LINTS_DIR)/%.ln: $(SRC)/common/fs/%.c
313 @($(LHEAD) $(LINT.c) $< $(LTAIL))
314
315 $(LINTS_DIR)/%.ln: $(SRC)/common/util/i386/%.s
316 @($(LHEAD) $(LINT.s) $< $(LTAIL))
317
318 $(LINTS_DIR)/%.ln: $(UTSBASE)/intel/brand/sn1/%.s
319 @($(LHEAD) $(LINT.s) $< $(LTAIL))
320
|