# Makefile - top level makefile for target/src/WRN to build runtime libraries
#
# modification history
# --------------------
# 01o,03jul09,pee  fix last mod
# 01n,01jul09,mze  restricting build to MSP enabled VSB
# 01m,29jun09,mze  removing dot1x subdir
# 01l,19feb09,ggz  Move the bridge and coreip into CVS.
# 01k,29oct08,mze  always build wm before dot1X
# 01j,31jul08,mze  fix spelling mistake for dot1x
# 01i,16jul08,mze  adding a special case for wrsnmp
# 01h,15jul08,pee  enabling SNMP build.
# 01g,13jul08,pee  VSB adaptation.
# 01f,25jun07,tkf  Add COMMON_BASIC_SUBDIRS variable.
# 01e,24may05,mem  Remove util from SUBDIRS list.
# 01d,11may05,mem  Restrict SUBDIRS to avoid building MSP components as part
#                  of the kernel build.
# 01c,10apr00,rae  Adding back CLEANLIBS = YES
# 01b,14mar00,rae  clean up
# 01a,14mar00,rae  created from target/src/Makefile
#
# DESCRIPTION
# This file contains the makefile rules to detect subdirectories that contain
# sources for building the vx library and builds them. 
#
# IMPORTANT
#
# Add a directory to COMMON_BASIC_SUBDIRS if you require the directory to be
# built with the OPT=-basic option.
#*/

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

ifdef _WRS_CONFIG_MSP_KERNEL
# always build wm before dot1x

OPTIONAL_SUBDIRS = wm 

SUBDIRS	=  $(wildcard $(OPTIONAL_SUBDIRS))
##
# Add a directory to this list only if you require the directory to be  built
# with the OPT=-basic option
#
COMMON_BASIC_SUBDIRS = 

#this should make rclean happy
CLEANLIBS = YES

include $(TGT_DIR)/h/make/rules.library

else

# empty rule to catch all targets

default:
	@echo nothing to be done

%:
	@echo nothing to be done for target $@

endif

