blob: 7ea3a6af9b7891aa4cd2785d74ad1f57feac8277 [file] [log] [blame]
#***********************************************************************
# °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
#
# ÎļþÃû³Æ£º makefile
# Îļþ±êʶ£º ±àÒëdrv hal ¿â
# ÄÚÈÝÕªÒª£º
#
# ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
# ---------------------------------------------------------------------
# 2008/11/17 V1.0 huji create
#***********************************************************************/
include $(PRJ_PATH)/config/project.mk
include $(DRV_PATH)/ws/drv_cfg.mk
lib_mods = chip peri public
lib_clean_mods = chipclean periclean publicclean
ifeq ($(USE_HAL_TEST),yes)
lib_mods += test
lib_clean_mods += testclean
endif
lib:$(lib_mods)
clean: $(lib_clean_mods)
default: lib
export DRV_INC_PATH = $(DRV_PATH)/inc
export DRV_SRC_PATH = $(DRV_PATH)/src
export DRV_OBJ_PATH = $(OBJ_PATH)/drv/hal
export DRV_LIB_PATH = $(LIB_PATH)/drv
export CHIP_PATH = $(DRV_PATH)/src/chipsets
export PERI_PATH = $(DRV_PATH)/src/peripheral
export PUBLIC_PATH = $(DRV_PATH)/src/public
export TEST_PATH = $(DRV_PATH)/src/test
#===============================================
# chipsets driver
#===============================================
chip:
@$(GNUMAKE) --no-print-directory -C $(CHIP_PATH)/ws lib
chipclean:
@$(GNUMAKE) --no-print-directory -C $(CHIP_PATH)/ws clean
#===============================================
# peripheral driver
#===============================================
peri:
@$(GNUMAKE) --no-print-directory -C $(PERI_PATH)/ws lib
periclean:
@$(GNUMAKE) --no-print-directory -C $(PERI_PATH)/ws clean
#===============================================
# public driver
#===============================================
public:
@$(GNUMAKE) --no-print-directory -C $(PUBLIC_PATH)/ws lib
publicclean:
@$(GNUMAKE) --no-print-directory -C $(PUBLIC_PATH)/ws clean
#===============================================
# test driver
#===============================================
ifeq ($(USE_HAL_TEST),yes)
test:
@$(GNUMAKE) --no-print-directory -C $(TEST_PATH)/ws lib
testclean:
@$(GNUMAKE) --no-print-directory -C $(TEST_PATH)/ws clean
endif
#===============================================
# Hardware test module Compile including DBB and Audio
#===============================================
hrdtest:
@$(GNUMAKE) --no-print-directory -C $(HRDTEST_PATH)/ws lib
hrdtestclean:
@$(GNUMAKE) --no-print-directory -C $(HRDTEST_PATH)/ws clean