aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-19 16:21:39 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-19 16:21:39 +0000
commit98c2b2bd1ee52edddff2a6471e9616178c8d333c (patch)
tree199526e6a926c89937bd8dd93a45dff60fc752cf /extras/mini-os/Makefile
parentac23908a0df6302e568b79ffb968442a5c742923 (diff)
downloadxen-98c2b2bd1ee52edddff2a6471e9616178c8d333c.tar.gz
xen-98c2b2bd1ee52edddff2a6471e9616178c8d333c.tar.bz2
xen-98c2b2bd1ee52edddff2a6471e9616178c8d333c.zip
stubdom: add C example target
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/Makefile')
-rw-r--r--extras/mini-os/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/mini-os/Makefile b/extras/mini-os/Makefile
index 4811f0dbfd..7cc4d0222e 100644
--- a/extras/mini-os/Makefile
+++ b/extras/mini-os/Makefile
@@ -88,6 +88,11 @@ OBJS += $(QEMUDIR)/i386-dm-stubdom/qemu.a $(QEMUDIR)/i386-dm-stubdom/libqemu.a
CFLAGS += -DCONFIG_QEMU
endif
+ifneq ($(CDIR),)
+OBJS += $(CDIR)/main.a
+LDLIBS +=
+endif
+
ifeq ($(libc),y)
LDLIBS += -L$(XEN_ROOT)/stubdom/libxc -lxenctrl -lxenguest
LDLIBS += -lpci
@@ -95,7 +100,7 @@ LDLIBS += -lz
LDLIBS += -lc
endif
-ifneq ($(caml)-$(qemu)-$(lwip),--y)
+ifneq ($(caml)-$(qemu)-$(CDIR)-$(lwip),---y)
OBJS := $(filter-out daytime.o, $(OBJS))
endif