added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / x86_64-pc / boot / mmakefile.src
blob5d24ae9f73512ea96461f74e88eda0b0f64dd83f
1 # $Id: mmakefile.src 22621 2004-12-25 16:05:59Z verhaegs $
2 include $(TOP)/config/make.cfg
4 #MM bootiso-pc-x86_64: kernel-bootstrap-x86_64 kernel-package-x86_64 grub-quick grub-copy-stages
6 #MM kernel-package-x86_64: \
7 #MM     linklibs-clib \
8 #MM     kernel-aros \
9 #MM     kernel-bootloader-pc-x86_64 \
10 #MM     kernel-timer \
11 #MM     kernel-ata \
12 #MM     kernel-keyboard \
13 #MM     kernel-gameport \
14 #MM     kernel-pc-i386-vga \
15 #MM     kernel-pc-i386-vesa \
16 #MM     kernel-battclock \
17 #MM     kernel-misc \
18 #MM     kernel-pci \
19 #MM     kernel-pci-pcipc \
20 #MM     kernel-mathieeesingbas \
21 #MM     workbench-libs-partition \
22 #MM     workbench-hidd-graphics \
23 #MM     kernel-graphics \
24 #MM     kernel-layers \
25 #MM     kernel-keymap \
26 #MM     kernel-intuition \
27 #MM     kernel-input \
28 #MM     kernel-cgfx-kobj \
29 #MM     kernel-dos \
30 #MM     kernel-console \
31 #MM     kernel-fs-packet \
32 #MM     kernel-fs-con \
33 #MM     kernel-workbench \
34 #MM     workbench-fs-nil \
35 #MM     workbench-fs-ram \
36 #MM workbench-fs-afs \
37 #MM     contrib-cdvdfs \
38 #MM     kernel-boot
40 PKG_LIBS := aros boot mathieeesingbas partition dos graphics layers keymap intuition workbench
41 PKG_RSRC := bootloader battclock misc
42 PKG_DEVS := ata timer keyboard gameport input console
43 PKG_HANDLERS := cdrom packet con nil ram afs
44 PKG_HIDDS:= vgah pci pcipc graphics vesagfx
46 MODULES := \
47         $(addprefix $(BINDIR)/Libs/, $(addsuffix .library, $(PKG_LIBS))) \
48         $(addprefix $(BINDIR)/Devs/, $(addsuffix .device, $(PKG_DEVS))) \
49         $(addprefix $(BINDIR)/Devs/, $(addsuffix .resource, $(PKG_RSRC))) \
50         $(addprefix $(BINDIR)/Devs/, $(addsuffix .handler, $(PKG_HANDLERS))) \
51         $(addprefix $(BINDIR)/Devs/Drivers/, $(addsuffix .hidd, $(PKG_HIDDS)))
53 kernel-package-x86_64:
54         $(RM) -rf $(BINDIR)/.pkg
55         %mkdirs_q $(BINDIR)/.pkg
56         @mv $(MODULES) $(BINDIR)/.pkg/
57         # Dirty hack to link graphics.library with cybergraphics (they use the same graphics_driver!!!)
58         $(LD) -r $(BINDIR)/.pkg/graphics.library $(KOBJSDIR)/cybergraphics_library.o -o $(BINDIR)/.pkg/gfx.library
59         $(RM) $(BINDIR)/.pkg/graphics.library
60         $(TOP)/tools/package/pkg c $(BINDIR)/boot/kernel.pkg $(BINDIR)/.pkg  
62 bootiso-pc-x86_64: $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso
64 $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso: $(BINDIR)/boot/grub/menu.lst $(BINDIR)/boot/grub/menu.lst.DH0 $(BINDIR)/boot/kernel.pkg $(BINDIR)/boot/kernel
65         %mkdirs_q $(AROSDIR)/S
66         @$(CP) $(TOP)/workbench/s/Startup-Sequence $(AROSDIR)/S/Startup-Sequence
67         @$(MKDIR) -p "$(AROSDIR)/Tools/Boot Disks"
68         @$(MKDIR) -p "$(PORTSDIR)"
69         @mkisofs -f \
70                 -o $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso \
71                 -b boot/grub/iso9660_stage1_5 \
72                 -c boot/boot.catalog \
73                 -no-emul-boot \
74                 -boot-load-size 4 \
75                 -boot-info-table \
76                 -allow-leading-dots \
77                 -V "AROS Live CD" \
78                 -publisher "AROS Development Team" -R -J -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
79                 -l -r \
80                 $(AROSDIR)
83 $(BINDIR)/boot/grub/menu.lst:
84                 $(CP) menu.lst $(BINDIR)/boot/grub/
86 $(BINDIR)/boot/grub/menu.lst.DH0:
87                 $(CP) menu.lst.DH0 $(BINDIR)/boot/grub/