11 |
|
|
12 |
grubof_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \ |
grubof_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \ |
13 |
file.h fs.h kernel.h misc.h mm.h net.h rescue.h symbol.h \ |
file.h fs.h kernel.h misc.h mm.h net.h rescue.h symbol.h \ |
14 |
term.h types.h machine/biosdisk.h \ |
term.h types.h machine/biosdisk.h powerpc/libgcc.h loader.h \ |
15 |
partition.h pc_partition.h machine/time.h machine/ieee1275.h |
partition.h pc_partition.h machine/time.h machine/ieee1275.h |
16 |
|
|
17 |
grubof_symlist.c: $(addprefix include/grub/,$(grubof_HEADERS)) gensymlist.sh |
grubof_symlist.c: $(addprefix include/grub/,$(grubof_HEADERS)) gensymlist.sh |
20 |
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh |
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh |
21 |
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@ |
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@ |
22 |
|
|
23 |
|
# Programs |
24 |
|
pkgdata_PROGRAMS = grubof |
25 |
|
|
26 |
# Utilities. |
# Utilities. |
|
sbin_UTILITIES = grubof |
|
27 |
bin_UTILITIES = grub-emu |
bin_UTILITIES = grub-emu |
28 |
noinst_UTILITIES = genmoddep |
noinst_UTILITIES = genmoddep |
29 |
|
|
38 |
normal/arg.c kern/partition.c \ |
normal/arg.c kern/partition.c \ |
39 |
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \ |
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \ |
40 |
kern/env.c commands/ls.c \ |
kern/env.c commands/ls.c \ |
41 |
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c |
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c \ |
42 |
|
kern/powerpc/cache.S |
43 |
grub_emu_LDFLAGS = -lncurses |
grub_emu_LDFLAGS = -lncurses |
44 |
|
|
45 |
grubof_SOURCES = boot/powerpc/ieee1275/crt0.S boot/powerpc/ieee1275/cmain.c \ |
grubof_SOURCES = boot/powerpc/ieee1275/crt0.S boot/powerpc/ieee1275/cmain.c \ |
46 |
boot/powerpc/ieee1275/ieee1275.c kern/main.c kern/device.c \ |
boot/powerpc/ieee1275/ieee1275.c kern/main.c kern/device.c \ |
47 |
kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c fs/fshelp.c \ |
kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \ |
48 |
kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \ |
kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \ |
49 |
kern/powerpc/ieee1275/init.c term/powerpc/ieee1275/ofconsole.c \ |
kern/powerpc/ieee1275/init.c term/powerpc/ieee1275/ofconsole.c \ |
50 |
kern/powerpc/ieee1275/openfw.c fs/ext2.c fs/ufs.c fs/minix.c fs/hfs.c \ |
kern/powerpc/ieee1275/openfw.c disk/powerpc/ieee1275/ofdisk.c \ |
51 |
fs/jfs.c normal/cmdline.c normal/command.c normal/main.c normal/menu.c \ |
kern/partition.c kern/env.c kern/powerpc/dl.c grubof_symlist.c \ |
52 |
disk/powerpc/ieee1275/ofdisk.c partmap/amiga.c partmap/pc.c \ |
kern/powerpc/cache.S |
|
partmap/apple.c kern/partition.c \ |
|
|
kern/env.c normal/arg.c loader/powerpc/ieee1275/linux.c \ |
|
|
loader/powerpc/ieee1275/linux_normal.c commands/boot.c \ |
|
|
normal/powerpc/setjmp.S kern/powerpc/dl.c grubof_symlist.c |
|
53 |
grubof_HEADERS = grub/powerpc/ieee1275/ieee1275.h |
grubof_HEADERS = grub/powerpc/ieee1275/ieee1275.h |
54 |
grubof_CFLAGS = $(COMMON_CFLAGS) -DGRUBOF |
grubof_CFLAGS = $(COMMON_CFLAGS) |
55 |
grubof_ASFLAGS = $(COMMON_ASFLAGS) |
grubof_ASFLAGS = $(COMMON_ASFLAGS) |
56 |
grubof_LDFLAGS = -nostdlib -static-libgcc -lgcc -Wl,-N,-S,-Ttext,0x200000,-Bstatic |
grubof_LDFLAGS = -nostdlib -static-libgcc -lgcc -Wl,-N,-S,-Ttext,0x200000,-Bstatic |
57 |
|
|
59 |
genmoddep_SOURCES = util/genmoddep.c |
genmoddep_SOURCES = util/genmoddep.c |
60 |
|
|
61 |
# Modules. |
# Modules. |
62 |
|
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \ |
63 |
|
hfs.mod jfs.mod normal.mod hello.mod font.mod \ |
64 |
|
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod pc.mod |
65 |
|
|
66 |
|
# For fshelp.mod. |
67 |
|
fshelp_mod_SOURCES = fs/fshelp.c |
68 |
|
fshelp_mod_CFLAGS = $(COMMON_CFLAGS) |
69 |
|
|
70 |
|
# For fat.mod. |
71 |
|
fat_mod_SOURCES = fs/fat.c |
72 |
|
fat_mod_CFLAGS = $(COMMON_CFLAGS) |
73 |
|
|
74 |
|
# For ext2.mod. |
75 |
|
ext2_mod_SOURCES = fs/ext2.c |
76 |
|
ext2_mod_CFLAGS = $(COMMON_CFLAGS) |
77 |
|
|
78 |
|
# For ufs.mod. |
79 |
|
ufs_mod_SOURCES = fs/ufs.c |
80 |
|
ufs_mod_CFLAGS = $(COMMON_CFLAGS) |
81 |
|
|
82 |
|
# For minix.mod. |
83 |
|
minix_mod_SOURCES = fs/minix.c |
84 |
|
minix_mod_CFLAGS = $(COMMON_CFLAGS) |
85 |
|
|
86 |
|
# For hfs.mod. |
87 |
|
hfs_mod_SOURCES = fs/hfs.c |
88 |
|
hfs_mod_CFLAGS = $(COMMON_CFLAGS) |
89 |
|
|
90 |
|
# For jfs.mod. |
91 |
|
jfs_mod_SOURCES = fs/jfs.c |
92 |
|
jfs_mod_CFLAGS = $(COMMON_CFLAGS) |
93 |
|
|
94 |
|
# For iso9660.mod. |
95 |
|
iso9660_mod_SOURCES = fs/iso9660.c |
96 |
|
iso9660_mod_CFLAGS = $(COMMON_CFLAGS) |
97 |
|
|
98 |
|
# For _linux.mod. |
99 |
|
_linux_mod_SOURCES = loader/powerpc/ieee1275/linux.c |
100 |
|
_linux_mod_CFLAGS = $(COMMON_CFLAGS) |
101 |
|
|
102 |
|
# For linux.mod. |
103 |
|
linux_mod_SOURCES = loader/powerpc/ieee1275/linux_normal.c |
104 |
|
linux_mod_CFLAGS = $(COMMON_CFLAGS) |
105 |
|
|
106 |
|
# For normal.mod. |
107 |
|
normal_mod_SOURCES = normal/cmdline.c normal/command.c normal/main.c \ |
108 |
|
normal/menu.c normal/arg.c normal/powerpc/setjmp.S |
109 |
|
normal_mod_CFLAGS = $(COMMON_CFLAGS) |
110 |
|
normal_mod_ASFLAGS = $(COMMON_ASFLAGS) |
111 |
|
|
112 |
|
# For hello.mod. |
113 |
|
hello_mod_SOURCES = hello/hello.c |
114 |
|
hello_mod_CFLAGS = $(COMMON_CFLAGS) |
115 |
|
|
116 |
|
# For boot.mod. |
117 |
|
boot_mod_SOURCES = commands/boot.c |
118 |
|
boot_mod_CFLAGS = $(COMMON_CFLAGS) |
119 |
|
|
120 |
|
# For terminal.mod. |
121 |
|
terminal_mod_SOURCES = commands/terminal.c |
122 |
|
terminal_mod_CFLAGS = $(COMMON_CFLAGS) |
123 |
|
|
124 |
|
# For ls.mod. |
125 |
|
ls_mod_SOURCES = commands/ls.c |
126 |
|
ls_mod_CFLAGS = $(COMMON_CFLAGS) |
127 |
|
|
128 |
|
# For cmp.mod. |
129 |
|
cmp_mod_SOURCES = commands/cmp.c |
130 |
|
cmp_mod_CFLAGS = $(COMMON_CFLAGS) |
131 |
|
|
132 |
|
# For cat.mod. |
133 |
|
cat_mod_SOURCES = commands/cat.c |
134 |
|
cat_mod_CFLAGS = $(COMMON_CFLAGS) |
135 |
|
|
136 |
|
# For font.mod. |
137 |
|
font_mod_SOURCES = font/manager.c |
138 |
|
font_mod_CFLAGS = $(COMMON_CFLAGS) |
139 |
|
|
140 |
|
# For amiga.mod |
141 |
|
amiga_mod_SOURCES = partmap/amiga.c |
142 |
|
amiga_mod_CFLAGS = $(COMMON_CFLAGS) |
143 |
|
|
144 |
|
# For apple.mod |
145 |
|
apple_mod_SOURCES = partmap/apple.c |
146 |
|
apple_mod_CFLAGS = $(COMMON_CFLAGS) |
147 |
|
|
148 |
|
# For pc.mod |
149 |
|
pc_mod_SOURCES = partmap/pc.c |
150 |
|
pc_mod_CFLAGS = $(COMMON_CFLAGS) |