NAME := vcall

$(NAME)_TYPE := kernel
GLOBAL_INCLUDES += ./mico/include

$(NAME)_CFLAGS += -Wall -Werror
ifeq ($(HOST_ARCH),ARM968E-S)
$(NAME)_CFLAGS += -marm
endif

ifeq ($(vcall),freertos)
GLOBAL_DEFINES += VCALL_FREERTOS

$(NAME)_SOURCES += \
    aos/aos_freertos.c
else
ifneq ($(vcall),posix)
GLOBAL_DEFINES += VCALL_RHINO
$(NAME)_COMPONENTS += rhino

$(NAME)_SOURCES := \
    mico/mico_rhino.c

$(NAME)_SOURCES += \
    aos/aos_rhino.c
else
GLOBAL_DEFINES += VCALL_POSIX

$(NAME)_SOURCES += \
    aos/aos_posix.c
endif
endif

