Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / i386-darwin / kernel / mmakefile.src
blob24ac9906f77bd469b6c5765973592009391c5648
1 # $Id$
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
17                                 
18 SOEXT := .dylib
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)
26 $(NATIVE_DIR) :
27         mkdir $(NATIVE_DIR)
28          
29 $(NATIVE_DIR)/%.o : native/%.c $(NATIVE_DIR)
30         $(HOST_CC) -o $@ -c $< -I$(TOP)/rom/exec -DNATIVE