nb. tests/nolibc won't build for xen; hw is hardcoded there
[ -d ${PLATFORMDIR} ] || die Platform \"$PLATFORM\" not supported!
shift
- if ${KERNONLY} && [ "${PLATFORM}" != "hw" ]; then
- die '-k currently only supports "hw" platform'
- fi
-
dodefault=true
while [ $# -gt 0 ]; do
if [ $1 = '--' ]; then
#
OBJ_DIR ?= $(CURDIR)/obj
+TARGETS= prepare links platformlibs mini-os $(MAINOBJ)
+
+ifneq (${KERNONLY},true)
+TARGETS+= app-tools userlibs
+else
+TARGETS+= compiler_rt
+endif
+
.PHONY: default
-default: prepare links commonlibs mini-os $(MAINOBJ) app-tools
+default: ${TARGETS}
include ../Makefile.inc
links:
$(MAKE) -C xen links
-$(MAINOBJ): $(RUMP_OBJS) commonlibs
+$(MAINOBJ): $(RUMP_OBJS)
$(CC) -Wl,-r $(CFLAGS) $(LDFLAGS) $(RUMP_OBJS) -nostdlib -o $@
APP_TOOLS_PLATFORM= xen