1 include $(SRCDIR)/config/aros.cfg
4 USELIBS := hiddstubs amiga arossupport rom arosm autoinit libinit gcc1
5 LIBS := $(addprefix -l,$(USELIBS))
6 DEPLIBS := $(addprefix $(LIBDIR)/lib,$(addsuffix .a,$(USELIBS)))
8 KLIBS := exec aros dos graphics utility intuition keymap \
9 mathieeesingbas expansion oop layers workbench cybergraphics
11 KDEVS := timer input keyboard console
12 KHNDLRS := con nil ram
13 KHIDDS := hiddclass serial touchscreen irq graphics
14 KRSRCS := battclock misc
16 KOBJS := $(addprefix $(KOBJSDIR)/,$(addsuffix _library.o ,$(KLIBS) )) \
17 $(addprefix $(KOBJSDIR)/,$(addsuffix _device.o ,$(KDEVS) )) \
18 $(addprefix $(KOBJSDIR)/,$(addsuffix _handler.o ,$(KHNDLRS))) \
19 $(addprefix $(KOBJSDIR)/,$(addsuffix _hidd.o ,$(KHIDDS) )) \
20 $(addprefix $(KOBJSDIR)/,$(addsuffix _resource.o,$(KRSRCS) )) \
21 $(addprefix $(KOBJSDIR)/,$(addsuffix _driver.o ,$(KDRVRS) ))
23 #MM kernel-link-pp-m68k : setup-pp-m68k
24 kernel-link-pp-m68k : $(BINDIR)/aros-pp-m68k $(BINDIR)/aros.bin
26 $(BINDIR)/aros-pp-m68k : entrycode.o $(OBJS) $(DEPLIBS)
27 @$(ECHO) Linking $@...
28 $(CC) $^ $(KOBJS) -o $@ -Wl,-T,linkerscript -L$(LIBDIR) $(LIBS) -nostdlib
29 @$(ECHO) "Generating $(BINDIR)/aros.rom..."
30 @$(OBJCOPY) -O binary $@ $(BINDIR)/aros.rom -v -S --pad-to=0x100000
32 $(BINDIR)/aros.bin : entrycode.o
33 @$(ECHO) Linking $@...
34 @$(TARGET_LD) -N -e entrycode -Ttext 0x00100000 -Map $(BINDIR)/aros.map \
35 -o $@ $^ $(KOBJS) -L$(LIBDIR) $(LIBS)
37 #rom-pp-m68k: clean aros.rom
39 entrycode.o : entrycode.s
40 @$(ECHO) Assembling $^...
44 # @$(ECHO) "Generating $@..."
45 # @$(OBJCOPY) -O binary $^ $@ -v -S --pad-to=0x10d00000
46 # @$(MKDIR) $(HOME)/.xcopilot
47 # @$(RM) $(HOME)/.xcopilot/aros.rom
48 # @$(CP) $@ $(HOME)/.xcopilot/aros.rom
51 # $(RM) *.o aros.rom aros_rom *.s ~/.xcopilot/aros.rom