Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / arch / i386-darwin / bootstrap / mmakefile.src
blob899a958132428e04799e36f6d4490ff5cfe9f303
1 # $Id$
2 include $(TOP)/config/make.cfg
4 TARGETDIR       := $(GENDIR)/$(CURDIR)
5 BOBJS           := $(TARGETDIR)/bootstrap.o $(TARGETDIR)/elfloader32.o 
6 FILES           := bootstrap elfloader32
7 KOBJS_DEVICES := $(KOBJSDIR)/timer_device.o
8 KOBJS_HIDD      := $(KOBJSDIR)/hiddclass_hidd.o $(KOBJSDIR)/irq_hidd.o\
9                            $(KOBJSDIR)/kbd_hidd.o $(KOBJSDIR)/mouse_hidd.o 
10 KOBJS_LIBS      :=      $(KOBJSDIR)/exec_library.o\
11                                 $(KOBJSDIR)/expansion_library.o \
12                                 $(KOBJSDIR)/boot_library.o \
13                                 $(KOBJSDIR)/dos_library.o \
14                                 $(KOBJSDIR)/aros_library.o \
15                                 $(KOBJSDIR)/utility_library.o\
16                                 $(KOBJSDIR)/keymap_library.o \
17                                 $(KOBJSDIR)/mathieeesingbas_library.o \
18                                 $(KOBJSDIR)/oop_library.o
19 K_RES           := $(KOBJSDIR)/kernel_resource.o 
20 KOBJS_HANDLERS := $(GENDIR)/arch/i386-darwin/devs/filesys/emul_handler/emul_handler.o
21 KOBJS := $(KOBJS_HANDLERS) $(KOBJS_LIBS) $(KOBJS_DEVICES) $(K_RES)
23 #this needs sdl.hidd
24 #                               $(KOBJSDIR)/graphics_library.o \
25 #                               $(KOBJSDIR)/layers_library.o \
26 #                               $(KOBJSDIR)/workbench_library.o
27 #                               $(KOBJSDIR)/intuition_library.o \
30 #MM kernel-bootstrap-darwin-i386: kernel kernel-kernel-darwin-i386-kobj  kernel-fs-emul-darwin-i386-kobj
31 #MM kernel-kernel-darwin-i386-kobj : includes kernel-kernel-darwin-i386-native kernel-kernel-darwin-i386-includes
33 kernel-kernel-darwin-i386-kobj : $(KOBJS)
35 kernel-bootstrap-darwin-i386: setup-darwin-i386 $(BINDIR)/boot/AROSBootstrap $(BINDIR)/boot/kernel
37 setup-darwin-i386 :
38         %mkdirs_q $(BINDIR)/boot $(OSGENDIR)/boot $(TARGETDIR)
40 $(BINDIR)/boot/kernel: setup-darwin-i386 $(KOBJS)
41         $(TARGET_LD) -Map $(OSGENDIR)/boot/kernel.map -T kernel.lds\
42           -o $@ $(KOBJS)\
43           -L$(LIBDIR) -lautoinit -llibinit -lamiga -larossupport -lrom -larosm -lhiddstubs
46 $(BINDIR)/boot/AROSBootstrap: $(BOBJS)
47         $(HOST_CC) -o $@ $(BOBJS)
48          
49 #MM
50 clean ::
51         -$(RM) $(TESTS)
53 $(TARGETDIR)/%.o : %.S
54         %compile_q opt="$(CFLAGS) -m32 -fomit-frame-pointer -nostdinc -nostdlib"
56 $(TARGETDIR)/%.d : %.c
57         %mkdepend_q
59 DEPS            := $(foreach f, $(FILES), $(TARGETDIR)/$(f).d)
60 -include $(DEPS)
62 $(TARGETDIR)/%.o : %.c
63         $(HOST_CC) -o $@ -c $< -I$(GENINCDIR) -I$(TOP)/rom/exec
65 #$(TARGETDIR)/%.o : %.S
66 #       %compile_q opt="$(CFLAGS)"
68 #$(TARGETDIR)/%.d : %.c
69 #       %mkdepend_q
72 %common