TARGETNAME=hal_common
TARGETTYPE=DRIVER_LIBRARY
TARGETPATH=.
TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib $(DDK_LIB_PATH)\usbd.lib

MSC_OPTIMIZATION=/Oi /Od
MSC_WARNING_LEVEL=/W1


KMDF_VERSION_MAJOR=1
KMDF_VERSION_MINOR=9

C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER \
                       -DNDIS60_MINIPORT=1 \
                       -DNDIS_WDM=1 \
                       -DCOMPOS_WIN=1\

INCLUDES= $(INCLUDES) ;  				\
    	$(SRC_ROOT)\Include;            \
		$(SRC_ROOT)\..\chips;           \
		$(SRC_ROOT)\..\embedded;        \
		$(SRC_ROOT)\..\embedded\include;\
    	$(SRC_ROOT)\Include\Ndis6;      \
    	$(SRC_ROOT_UNIFY)\Include;      \
    	$(SRC_ROOT_UNIFY)\os\win\Include;       \
    	.;            				    \
    	..;                             \
    	$(DDK_INC_PATH);                \

SOURCES = \
    	Hal_common.c                                \
        Chip_common.c                               \
		mt_rf.c               \
		mt_phy.c              \
		phy.c                 \
        cmm_asic_mt.c           \
        mt_mac.c                \
        alg_grp_mt.c            \
        ra_wrapper_windows.c    \
        ra_ctrl_mt.c            \
        ra_table.c              \
        mt_cmd.c                \
        fwdl.c                  \
        fwdl_mt.c               \
        testmode_ioctl.c        \
        mt_testmode.c           \
        Mt_os_util_Win.c        \
        single_sku.c			\
		hw_init.c



#
# Comment the below line to disable tracing. All the debug traces
# will be sent to the kernel-debugger.
!IF "$(DDKBUILDENV)" != "chk"
ENABLE_EVENT_TRACING=1
!ENDIF

!IFDEF ENABLE_EVENT_TRACING
C_DEFINES = $(C_DEFINES) -DEVENT_TRACING

RUN_WPP=$(SOURCES)                                  \
     -km                                            \
     -ini:$(SRC_ROOT)\localwpp.ini                  \
     -func:MTWF_LOG(FLAGS,SUBFLAGS,LEVEL,(MSG,...)) \
     -gen:{km-WdfDefault.tpl}*.tmh


!ENDIF