]> git.proxmox.com Git - grub2.git/blame - conf/any-emu.rmk
Use (hd0,msdos1) syntax. Eliminate partmap_iterate
[grub2.git] / conf / any-emu.rmk
CommitLineData
f84b481b
RM
1# -*- makefile -*-
2
3# Used by various components. These rules need to precede them.
f515aa62 4script/lexer.c_DEPENDENCIES = grub_script.tab.h
f84b481b
RM
5
6sbin_UTILITIES += grub-emu
7util/grub-emu.c_DEPENDENCIES = grub_emu_init.h
8grub_emu_SOURCES = commands/minicmd.c commands/cat.c commands/cmp.c \
9 commands/configfile.c commands/echo.c commands/help.c \
10 commands/handler.c commands/ls.c commands/test.c \
53e08cc5
VS
11 commands/search_wrap.c commands/search_file.c \
12 commands/search_label.c commands/search_uuid.c \
13 commands/blocklist.c commands/hexdump.c \
f84b481b
RM
14 lib/hexdump.c commands/halt.c commands/reboot.c \
15 lib/envblk.c commands/loadenv.c \
16 commands/gptsync.c commands/probe.c commands/xnu_uuid.c \
17 commands/password.c commands/keystatus.c \
18 disk/host.c disk/loopback.c disk/scsi.c \
db77c4d4 19 fs/fshelp.c \
f84b481b
RM
20 \
21 io/gzio.c \
22 kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c \
23 kern/err.c kern/list.c kern/handler.c \
24 kern/command.c kern/corecmd.c commands/extcmd.c kern/file.c \
25 kern/fs.c commands/boot.c kern/main.c kern/misc.c kern/parser.c \
cdec4d31 26 kern/partition.c kern/term.c \
f84b481b
RM
27 kern/rescue_reader.c kern/rescue_parser.c \
28 lib/arg.c normal/cmdline.c normal/datetime.c normal/misc.c \
59f746dc 29 normal/handler.c normal/auth.c lib/crypto.c normal/autofs.c \
f84b481b 30 normal/completion.c normal/main.c normal/color.c \
fc054c9c 31 normal/menu.c normal/menu_entry.c \
e48625a3 32 normal/menu_text.c normal/crypto.c normal/term.c \
61c501a9 33 commands/terminal.c normal/context.c lib/charset.c \
db77c4d4 34 script/main.c script/execute.c script/function.c \
f515aa62 35 script/lexer.c script/script.c grub_script.tab.c \
f84b481b 36 partmap/amiga.c partmap/apple.c partmap/msdos.c partmap/sun.c \
f3e309ad 37 partmap/acorn.c partmap/gpt.c partmap/bsdlabel.c \
f84b481b
RM
38 \
39 fs/affs.c fs/cpio.c fs/fat.c fs/ext2.c fs/hfs.c \
40 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
41 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
42 fs/ufs.c fs/ufs2.c fs/xfs.c fs/afs.c fs/afs_be.c \
db77c4d4 43 fs/befs.c fs/befs_be.c fs/tar.c \
f84b481b 44 \
3dcf83ba
VS
45 video/video.c video/fb/video_fb.c video/fb/fbblit.c \
46 video/fb/fbfill.c video/fb/fbutil.c commands/videotest.c \
47 video/bitmap.c video/bitmap_scale.c video/readers/tga.c \
48 video/readers/jpeg.c video/readers/png.c font/font_cmd.c \
49 font/font.c term/gfxterm.c io/bufio.c \
50 \
a5c894bc
VS
51 gfxmenu/gfxmenu.c gfxmenu/model.c gfxmenu/view.c \
52 gfxmenu/icon_manager.c gfxmenu/theme_loader.c \
53 gfxmenu/widget-box.c gfxmenu/gui_canvas.c \
54 gfxmenu/gui_circular_progress.c gfxmenu/gui_box.c \
55 gfxmenu/gui_label.c gfxmenu/gui_list.c gfxmenu/gui_image.c \
56 gfxmenu/gui_progress_bar.c gfxmenu/gui_util.c \
57 gfxmenu/gui_string_util.c gfxmenu/named_colors.c trigtables.c \
58 \
f84b481b
RM
59 util/console.c util/hostfs.c util/grub-emu.c util/misc.c \
60 util/hostdisk.c util/getroot.c \
61 \
62 disk/raid.c disk/raid5_recover.c disk/raid6_recover.c \
63 disk/mdraid_linux.c disk/dmraid_nvidia.c disk/lvm.c \
64 commands/parttool.c parttool/msdospart.c \
c0a6bd44 65 lib/libgcrypt-grub/cipher/md5.c \
db77c4d4 66 grub_emu_init.c gnulib/progname.c
c0a6bd44
VS
67grub_emu_CFLAGS += -Wno-missing-field-initializers -Wno-error -I$(srcdir)/lib/libgcrypt_wrap
68
f84b481b
RM
69
70ifeq ($(target_cpu), i386)
71grub_emu_SOURCES += commands/i386/cpuid.c
72endif
73
74grub_emu_LDFLAGS = $(LIBCURSES)
75
76ifeq ($(enable_grub_emu_usb), yes)
77grub_emu_SOURCES += disk/usbms.c util/usb.c bus/usb/usb.c \
78 commands/usbtest.c
79grub_emu_LDFLAGS += $(LIBCURSES) $(LIBUSB)
80endif
0e848909 81
3dcf83ba
VS
82ifeq ($(enable_grub_emu_sdl), yes)
83grub_emu_SOURCES += util/sdl.c
84grub_emu_LDFLAGS += $(LIBSDL)
85endif
f84b481b 86
0e848909
VS
87ifeq ($(enable_grub_emu_pci), yes)
88grub_emu_SOURCES += util/pci.c commands/lspci.c
89grub_emu_LDFLAGS += $(LIBPCIACCESS)
90endif
f84b481b
RM
91
92grub_emu_init.lst: geninit.sh $(filter-out grub_emu_init.c,$(grub_emu_SOURCES))
93 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
94DISTCLEANFILES += grub_emu_init.lst
95
96grub_emu_init.h: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh
97 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
98DISTCLEANFILES += grub_emu_init.h
99
100grub_emu_init.c: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninit.sh grub_emu_init.h
101 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
102DISTCLEANFILES += grub_emu_init.c
103
104
105
106
107# FIXME: this could be shared with common.rmk
108
a5c894bc
VS
109trigtables.c: gentrigtables
110 ./gentrigtables > $@
111DISTCLEANFILES += trigtables.c
112gentrigtables: gentrigtables.c
113 $(CC) -o $@ $^ $(CPPFLAGS) -lm
114DISTCLEANFILES += gentrigtables
115
f84b481b
RM
116# For grub-mkfont.
117ifeq ($(enable_grub_mkfont), yes)
118bin_UTILITIES += grub-mkfont
a755bb04 119grub_mkfont_SOURCES = gnulib/progname.c util/grub-mkfont.c util/misc.c
f84b481b
RM
120grub_mkfont_CFLAGS = $(freetype_cflags)
121grub_mkfont_LDFLAGS = $(freetype_libs)
122endif
123
f515aa62
RM
124grub_script.tab.c grub_script.tab.h: script/parser.y
125 $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/script/parser.y
f84b481b 126DISTCLEANFILES += grub_script.tab.c grub_script.tab.h
cbca0ada
VS
127
128bin_UTILITIES += grub-bin2h
129grub_bin2h_SOURCES = gnulib/progname.c util/bin2h.c