Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / i386-pc / boot / mmakefile.src
blob19a17baf55225e8d8fb67585c02170103b8a7077
1 # $Id$
2 include $(TOP)/config/make.cfg
4 USER_INCLUDES   := -I$(GENINCDIR)
7 # Rules to create AROS for pc-i386
10 #MM- AROS-pc-i386 : general-setup-pc-i386 kernel-pc-i386 software-pc-i386
12 #MM- software-pc-i386 : general-setup binary-pc-i386 \
13 #MM         workbench-pc-i386 demos contrib-necessary
15 #MM- workbench-pc-i386 : workbench-complete workbench kernel-mathffp kernel-mathieeesingbas kernel-workbench
17 #MM- AROS-complete-pc-i386 : general-setup-pc-i386 kernel-pc-i386 software-pc-i386 contrib
19 #MM- general-setup-pc-i386: setup-pc-i386 includes compiler
22 # Kernel modules
25 #MM- kernel-pc-i386 : general-setup-pc-i386
27 #MM- kernel-pc-i386 : \
28 #MM     kernel-misc-kobj \
29 #MM     kernel-bootloader-pc-i386-kobj \
30 #MM     kernel-bootmenu-kobj \
31 #MM     kernel-dosboot-kobj \
32 #MM     kernel-isapnp-kobj \
33 #MM     workbench-libs-partition-kobj \
34 #MM     kernel-fs-afs-kobj \
35 #MM     workbench-hidd-graphics-kobj \
36 ##MM     kernel-cpu-pc-i386-kobj \
37 #MM     kernel-pc-i386-drivers \
38 #MM     kernel-contrib-necessary-pc-i386
40 #MM- kernel-contrib-necessary-pc-i386 : contrib-necessary-pc-i386
42 #MM- includes-pc-i386 : includes-common-i386 includes-copy-pc-i386 includes-copy
44 USELIBS := hiddgraphicsstubs hiddstubs amiga arossupport rom arosm autoinit libinit
45 LIBS    := $(addprefix -l,$(USELIBS))
46 DEPLIBS := $(addprefix $(LIBDIR)/lib,$(addsuffix .a,$(USELIBS)))
48 KRSRCS  := battclock bootloader bootmenu dosboot misc
49 KLIBS   := exec boot aros dos graphics utility intuition keymap \
50            expansion oop layers cybergraphics partition
51 KDEVS   := timer input keyboard console gameport ata trackdisk
52 KHNDLRS := con nil packet amberram cdrom afs sfs
53 KHIDDS  := hiddclass serial mouse irq graphics kbd vesagfx vgah pci pcipc
54 ##Disabled RSRC cpu isapnp
55 ##Disabled HIDD vmwaregfx usbuhci
57 KOBJS := $(addprefix $(KOBJSDIR)/,$(addsuffix _resource.o,$(KRSRCS) )) \
58          $(addprefix $(KOBJSDIR)/,$(addsuffix _library.o ,$(KLIBS)  )) \
59          $(addprefix $(KOBJSDIR)/,$(addsuffix _device.o  ,$(KDEVS)  )) \
60          $(addprefix $(KOBJSDIR)/,$(addsuffix _handler.o ,$(KHNDLRS))) \
61          $(addprefix $(KOBJSDIR)/,$(addsuffix _hidd.o    ,$(KHIDDS) )) \
62          $(addprefix $(KOBJSDIR)/,$(addsuffix _driver.o  ,$(KDRVRS) ))
64 #MM
65 kernel-setup-pc-i386 :
66         %mkdirs_q $(OSGENDIR)/boot
67         %mkdirs_q $(BINDIR)/boot
68         %mkdirs_q $(BINDIR)/boot/grub
70 #MM kernel-link-pc-i386 : kernel-setup-pc-i386
71 kernel-link-pc-i386 : $(BINDIR)/boot/aros-pc-i386
73 #MM kernel-package-pc-i386 : kernel-link-pc-i386
74 kernel-package-pc-i386 : $(BINDIR)/boot/aros-pc-i386.gz
76 $(BINDIR)/boot/aros-pc-i386 : $(KOBJS) $(DEPLIBS)
77         @$(KERNEL_CC) -Wl,-N,-e,kernel_startup,-Ttext,0x00100000 \
78             $(GENMAP) $(OSGENDIR)/boot/aros.map -o $@ $(KOBJS) \
79             -static $(NOSTARTUP_LDFLAGS) -L$(LIBDIR) $(LIBS)
80         @$(TARGET_STRIP) --strip-unneeded -R .note -R .comment $@
82 $(BINDIR)/boot/aros-pc-i386.gz : $(BINDIR)/boot/aros-pc-i386
83         @gzip -9 -f $^
85 #MM
86 clean ::
87         -$(RM) $(TESTS)
89 # %include_deps
90 %common