3 include $(SRCDIR)/config/aros.cfg
16 USER_AFLAGS := $(AFLAGS) -isystem $(GENINCDIR) -I$(SRCDIR)/arch/all-pc/kernel
17 USER_INCLUDES := $(PRIV_KERNEL_INCLUDES) $(PRIV_EXEC_INCLUDES) \
18 -I$(SRCDIR)/arch/all-native/kernel \
19 -isystem $(SRCDIR)/arch/all-native/bootconsole/include
21 #MM kernel-kernel-pc-i386 : kernel-pc-acpica-includes includes-asm_h-i386 linklibs-bootconsole
25 mainmmake=kernel-kernel modname=kernel maindir=$(MAINDIR) \
26 arch=pc-i386 files="$(FILES) $(FUNCS)" asmfiles=$(ASMFILES) aflags=$(USER_AFLAGS)
28 # Build smpboot.bin.o in $(GENDIR)/$(MAINDIR)/arch, where it will be picked up
29 # by the linker automatically (make.tmpl macros link in everything that is found there)
30 # However we don't want our intermediate files to be picked up, so we put them in
33 OBJDIR := $(GENDIR)/$(CURDIR)
34 ARCHOBJDIR := $(GENDIR)/$(MAINDIR)/kernel/arch
36 kernel-kernel-pc-i386 :: $(ARCHOBJDIR)/smpboot.bin.o
37 kernel-kernel-pc-i386-quick :: $(ARCHOBJDIR)/smpboot.bin.o
38 kernel-kernel-pc-i386-kobj :: $(ARCHOBJDIR)/smpboot.bin.o
39 kernel-kernel-pc-i386-kobj-quick :: $(ARCHOBJDIR)/smpboot.bin.o
41 %rule_assemble_multi basenames=smpbootstrap targetdir=$(OBJDIR)
42 %rule_link_binary file=$(ARCHOBJDIR)/smpboot.bin.o name=smpbootstrap objs=$(OBJDIR)/smpbootstrap.o ldflags="-m elf_i386"
44 $(OBJDIR)/smpbootstrap.o : | $(OBJDIR)
46 GLOB_MKDIRS += $(ARCHOBJDIR) $(OBJDIR)