ia64/xen-unstable

view extras/mini-os/Makefile @ 6515:ac8cae1f2c47

Don't attempt to create paravirtualized devices for VMX domains for now.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author adsharma@los-vmm.sc.intel.com
date Tue Aug 09 11:06:45 2005 -0800 (2005-08-09)
parents a83ac0806d6b
children df1348e72390 cdfa7dd00c44 b2f4823b6ff0
line source
1 debug ?= y
3 include $(CURDIR)/../../Config.mk
5 # Set TARGET_ARCH
6 override TARGET_ARCH := $(XEN_TARGET_ARCH)
8 # NB. '-Wcast-qual' is nasty, so I omitted it.
9 CFLAGS := -fno-builtin -Wall -Werror -Iinclude/ -Wredundant-decls -Wno-format
10 CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
12 ifeq ($(TARGET_ARCH),x86_32)
13 CFLAGS += -m32 -march=i686
14 LDFLAGS := -m elf_i386
15 endif
17 ifeq ($(TARGET_ARCH),x86_64)
18 CFLAGS += -m64 -mno-red-zone -fpic -fno-reorder-blocks
19 CFLAGS += -fno-asynchronous-unwind-tables
20 LDFLAGS := -m elf_x86_64
21 endif
23 ifeq ($(debug),y)
24 CFLAGS += -g
25 else
26 CFLAGS += -O3
27 endif
29 TARGET := mini-os
31 OBJS := $(TARGET_ARCH).o
32 OBJS += $(patsubst %.c,%.o,$(wildcard *.c))
33 OBJS += $(patsubst %.c,%.o,$(wildcard lib/*.c))
35 HDRS := $(wildcard include/*.h)
36 HDRS += $(wildcard include/xen/*.h)
38 default: $(TARGET)
40 xen-public:
41 [ -e include/xen ] || ln -sf ../../../xen/include/public include/xen
43 $(TARGET): xen-public $(OBJS)
44 $(LD) -N -T minios-$(TARGET_ARCH).lds $(OBJS) -o $@.elf
45 gzip -f -9 -c $@.elf >$@.gz
47 clean:
48 find . -type f -name '*.o' | xargs rm -f
49 rm -f *.o *~ core $(TARGET).elf $(TARGET).raw $(TARGET) $(TARGET).gz
50 find . -type l | xargs rm -f
52 %.o: %.c $(HDRS) Makefile
53 $(CC) $(CFLAGS) -c $< -o $@
55 %.o: %.S $(HDRS) Makefile
56 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@