2 include $(TOP)/config/make.cfg
4 USER_INCLUDES := -I$(GENINCDIR)
6 #MM kernel-fs-emul-darwin-i386-linklib : includes linklibs kernel-fs-emul-darwin-i386-native
7 #MM kernel-fs-emul-darwin-i386-kobj : includes linklibs kernel-fs-emul-darwin-i386-native kernel-fs-emul-darwin-i386
8 #MM kernel-fs-emul-darwin-i386-native
10 kernel-fs-emul-darwin-i386-kobj : $(GENDIR)/arch/i386-darwin/devs/filesys/emul_handler/emul_handler.o
12 %build_module mmake=kernel-fs-emul-darwin-i386 \
13 modname=emul modtype=device modsuffix=handler \
16 NATIVE_DIR := $(TARGETDIR)/native
17 NATIVE_OBJS := $(NATIVE_DIR)/emul_handler_native_init.o \
18 $(NATIVE_DIR)/emul_handler_native.o
20 SO_LDFLAGS := -dynamiclib
22 kernel-fs-emul-darwin-i386-native: $(NATIVE_DIR)/emul_handler_native$(SOEXT)
24 $(NATIVE_DIR)/emul_handler_native$(SOEXT): $(NATIVE_OBJS)
25 $(HOST_CC) -o $@ $(SO_LDFLAGS) $(NATIVE_OBJS)
30 $(NATIVE_DIR)/%.o : %.c $(NATIVE_DIR)
31 $(HOST_CC) -o $@ -c $< -I$(GENINCDIR) -I$(TOP)/rom/exec