3 include $(TOP)/config/make.cfg
5 #MM kernel-link-emul : kernel-objs
6 kernel-link-emul : $(BINDIR)/aros
9 kernel-link-emul-quick : kernel-link-emul
11 KLIBS := exec boot aros dos graphics utility intuition keymap mathffp \
12 mathieeesingbas expansion oop layers workbench cybergraphics
13 KDEVS := timer input keyboard console gameport
14 KHNDLRS := con nil packet emul ram
15 KHIDDS := hiddclass unixio parallel serial
16 ifeq ("$(AROS_HOST_ARCH)","linux")
18 ifeq ("$(AROS_HOST_CPU)","i386")
19 KHIDDS += pci pcilinux
21 ifeq ("$(AROS_HOST_CPU)","x86_64")
22 KHIDDS += pci pcilinux
25 KRSRCS := battclock hostlib
26 ifeq ($(ENABLE_DBUS),1)
30 KOBJS := $(addprefix $(KOBJSDIR)/,$(addsuffix _library.o ,$(KLIBS) )) \
31 $(addprefix $(KOBJSDIR)/,$(addsuffix _device.o ,$(KDEVS) )) \
32 $(addprefix $(KOBJSDIR)/,$(addsuffix _handler.o ,$(KHNDLRS))) \
33 $(addprefix $(KOBJSDIR)/,$(addsuffix _hidd.o ,$(KHIDDS) )) \
34 $(addprefix $(KOBJSDIR)/,$(addsuffix _resource.o,$(KRSRCS) ))
37 $(LIBDIR)/libamiga.a \
38 $(LIBDIR)/libarossupport.a \
39 $(LIBDIR)/libhiddgraphicsstubs.a \
40 $(LIBDIR)/libhiddstubs.a \
41 $(LIBDIR)/libautoinit.a \
42 $(LIBDIR)/liblibinit.a
45 -larossupport -lhiddgraphicsstubs -lhiddstubs -lamiga -lautoinit -llibinit
47 USER_CFLAGS := -I$(GENINCDIR) -D__AROS__
48 $(BINDIR)/aros: $(GENDIR)/aros.o $(DEP_LIBS) $(KOBJS)
49 $(HOST_CC) $(CFLAGS) $(HOST_LDFLAGS) -Dmain=submain $< $(KOBJS) $(LIBS) \
50 -o $@ $(KERNEL_LDFLAGS) $(DBUS_LIBFLAGS)
52 $(GENDIR)/aros.o : aros.c
53 $(HOST_CC) $(CFLAGS) -Dmain=submain $< -c -o $@