+ifeq ($(RUMPRUN_MKCONF),)
+$(error RUMPRUN_MKCONF missing)
+endif
+include ${RUMPRUN_MKCONF}
+ifeq (${RRDEST},)
+$(error invalid RUMPRUN_MKCONF)
+endif
+
DBG?= -O2 -g
CFLAGS+= -std=gnu99 ${DBG}
CFLAGS+= -fno-stack-protector -ffreestanding
-ifeq ($(RUMPRUN_MKCONF),)
-$(error RUMPRUN_MKCONF missing)
-endif
-include ${RUMPRUN_MKCONF}
+include ../../global.mk
+include ${BUILDRUMP_TOOLFLAGS}
default: all
PLATFORM_DEFAULT_TESTER=qemu
-include ../../global.mk
-ifdef BUILDRUMP_TOOLFLAGS
-include ${BUILDRUMP_TOOLFLAGS}
-endif
-
CPPFLAGS= -Iinclude -I../../include -nostdinc
CFLAGS+= ${BUILDRUMP_TOOL_CFLAGS}
-ifeq ($(RUMPRUN_MKCONF),)
-$(error RUMPRUN_MKCONF missing)
-endif
-include ${RUMPRUN_MKCONF}
-
.PHONY: all
all: default
PLATFORM_DEFAULT_TESTER=xen
include ../../global.mk
-ifdef BUILDRUMP_TOOLFLAGS
include ${BUILDRUMP_TOOLFLAGS}
-endif
#
# Rumprun-xen Makefile.
-ifeq ($(RUMPRUN_MKCONF),)
-$(error RUMPRUN_MKCONF missing)
-endif
-include ${RUMPRUN_MKCONF}
-
-ifeq (${BUILDRUMP_TOOLFLAGS},)
-$(error invalid config file ${RUMPRUN_MKCONF})
-endif
-include ${BUILDRUMP_TOOLFLAGS}
-
include ../../global.mk
+include ${BUILDRUMP_TOOLFLAGS}
CFLAGS+= ${BUILDRUMP_TOOL_CFLAGS}