Forgot tar.c
[grub2/phcoder.git] / conf / sparc64-ieee1275.rmk
blob334caeeac9f16a79dc8814cfdfd891b91f0e1738
2 # -*- makefile -*-
4 COMMON_ASFLAGS = -nostdinc
5 COMMON_CFLAGS = -ggdb -ffreestanding -m64 -mno-app-regs
6 COMMON_LDFLAGS = -melf64_sparc -nostdlib
8 # Used by various components.  These rules need to precede them.
9 normal/lexer.c_DEPENDENCIES = grub_script.tab.h
11 # Images.
13 MOSTLYCLEANFILES += symlist.c kernel_syms.lst
14 DEFSYMFILES += kernel_syms.lst
16 kernel_elf_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
17         env.h err.h file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h \
18         symbol.h term.h time.h types.h sparc64/libgcc.h loader.h partition.h \
19         pc_partition.h ieee1275/ieee1275.h machine/kernel.h
21 symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
22         /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
24 # For the parser.
25 grub_script.tab.c grub_script.tab.h: normal/parser.y
26         $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y
28 kernel_syms.lst: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h genkernsyms.sh
29         /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
31 # Programs
32 pkglib_PROGRAMS = kernel.elf
34 # Utilities.
35 #bin_UTILITIES = grub-mkimage
36 #ifeq ($(enable_grub_emu), yes)
37 #bin_UTILITIES += grub-emu
38 #endif
40 # For grub-mkimage.
41 grub_mkimage_SOURCES = util/sparc64/ieee1275/grub-mkimage.c util/misc.c \
42         util/resolve.c 
44 # For grub-emu
45 #grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c       \
46 #       commands/configfile.c commands/default.c commands/help.c        \
47 #       commands/search.c commands/terminal.c commands/ls.c             \
48 #       commands/timeout.c commands/test.c                              \
49 #       commands/halt.c commands/reboot.c               \
50 #       disk/loopback.c                                                 \
51 #       fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c  \
52 #       fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c                  \
53 #       grub_script.tab.c                                               \
54 #       io/gzio.c                                                       \
55 #       kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c       \
56 #       kern/file.c kern/fs.c kern/loader.c kern/main.c kern/misc.c     \
57 #       kern/parser.c kern/partition.c kern/rescue.c kern/term.c        \
58 #       normal/arg.c normal/cmdline.c normal/command.c                  \
59 #       normal/completion.c normal/context.c normal/execute.c           \
60 #       normal/function.c normal/lexer.c                                \
61 #       normal/main.c normal/menu.c normal/menu_entry.c                 \
62 #       normal/menu_viewer.c normal/misc.c                              \
63 #       partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c      \
64 #       partmap/acorn.c                                                 \
65 #       util/console.c util/grub-emu.c util/misc.c                      \
66 #       util/hostdisk.c util/getroot.c                                  \
67 #       util/sparc64/ieee1275/misc.c
69 grub_emu_LDFLAGS = $(LIBCURSES)
71 kernel_elf_SOURCES = kern/sparc64/ieee1275/init.c kern/ieee1275/ieee1275.c \
72         kern/main.c kern/device.c kern/disk.c kern/dl.c kern/file.c \
73         kern/fs.c kern/err.c kern/misc.c kern/mm.c kern/loader.c \
74         kern/rescue.c kern/term.c term/ieee1275/ofconsole.c \
75         kern/sparc64/ieee1275/openfw.c disk/ieee1275/ofdisk.c \
76         kern/partition.c kern/env.c kern/sparc64/dl.c symlist.c \
77         kern/generic/millisleep.c kern/generic/get_time_ms.c \
78         kern/sparc64/cache.S kern/parser.c
79 kernel_elf_HEADERS = grub/sparc64/ieee1275/ieee1275.h
80 kernel_elf_CFLAGS = $(COMMON_CFLAGS)
81 kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
82 kernel_elf_LDFLAGS = -mno-app-regs -nostdlib -Wl,-N,-Ttext,0x200000,-Bstatic,-melf64_sparc
84 # Modules.
85 #_linux.mod linux.mod
86 pkglib_MODULES = fat.mod ufs.mod ext2.mod minix.mod \
87         hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
88         boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
89         pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod \
90         configfile.mod search.mod gzio.mod xfs.mod \
91         affs.mod sfs.mod acorn.mod
93 # For fshelp.mod.
94 fshelp_mod_SOURCES = fs/fshelp.c
95 fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
96 fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS)
98 # For fat.mod.
99 fat_mod_SOURCES = fs/fat.c
100 fat_mod_CFLAGS = $(COMMON_CFLAGS)
101 fat_mod_LDFLAGS = $(COMMON_LDFLAGS)
103 # For ext2.mod.
104 ext2_mod_SOURCES = fs/ext2.c
105 ext2_mod_CFLAGS = $(COMMON_CFLAGS)
106 ext2_mod_LDFLAGS = $(COMMON_LDFLAGS)
108 # For ufs.mod.
109 ufs_mod_SOURCES = fs/ufs.c
110 ufs_mod_CFLAGS = $(COMMON_CFLAGS)
111 ufs_mod_LDFLAGS = $(COMMON_LDFLAGS)
113 # For minix.mod.
114 minix_mod_SOURCES = fs/minix.c
115 minix_mod_CFLAGS = $(COMMON_CFLAGS)
116 minix_mod_LDFLAGS = $(COMMON_LDFLAGS)
118 # For hfs.mod.
119 hfs_mod_SOURCES = fs/hfs.c
120 hfs_mod_CFLAGS = $(COMMON_CFLAGS)
121 hfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
123 # For jfs.mod.
124 jfs_mod_SOURCES = fs/jfs.c
125 jfs_mod_CFLAGS = $(COMMON_CFLAGS)
126 jfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
128 # For iso9660.mod.
129 iso9660_mod_SOURCES = fs/iso9660.c
130 iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
131 iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS)
133 # For xfs.mod.
134 xfs_mod_SOURCES = fs/xfs.c
135 xfs_mod_CFLAGS = $(COMMON_CFLAGS)
136 xfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
138 # For affs.mod.
139 affs_mod_SOURCES = fs/affs.c
140 affs_mod_CFLAGS = $(COMMON_CFLAGS)
141 affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
143 # For sfs.mod.
144 sfs_mod_SOURCES = fs/sfs.c
145 sfs_mod_CFLAGS = $(COMMON_CFLAGS)
146 sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
148 # For _linux.mod.
149 #_linux_mod_SOURCES = loader/sparc64/ieee1275/linux.c
150 #_linux_mod_CFLAGS = $(COMMON_CFLAGS)
151 #_linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
153 # For linux.mod.
154 #linux_mod_SOURCES = loader/sparc64/ieee1275/linux_normal.c
155 #linux_mod_CFLAGS = $(COMMON_CFLAGS)
156 #linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
159 # Only arch dependant part of normal.mod will be here. Common part for
160 # all architecures of normal.mod is at start and should be kept at sync
161 # with other makefiles.
163 # Please put arch dependant part of normal.mod at the end of list to
164 # keep it simpler to update to different architectures.
166 normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c     \
167         normal/completion.c normal/execute.c                            \
168         normal/function.c normal/lexer.c normal/main.c normal/menu.c    \
169         normal/color.c                                                  \
170         normal/menu_viewer.c normal/menu_entry.c                        \
171         normal/misc.c grub_script.tab.c                                 \
172         normal/script.c                                                 \
173         normal/sparc64/setjmp.S
174 normal_mod_CFLAGS = $(COMMON_CFLAGS)
175 normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
176 normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
178 # For hello.mod.
179 hello_mod_SOURCES = hello/hello.c
180 hello_mod_CFLAGS = $(COMMON_CFLAGS)
181 hello_mod_LDFLAGS = $(COMMON_LDFLAGS)
183 # For boot.mod.
184 boot_mod_SOURCES = commands/boot.c
185 boot_mod_CFLAGS = $(COMMON_CFLAGS)
186 boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
188 # For terminal.mod.
189 terminal_mod_SOURCES = commands/terminal.c
190 terminal_mod_CFLAGS = $(COMMON_CFLAGS)
191 terminal_mod_LDFLAGS = $(COMMON_LDFLAGS)
193 # For ls.mod.
194 ls_mod_SOURCES = commands/ls.c
195 ls_mod_CFLAGS = $(COMMON_CFLAGS)
196 ls_mod_LDFLAGS = $(COMMON_LDFLAGS)
198 # For cmp.mod.
199 cmp_mod_SOURCES = commands/cmp.c
200 cmp_mod_CFLAGS = $(COMMON_CFLAGS)
201 cmp_mod_LDFLAGS = $(COMMON_LDFLAGS)
203 # For cat.mod.
204 cat_mod_SOURCES = commands/cat.c
205 cat_mod_CFLAGS = $(COMMON_CFLAGS)
206 cat_mod_LDFLAGS = $(COMMON_LDFLAGS)
208 # For font.mod.
209 font_mod_SOURCES = font/manager.c
210 font_mod_CFLAGS = $(COMMON_CFLAGS)
211 font_mod_LDFLAGS = $(COMMON_LDFLAGS)
213 # For amiga.mod
214 amiga_mod_SOURCES = partmap/amiga.c
215 amiga_mod_CFLAGS = $(COMMON_CFLAGS)
216 amiga_mod_LDFLAGS = $(COMMON_LDFLAGS)
218 # For apple.mod
219 apple_mod_SOURCES = partmap/apple.c
220 apple_mod_CFLAGS = $(COMMON_CFLAGS)
221 apple_mod_LDFLAGS = $(COMMON_LDFLAGS)
223 # For pc.mod
224 pc_mod_SOURCES = partmap/pc.c
225 pc_mod_CFLAGS = $(COMMON_CFLAGS)
226 pc_mod_LDFLAGS = $(COMMON_LDFLAGS)
228 # For sun.mod
229 sun_mod_SOURCES = partmap/sun.c
230 sun_mod_CFLAGS = $(COMMON_CFLAGS)
231 sun_mod_LDFLAGS = $(COMMON_LDFLAGS)
233 # For acorn.mod
234 acorn_mod_SOURCES = partmap/acorn.c
235 acorn_mod_CFLAGS = $(COMMON_CFLAGS)
237 # For loopback.mod
238 loopback_mod_SOURCES = disk/loopback.c
239 loopback_mod_CFLAGS = $(COMMON_CFLAGS)
240 loopback_mod_LDFLAGS = $(COMMON_LDFLAGS)
242 # For suspend.mod
243 suspend_mod_SOURCES = commands/ieee1275/suspend.c
244 suspend_mod_CFLAGS = $(COMMON_CFLAGS)
245 suspend_mod_LDFLAGS = $(COMMON_LDFLAGS)
247 # For reboot.mod
248 reboot_mod_SOURCES = commands/reboot.c
249 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
250 reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
252 # For halt.mod
253 halt_mod_SOURCES = commands/halt.c
254 halt_mod_CFLAGS = $(COMMON_CFLAGS)
255 halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
257 # For help.mod.
258 help_mod_SOURCES = commands/help.c
259 help_mod_CFLAGS = $(COMMON_CFLAGS)
260 help_mod_LDFLAGS = $(COMMON_LDFLAGS)
262 # For default.mod
263 default_mod_SOURCES = commands/default.c
264 default_mod_CFLAGS =  $(COMMON_CFLAGS)
265 default_mod_LDFLAGS = $(COMMON_LDFLAGS)
267 # For timeout.mod
268 timeout_mod_SOURCES = commands/timeout.c
269 timeout_mod_CFLAGS =  $(COMMON_CFLAGS)
270 timeout_mod_LDFLAGS = $(COMMON_LDFLAGS)
272 # For configfile.mod
273 configfile_mod_SOURCES = commands/configfile.c
274 configfile_mod_CFLAGS = $(COMMON_CFLAGS)
275 configfile_mod_LDFLAGS = $(COMMON_LDFLAGS)
277 # For search.mod.
278 search_mod_SOURCES = commands/search.c
279 search_mod_CFLAGS = $(COMMON_CFLAGS)
280 search_mod_LDFLAGS = $(COMMON_LDFLAGS)
282 # For gzio.mod.
283 gzio_mod_SOURCES = io/gzio.c
284 gzio_mod_CFLAGS = $(COMMON_CFLAGS)
285 gzio_mod_LDFLAGS = $(COMMON_LDFLAGS)
287 # For test.mod.
288 test_mod_SOURCES = commands/test.c
289 test_mod_CFLAGS = $(COMMON_CFLAGS)
290 test_mod_LDFLAGS = $(COMMON_LDFLAGS)