only bring in as many sdl things as are strictly necessary
[tangerine.git] / arch / all-mingw32 / bootstrap / mmakefile.src
blob4c022956016c6c70daccc638756ae0969314d56b
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      $(KOBJSDIR)/aros_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-hosted 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                      workbench-hidd-graphics-kobj       \
40 #MM                      kernel-hidd-wingdi-kobj            \
41 #MM                      contrib-amberram-kobj
43 #MM
44 kernel-bootstrap-mingw32: setup-mingw32 $(BINDIR)/boot/AROSBootstrap.exe
46 #MM
47 kernel-link-mingw32: $(BINDIR)/boot/aros-mingw32
48 #MM
49 kernel-link-mingw32-quick: $(BINDIR)/boot/aros-mingw32
51 setup-mingw32 :
52         %mkdirs_q $(BINDIR)/boot $(OSGENDIR)/boot $(TARGETDIR)
54 $(BINDIR)/boot/aros-mingw32: setup-mingw32 $(KOBJS)
55         $(TARGET_CC) $(GENMAP) $(OSGENDIR)/boot/kernel.map \
56           -o $@ $(KOBJS) $(NOSTARTUP_LDFLAGS)\
57           -L$(LIBDIR) -lautoinit -llibinit -lamiga -larossupport -lrom -larosm -lhiddstubs -lhiddgraphicsstubs
59 $(TARGETDIR)/icon.o: icon.rc icon.ico
60         $(KERNEL_RESCOMP) --output-format=coff icon.rc $@
62 $(BINDIR)/boot/AROSBootstrap.exe: $(BOBJS)
63         $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ $(BOBJS)
65 #MM
66 clean ::
67         -$(RM) $(TESTS)
69 $(TARGETDIR)/%.d : %.c
70         %mkdepend_q cc="$(KERNEL_CC) $(KERNEL_CFLAGS) -I$(GENINCDIR)"
72 DEPS            := $(foreach f, $(FILES), $(TARGETDIR)/$(f).d)
73 -include $(DEPS)
75 $(TARGETDIR)/%.o : %.c
76         $(KERNEL_CC) $(KERNEL_CFLAGS) -o $@ -c $< -I$(GENINCDIR) -I$(TOP)/rom/exec
78 %common