2 include $(TOP)/config/make.cfg
4 #MM kernel-kernel-darwin-i386 : includes kernel-kernel-darwin-i386-includes kernel-kernel-darwin-i386-native
5 #MM kernel-kernel-darwin-i386-native :
7 %build_module mmake=kernel-kernel-darwin-i386 \
8 modname=kernel modtype=resource \
9 cflags="$(CFLAGS) -I$(TOP)/rom/exec" \
10 files="kernel_init kernel_hostlib aros" uselibs="rom"
12 NATIVE_DIR := $(TARGETDIR)/native
13 NATIVE_OBJS := $(NATIVE_DIR)/kernel_alert.o \
14 $(NATIVE_DIR)/kernel_hostlib_native.o \
15 $(NATIVE_DIR)/kernel_init_native.o \
16 $(NATIVE_DIR)/kernel_scheduler.o
19 SO_LDFLAGS := -dynamiclib
21 kernel-kernel-darwin-i386-native: $(NATIVE_DIR)/kernel_native$(SOEXT)
23 $(NATIVE_DIR)/kernel_native$(SOEXT): $(NATIVE_OBJS)
24 $(HOST_CC) -o $@ $(SO_LDFLAGS) $(NATIVE_OBJS)
29 $(NATIVE_DIR)/%.o : native/%.c $(NATIVE_DIR)
30 $(HOST_CC) -o $@ -c $< -I$(TOP)/rom/exec -DNATIVE