2 include $(TOP)/config/make.cfg
4 #MM kernel-kernel-mingw32 : includes linklibs kernel-kernel-mingw32-native
5 #MM kernel-kernel-mingw32-kobj : includes linklibs kernel-kernel-mingw32-native
7 %build_module mmake=kernel-kernel-mingw32 \
8 modname=kernel modtype=resource \
9 cflags="$(CFLAGS) -I$(TOP)/rom/exec" \
10 files="kernel_init debug intr scheduler mmu" uselibs="rom"
12 NATIVE_BINDIR := $(BINDIR)/Libs/Host
13 NATIVE_DIR := $(GENDIR)/native
14 NATIVE_OBJS := $(NATIVE_DIR)/host_intr.o $(NATIVE_DIR)/host_scheduler.o
19 kernel-kernel-mingw32-native: $(NATIVE_BINDIR)/kernel$(SOEXT)
21 $(NATIVE_BINDIR)/kernel$(SOEXT): $(NATIVE_OBJS) $(NATIVE_BINDIR)
22 $(KERNEL_CC) $(KERNEL_CFLAGS) $(SO_LDFLAGS) -o $@ $(NATIVE_OBJS) -Wl,--out-implib,$(NATIVE_DIR)/libkernel.a
25 mkdir -p $(NATIVE_BINDIR)
30 $(NATIVE_DIR)/%.o : %.c $(NATIVE_DIR)
31 $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ -c $< -I$(GENINCDIR) -I$(TOP)/rom/exec -I$(TOP)/arch/all-mingw32/exec