Re-enabled use of AROS.Boot file due to lack of general enthusiasm for
[tangerine.git] / arch / all-mingw32 / bootstrap / mmakefile.src
blob4b4459fc3127810d2bc220d6e0da2c17c2afc608
1 # $Id$
2 include $(TOP)/config/make.cfg
4 TARGETDIR       := $(GENDIR)/$(CURDIR)
6 BOBJS           := $(TARGETDIR)/bootstrap.o $(TARGETDIR)/elfloader32.o \
7                    $(TARGETDIR)/hostlib.o $(TARGETDIR)/debug.o         \
8                    $(TARGETDIR)/shutdown.o $(TARGETDIR)/icon.o
9 FILES           := bootstrap elfloader32 hostlib debug
11 KOBJS_DEVICES   := $(KOBJSDIR)/timer_device.o        $(KOBJSDIR)/gameport_device.o         \
12                    $(KOBJSDIR)/input_device.o        $(KOBJSDIR)/console_device.o          \
13                    $(KOBJSDIR)/keyboard_device.o
14 KOBJS_HIDD      := $(KOBJSDIR)/hiddclass_hidd.o      $(KOBJSDIR)/graphics_hidd.o           \
15                    $(KOBJSDIR)/wingdi_hidd.o
16 KOBJS_LIBS      := $(KOBJSDIR)/exec_library.o        $(KOBJSDIR)/expansion_library.o       \
17                    $(KOBJSDIR)/boot_library.o        $(KOBJSDIR)/dos_library.o             \
18                    $(KOBJSDIR)/utility_library.o     $(KOBJSDIR)/intuition_library.o       \
19                    $(KOBJSDIR)/keymap_library.o      $(KOBJSDIR)/cybergraphics_library.o   \
20                    $(KOBJSDIR)/oop_library.o         $(KOBJSDIR)/graphics_library.o        \
21                    $(KOBJSDIR)/layers_library.o
22 K_RES           := $(KOBJSDIR)/kernel_resource.o     $(KOBJSDIR)/hostlib_resource.o        \
23                    $(KOBJSDIR)/battclock_resource.o                                        \
24                    $(KOBJSDIR)/bootmenu_resource.o   $(KOBJSDIR)/bootloader_resource.o     \
25                    $(KOBJSDIR)/dosboot_resource.o
26 KOBJS_HANDLERS  := $(KOBJSDIR)/emul_handler.o        $(KOBJSDIR)/packet_handler.o          \
27                    $(KOBJSDIR)/amberram_handler.o    $(KOBJSDIR)/nil_handler.o             \
28                    $(KOBJSDIR)/con_handler.o
30 KOBJS := $(K_RES) $(KOBJS_HANDLERS) $(KOBJS_LIBS) $(KOBJS_DEVICES) $(KOBJS_HIDD)
32 #MM- AROS-mingw32-i386: kernel-link-mingw32 workbench-mingw32 kernel-bootstrap-mingw32 arch-common-boot-generatebootsig
33 #MM kernel-link-mingw32: kernel-kernel-mingw32-kobj         \
34 #MM                      kernel-bootloader-mingw32-kobj     \
35 #MM                      kernel-hostlib-mingw32-kobj        \
36 #MM                      kernel                             \
37 #MM                      kernel-fs-emul-mingw32-kobj        \
38 #MM                      kernel-fs-packet-kobj              \
39 #MM                      kernel-dosboot-kobj                \
40 #MM                      kernel-aros                        \
41 #MM                      workbench-hidd-graphics-kobj       \
42 #MM                      kernel-hidd-wingdi-kobj            \
43 #MM                      contrib-amberram-kobj
45 #MM- workbench-mingw32: kernel-mathffp         \
46 #MM                     kernel-mathieeesingbas \
47 #MM                     kernel-workbench
49 #MM
50 kernel-bootstrap-mingw32: setup-mingw32 $(BINDIR)/boot/AROSBootstrap.exe
52 #MM
53 kernel-link-mingw32: $(BINDIR)/boot/aros-mingw32
54 #MM
55 kernel-link-mingw32-quick: $(BINDIR)/boot/aros-mingw32
57 setup-mingw32 :
58         %mkdirs_q $(BINDIR)/boot $(OSGENDIR)/boot $(TARGETDIR)
60 $(BINDIR)/boot/aros-mingw32: setup-mingw32 $(KOBJS)
61         $(TARGET_CC) $(GENMAP) $(OSGENDIR)/boot/kernel.map -Wl,-T,kernel.lds\
62           -o $@ $(KOBJS) $(NOSTARTUP_LDFLAGS)\
63           -L$(LIBDIR) -lautoinit -llibinit -lamiga -larossupport -lrom -larosm -lhiddstubs -lhiddgraphicsstubs
65 $(TARGETDIR)/icon.o: icon.rc icon.ico
66         $(KERNEL_RESCOMP) --output-format=coff icon.rc $@
68 $(BINDIR)/boot/AROSBootstrap.exe: $(BOBJS)
69         $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $(BOBJS)
71 #MM
72 clean ::
73         -$(RM) $(TESTS)
75 $(TARGETDIR)/%.d : %.c
76         %mkdepend_q cc="$(KERNEL_CC) $(KERNEL_CFLAGS) -I$(GENINCDIR)"
78 DEPS            := $(foreach f, $(FILES), $(TARGETDIR)/$(f).d)
79 -include $(DEPS)
81 $(TARGETDIR)/%.o : %.c
82         $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ -c $< -I$(GENINCDIR) -I$(TOP)/rom/exec
84 %common