revert between 56095 -> 55830 in arch
[AROS.git] / arch / i386-pc / kernel / mmakefile.src
blobec5d76bef5ac761662c4a5dd1a3077b6f78579c3
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 FILES    := \
6              kernel_startup \
7              kernel_debug \
8              platform_init \
9              kernel_cpu \
10              utils
11 FUNCS   := 
12 ASMFILES  := \
13              core_interrupts
15 MAINDIR := rom/kernel
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
24 %build_archspecific \
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
31 # $(GENDIR)/$(CURDIR)
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)
48 %common