# Top-level Makefile for Wind River Wireless Ethernet driver.
#
# modification history
# --------------------
# 01p,23sep10,hfc  remove support of non-Vxbus wifi drivers
# 01o,03sep09,hfc  fix for defect WIND00180118
# 01n,16oct08,hfc  fix for defect WIND00139230
# 01m,13jul08,pee  build only when option is selected. Clean otherwise.
# 01l,10jul08,hfc  replace findstring SMP with _WRS_CONFIG_SMP to adopt vsb
#                  notion
# 01k,27feb08,hfc  add support for vxbus/smp and legacy build
# 01j,17oct07,pee  using ipcom rules.
# 01i,28jun07,spw Disable SMP builds
# 01h,15aug05,rb  Tweak for 2.1.1 release
# 01g,03jun05,dxb  Added dot11SmeApLib to doc build
# 01f,30may05,rb  Added dot11KslLib.c to docBuild
# 01e,16may05,dxb  Updated for Cyclops doc build
# 01d,25aug04,dxb  Added DOC_DIR and DOC_CHAPTER
# 01c,17aug04,dxb  Moved SNMP check to management directory.
# 01b,14jun04,dxb  Removed reference to atheros directory.
# 01a,28apr04,dxb  Created.
#
# DESCRIPTION
# This file contains the Makefile rules for building the Wind River
# 802.11a/b/g Wireless Ethernet Driver.



TGT_DIR = $(WIND_BASE)/target
LIB_BASE_NAME = wlanVxbEnd
include $(TGT_DIR)/h/make/defs.library

DOC_FILES = dot11Lib.c dot11KslLib.c dot11SmeApLib.c

ifndef _WRS_CONFIG_COMPONENT_WLAN
all : rclean
endif

# _WRS_CONFIG_IPWLAN_ATHEROS user specific
# _WRS_CONFIG_WLAN_ATH architecture specific
# user selection takes precedence over arch
# as long as arch support it. 
 
ifdef _WRS_CONFIG_IPWLAN_ATHEROS

ifdef _WRS_CONFIG_WLAN_ATH   

C_SOURCE = $(wildcard *.c)


OBJS_wlanVxbEnd = $(C_SOURCE:.c=.o)

CFLAGS_LIB_wlanVxbEnd = -DVXBUS
endif
endif


include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/defs.ipcom
include $(TGT_DIR)/h/make/rules.library
include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/rules.ipcom

DOC_DIR = $(DOCS_ROOT)/vxworks/ref/drv
DOC_CHAPTER = Driver_Libraries

include $(TGT_DIR)/h/make/config/comps/wlan/defs.docs
