make fat.handler build again with debug enabled
[tangerine.git] / arch / i386-darwin / devs / filesys / emul_handler / mmakefile.src
blob95ca1f266a82889cd9d0bb742e344991a5043e0e
1 #   $Id$
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 \
14   files=emul_handler
16 NATIVE_DIR := $(TARGETDIR)/native
17 NATIVE_OBJS :=  $(NATIVE_DIR)/emul_handler_native_init.o \
18                                 $(NATIVE_DIR)/emul_handler_native.o
19 SOEXT := .dylib
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)
27 $(NATIVE_DIR) :
28         mkdir $(NATIVE_DIR)
29          
30 $(NATIVE_DIR)/%.o : %.c $(NATIVE_DIR)
31         $(HOST_CC) -o $@ -c $< -I$(GENINCDIR) -I$(TOP)/rom/exec