From 98c2b2bd1ee52edddff2a6471e9616178c8d333c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 19 Mar 2008 16:21:39 +0000 Subject: stubdom: add C example target Signed-off-by: Samuel Thibault --- extras/mini-os/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extras/mini-os/Makefile') 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 -- cgit v1.2.3