4
COMMON_ASFLAGS = -nostdinc
5
COMMON_CFLAGS = -ggdb -ffreestanding -m64 -mno-app-regs
6
COMMON_LDFLAGS = -melf64_sparc
10
MOSTLYCLEANFILES += grubof_symlist.c kernel_syms.lst
11
DEFSYMFILES += kernel_syms.lst
13
grubof_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \
14
file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h symbol.h \
15
term.h types.h sparc64/libgcc.h loader.h \
16
partition.h pc_partition.h ieee1275/ieee1275.h machine/time.h \
19
grubof_symlist.c: $(addprefix include/grub/,$(grubof_HEADERS)) gensymlist.sh
20
sh $(srcdir)/gensymlist.sh $(filter %.h,$^) > $@
23
grub_script.tab.c grub_script.tab.h: normal/parser.y
24
$(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y
26
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh
27
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@
30
pkgdata_PROGRAMS = grubof
33
#bin_UTILITIES = grub-emu grub-mkimage
34
noinst_UTILITIES = genmoddep
37
grub_mkimage_SOURCES = util/sparc64/ieee1275/grub-mkimage.c util/misc.c \
41
#grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
42
# commands/configfile.c commands/default.c commands/help.c \
43
# commands/search.c commands/terminal.c commands/ls.c \
44
# commands/timeout.c commands/test.c \
45
# commands/ieee1275/halt.c commands/ieee1275/reboot.c \
47
# fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c \
48
# fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c \
51
# kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c \
52
# kern/file.c kern/fs.c kern/loader.c kern/main.c kern/misc.c \
53
# kern/parser.c kern/partition.c kern/rescue.c kern/term.c \
54
# normal/arg.c normal/cmdline.c normal/command.c \
55
# normal/completion.c normal/context.c normal/execute.c \
56
# normal/function.c normal/lexer.c \
57
# normal/main.c normal/menu.c normal/menu_entry.c normal/misc.c \
58
# partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
60
# util/console.c util/grub-emu.c util/misc.c \
61
# util/i386/pc/biosdisk.c util/i386/pc/getroot.c \
62
# util/sparc64/ieee1275/misc.c
64
grub_emu_LDFLAGS = $(LIBCURSES)
66
grubof_SOURCES = kern/sparc64/ieee1275/init.c kern/ieee1275/ieee1275.c \
67
kern/main.c kern/device.c kern/disk.c kern/dl.c kern/file.c \
68
kern/fs.c kern/err.c kern/misc.c kern/mm.c kern/loader.c \
69
kern/rescue.c kern/term.c term/ieee1275/ofconsole.c \
70
kern/sparc64/ieee1275/openfw.c disk/ieee1275/ofdisk.c \
71
kern/partition.c kern/env.c kern/sparc64/dl.c grubof_symlist.c \
72
kern/sparc64/cache.S kern/parser.c
73
grubof_HEADERS = grub/sparc64/ieee1275/ieee1275.h
74
grubof_CFLAGS = $(COMMON_CFLAGS)
75
grubof_ASFLAGS = $(COMMON_ASFLAGS)
76
grubof_LDFLAGS = -mno-app-regs -nostdlib -Wl,-N,-Ttext,0x200000,-Bstatic,-melf64_sparc
79
genmoddep_SOURCES = util/genmoddep.c
83
pkgdata_MODULES = fat.mod ufs.mod ext2.mod minix.mod \
84
hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
85
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
86
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod \
87
default.mod timeout.mod configfile.mod search.mod gzio.mod xfs.mod \
88
affs.mod sfs.mod acorn.mod
91
fshelp_mod_SOURCES = fs/fshelp.c
92
fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
93
fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS)
96
fat_mod_SOURCES = fs/fat.c
97
fat_mod_CFLAGS = $(COMMON_CFLAGS)
98
fat_mod_LDFLAGS = $(COMMON_LDFLAGS)
101
ext2_mod_SOURCES = fs/ext2.c
102
ext2_mod_CFLAGS = $(COMMON_CFLAGS)
103
ext2_mod_LDFLAGS = $(COMMON_LDFLAGS)
106
ufs_mod_SOURCES = fs/ufs.c
107
ufs_mod_CFLAGS = $(COMMON_CFLAGS)
108
ufs_mod_LDFLAGS = $(COMMON_LDFLAGS)
111
minix_mod_SOURCES = fs/minix.c
112
minix_mod_CFLAGS = $(COMMON_CFLAGS)
113
minix_mod_LDFLAGS = $(COMMON_LDFLAGS)
116
hfs_mod_SOURCES = fs/hfs.c
117
hfs_mod_CFLAGS = $(COMMON_CFLAGS)
118
hfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
121
jfs_mod_SOURCES = fs/jfs.c
122
jfs_mod_CFLAGS = $(COMMON_CFLAGS)
123
jfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
126
iso9660_mod_SOURCES = fs/iso9660.c
127
iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
128
iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS)
131
xfs_mod_SOURCES = fs/xfs.c
132
xfs_mod_CFLAGS = $(COMMON_CFLAGS)
133
xfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
136
affs_mod_SOURCES = fs/affs.c
137
affs_mod_CFLAGS = $(COMMON_CFLAGS)
138
affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
141
sfs_mod_SOURCES = fs/sfs.c
142
sfs_mod_CFLAGS = $(COMMON_CFLAGS)
143
sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
146
#_linux_mod_SOURCES = loader/sparc64/ieee1275/linux.c
147
#_linux_mod_CFLAGS = $(COMMON_CFLAGS)
148
#_linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
151
#linux_mod_SOURCES = loader/sparc64/ieee1275/linux_normal.c
152
#linux_mod_CFLAGS = $(COMMON_CFLAGS)
153
#linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
156
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \
157
normal/completion.c normal/context.c normal/execute.c \
158
normal/function.c normal/lexer.c normal/main.c normal/menu.c \
159
normal/menu_entry.c normal/misc.c normal/script.c \
160
normal/sparc64/setjmp.S \
162
normal_mod_CFLAGS = $(COMMON_CFLAGS)
163
normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
164
normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
167
hello_mod_SOURCES = hello/hello.c
168
hello_mod_CFLAGS = $(COMMON_CFLAGS)
169
hello_mod_LDFLAGS = $(COMMON_LDFLAGS)
172
boot_mod_SOURCES = commands/boot.c
173
boot_mod_CFLAGS = $(COMMON_CFLAGS)
174
boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
177
terminal_mod_SOURCES = commands/terminal.c
178
terminal_mod_CFLAGS = $(COMMON_CFLAGS)
179
terminal_mod_LDFLAGS = $(COMMON_LDFLAGS)
182
ls_mod_SOURCES = commands/ls.c
183
ls_mod_CFLAGS = $(COMMON_CFLAGS)
184
ls_mod_LDFLAGS = $(COMMON_LDFLAGS)
187
cmp_mod_SOURCES = commands/cmp.c
188
cmp_mod_CFLAGS = $(COMMON_CFLAGS)
189
cmp_mod_LDFLAGS = $(COMMON_LDFLAGS)
192
cat_mod_SOURCES = commands/cat.c
193
cat_mod_CFLAGS = $(COMMON_CFLAGS)
194
cat_mod_LDFLAGS = $(COMMON_LDFLAGS)
197
font_mod_SOURCES = font/manager.c
198
font_mod_CFLAGS = $(COMMON_CFLAGS)
199
font_mod_LDFLAGS = $(COMMON_LDFLAGS)
202
amiga_mod_SOURCES = partmap/amiga.c
203
amiga_mod_CFLAGS = $(COMMON_CFLAGS)
204
amiga_mod_LDFLAGS = $(COMMON_LDFLAGS)
207
apple_mod_SOURCES = partmap/apple.c
208
apple_mod_CFLAGS = $(COMMON_CFLAGS)
209
apple_mod_LDFLAGS = $(COMMON_LDFLAGS)
212
pc_mod_SOURCES = partmap/pc.c
213
pc_mod_CFLAGS = $(COMMON_CFLAGS)
214
pc_mod_LDFLAGS = $(COMMON_LDFLAGS)
217
sun_mod_SOURCES = partmap/sun.c
218
sun_mod_CFLAGS = $(COMMON_CFLAGS)
219
sun_mod_LDFLAGS = $(COMMON_LDFLAGS)
222
acorn_mod_SOURCES = partmap/acorn.c
223
acorn_mod_CFLAGS = $(COMMON_CFLAGS)
226
loopback_mod_SOURCES = disk/loopback.c
227
loopback_mod_CFLAGS = $(COMMON_CFLAGS)
228
loopback_mod_LDFLAGS = $(COMMON_LDFLAGS)
231
suspend_mod_SOURCES = commands/ieee1275/suspend.c
232
suspend_mod_CFLAGS = $(COMMON_CFLAGS)
233
suspend_mod_LDFLAGS = $(COMMON_LDFLAGS)
236
reboot_mod_SOURCES = commands/ieee1275/reboot.c
237
reboot_mod_CFLAGS = $(COMMON_CFLAGS)
238
reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
241
halt_mod_SOURCES = commands/ieee1275/halt.c
242
halt_mod_CFLAGS = $(COMMON_CFLAGS)
243
halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
246
help_mod_SOURCES = commands/help.c
247
help_mod_CFLAGS = $(COMMON_CFLAGS)
248
help_mod_LDFLAGS = $(COMMON_LDFLAGS)
251
default_mod_SOURCES = commands/default.c
252
default_mod_CFLAGS = $(COMMON_CFLAGS)
253
default_mod_LDFLAGS = $(COMMON_LDFLAGS)
256
timeout_mod_SOURCES = commands/timeout.c
257
timeout_mod_CFLAGS = $(COMMON_CFLAGS)
258
timeout_mod_LDFLAGS = $(COMMON_LDFLAGS)
261
configfile_mod_SOURCES = commands/configfile.c
262
configfile_mod_CFLAGS = $(COMMON_CFLAGS)
263
configfile_mod_LDFLAGS = $(COMMON_LDFLAGS)
266
search_mod_SOURCES = commands/search.c
267
search_mod_CFLAGS = $(COMMON_CFLAGS)
268
search_mod_LDFLAGS = $(COMMON_LDFLAGS)
271
gzio_mod_SOURCES = io/gzio.c
272
gzio_mod_CFLAGS = $(COMMON_CFLAGS)
273
gzio_mod_LDFLAGS = $(COMMON_LDFLAGS)
276
test_mod_SOURCES = commands/test.c
277
test_mod_CFLAGS = $(COMMON_CFLAGS)
278
test_mod_LDFLAGS = $(COMMON_LDFLAGS)