ia64/xen-unstable

view stubdom/grub/Makefile @ 17902:6ace85eb96c0

PV-GRUB: compilation fix caused by 17880

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 20 18:37:29 2008 +0100 (2008-06-20)
parents c8d9ade45781
children 26714991f242
line source
1 XEN_ROOT = ../..
3 include $(XEN_ROOT)/Config.mk
4 vpath %.c ../grub-cvs
6 BOOT=boot-$(XEN_TARGET_ARCH).o
8 DEF_CPPFLAGS += -I$(XEN_ROOT)/tools/libxc -I$(XEN_ROOT)/tools/include -I.
9 DEF_CPPFLAGS += -I../grub-cvs/stage1
10 DEF_CPPFLAGS += -I../grub-cvs/stage2
11 DEF_CPPFLAGS += -I../grub-cvs/netboot
12 DEF_CPPFLAGS += -I$(XEN_ROOT)/tools/firmware/vgabios
13 DEF_CPPFLAGS += -DWITHOUT_LIBC_STUBS
14 DEF_CPPFLAGS += -DSUPPORT_NETBOOT
15 DEF_CPPFLAGS += -DSUPPORT_GRAPHICS
16 DEF_CPPFLAGS += -DSUPPORT_SERIAL
17 DEF_CPPFLAGS += -DPRESET_MENU_STRING='""'
18 DEF_CPPFLAGS += -DPACKAGE='"grubdom"' -DVERSION='"0.97"'
20 all: main.a
22 STAGE2_SOURCES=builtins.c char_io.c cmdline.c common.c console.c disk_io.c graphics.c gunzip.c md5.c serial.c stage2.c terminfo.c tparm.c
24 NETBOOT_SOURCES=fsys_tftp.c main.c misc.c
25 CPPFLAGS += -DFSYS_TFTP=1
27 STAGE2_SOURCES+=fsys_ext2fs.c
28 CPPFLAGS += -DFSYS_EXT2FS=1
30 STAGE2_SOURCES+=fsys_fat.c
31 CPPFLAGS += -DFSYS_FAT=1
33 STAGE2_SOURCES+=fsys_ffs.c
34 CPPFLAGS += -DFSYS_FFS=1
36 STAGE2_SOURCES+=fsys_iso9660.c
37 CPPFLAGS += -DFSYS_ISO9660=1
39 STAGE2_SOURCES+=fsys_jfs.c
40 CPPFLAGS += -DFSYS_JFS=1
42 STAGE2_SOURCES+=fsys_minix.c
43 CPPFLAGS += -DFSYS_MINIX=1
45 STAGE2_SOURCES+=fsys_reiserfs.c
46 CPPFLAGS += -DFSYS_REISERFS=1
48 STAGE2_SOURCES+=fsys_ufs2.c
49 CPPFLAGS += -DFSYS_UFS2=1
51 STAGE2_SOURCES+=fsys_vstafs.c
52 CPPFLAGS += -DFSYS_VSTAFS=1
54 ifeq (0,1)
55 STAGE2_SOURCES+=fsys_xfs.c
56 CPPFLAGS += -DFSYS_XFS=1
57 endif
59 STAGE2_SOURCES:=$(addprefix stage2/,$(STAGE2_SOURCES))
60 NETBOOT_SOURCES:=$(addprefix netboot/,$(NETBOOT_SOURCES))
62 $(BOOT): DEF_CPPFLAGS+=-D__ASSEMBLY__
64 OBJS = $(NETBOOT_SOURCES:.c=.o) $(STAGE2_SOURCES:.c=.o) kexec.o mini-os.o
66 dirs:
67 mkdir -p netboot stage2
68 touch $@
70 $(OBJS): dirs
72 main.a: $(BOOT) $(OBJS)
73 $(AR) cr $@ $^
75 clean:
76 rm -fr dirs *.a *.o stage2 netboot