build_rules.mk

来自「这是DVD中伺服部分的核心代码」· MK 代码 · 共 92 行

MK
92
字号
###############################################################################
##                                                                           ##
##  Copyright (c) 2006 Videon Central, Inc.                                  ##
##  All rights reserved.                                                     ##
##                                                                           ##
##  The makefile contained herein contains proprietary information which     ##
##  is the property of Videon Central, Inc.  The makefile may be used        ##
##  and/or copied only with the written permission of Videon Central, Inc.   ##
##  or in accordance with the terms and conditions stipulated in the         ##
##  agreement/contract under which the makefile has been supplied.           ##
##                                                                           ##
###############################################################################

#######################################################################################################################
#
#  (sdk)build_rules.mk		- describes available build targets for the SDK
#
#
#	INPUT:		SDK_ROOT_DIRECTORY				=	path to SDK directory
#
#  Makefile written for GNU make (v3.8 known to work)
#
#######################################################################################################################

#	Perform error checking to make sure SDK_ROOT_DIRECTORY symbol is defined

ifeq ($(strip $(SDK_ROOT_DIRECTORY)),)
	$(error ERROR: SDK_ROOT_DIRECTORY undefined)
endif



ifeq ($(strip $(MAKE_SILENT)),YES)

	MAKE						:=	@make -s

else

	MAKE						:=	make

endif



CHIPCSS_DIRECTORY				=	$(SDK_ROOT_DIRECTORY)/build/common/chipcss
CORE_DIRECTORY					=	$(SDK_ROOT_DIRECTORY)/build/common/core
PLAYER_DIRECTORY				=	$(SDK_ROOT_DIRECTORY)/build/common/player
TEST_DIRECTORY					=	$(SDK_ROOT_DIRECTORY)/build/common/test




.PHONY:	all
.PHONY: clean
.PHONY: diagnostics


all:	
	@echo "              available targets"
	@echo "-------------------------------------------------------------"
	@echo "         player: builds player executable"
	@echo " player-library: builds player library (everything but main.cpp)"
	@echo "           core: builds core library"
	@echo "        chipcss: builds the software css library"
	@echo -e
	@echo "          clean: removes all object code and and depend files"
	@echo "   player-clean: removes all player object code and depend files"
	@echo "     core-clean: removes all core object code and depend files"
	@echo "  chipcss-clean: removes all chipcss object code and depend files"
	@echo -e
	@echo "    diagnostics: shows various settings"



clean : chipcss-clean  core-clean  player-clean

diagnostics: chipcss-diagnostics  core-diagnostics  player-diagnostics
	@echo "******************************************************************************"
	@echo "*                       build_rules.mk diagnostics                           *"
	@echo "******************************************************************************"
	@echo " SDK_ROOT_DIRECTORY = $(SDK_ROOT_DIRECTORY)"
	@echo " MAKE_SILENT        = $(MAKE_SILENT)"
	@echo -e



include $(CHIPCSS_DIRECTORY)/chipcss_build_rules.mk
include $(CORE_DIRECTORY)/core_build_rules.mk
include $(PLAYER_DIRECTORY)/player_build_rules.mk

include $(TEST_DIRECTORY)/osapi/testosapi_build_rules.mk

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?