VERSION = 4.0.1

MODULE_XCC_FLAGS = $(XCC_FLAGS) \
                   -O3 \
                   -fasm-linenum \
                   -fcomment-asm \
                   -DXUD_FULL_PIDTABLE=1 \
                   -g

XCC_FLAGS_XUD_IoLoop.S = $(MODULE_XCC_FLAGS) -fschedule

XCC_FLAGS_XUD_Client.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_Main.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_PhyResetUser.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_Support.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_IOLoopCall.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_Signalling.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue -Wno-return-type
XCC_FLAGS_XUD_TestMode.xc = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_SetCrcTableAddr.c = $(MODULE_XCC_FLAGS) -mno-dual-issue
XCC_FLAGS_XUD_User.c = $(MODULE_XCC_FLAGS) -mno-dual-issue

OPTIONAL_HEADERS += xud_conf.h

DEPENDENT_MODULES =

EXPORT_INCLUDE_DIRS = api \
                      src/user \
                      api/legacy

INCLUDE_DIRS = $(EXPORT_INCLUDE_DIRS) \
               src/core \
               src/user/class \
               src/user/control/msos2

SOURCE_DIRS = src/core \
              src/user/client \
              src/user/control \
              src/user/control/msos2

EXCLUDE_FILES += XUD_CrcAddrCheck.S \
                 XUD_PidJumpTable.S \
                 XUD_PidJumpTable_RxData.S \
                 XUD_RxData.S \
                 XUD_Token_In_DI.S \
                 XUD_Token_Out_DI.S \
                 XUD_Token_Ping.S \
                 XUD_Token_SOF.S \
                 XUD_Token_Setup_DI.S \
                 XUD_TokenJmp.S
