1 2################################################################################ 3# 4# Copyright (c) 2008-2009 MStar Semiconductor, Inc. 5# All rights reserved. 6# 7# Unless otherwise stipulated in writing, any and all information contained 8# herein regardless in any format shall remain the sole proprietary of 9# MStar Semiconductor Inc. and be kept in strict confidence 10# ("MStar Confidential Information") by the recipient. 11# Any unauthorized act including without limitation unauthorized disclosure, 12# copying, use, reproduction, sale, distribution, modification, disassembling, 13# reverse engineering and compiling of the contents of MStar Confidential 14# Information is unlawful and strictly prohibited. MStar hereby reserves the 15# rights to any and all damages, losses, costs and expenses resulting therefrom. 16# 17# 18# Makefile used for building DDI 19# 20# 21################################################################################ 22 23ROOT = . 24TRUNK = . 25PRJ ?= t2_nos 26TARGET ?= s4le_nos 27ADD ?= 28PROJECT_DIR = $(TRUNK)/../../../../project/$(PRJ) 29LIB_DIR_ = $(PROJECT_DIR)/bsp/lib 30INC_DIR_ = $(PROJECT_DIR)/bsp/include 31TARGET_ROOT ?= Chakra2 32 33OUT_TRUNK = $(TRUNK)/../../../../../../DAILEO/Yoga/$(TARGET_ROOT) 34OUT_LIB_DIR ?= $(OUT_TRUNK)/core/drv_bsp/$(TARGET)/lib 35OUT_INC_DIR ?= $(OUT_TRUNK)/core/drv_bsp/$(TARGET)/include 36 37include install.mk 38 39all: wble cec pnl ace dlc xc ddc2bi ve 40wble cec pnl ace dlc xc ddc2bi ve hdmitx dac mfc: init 41 42ifneq ($(LINK_TYPE),dynamic) 43 @make -C $(PROJECT_DIR) --no-print-directory MAKE_TYPE=lint $@ > /dev/null 44 @make -C $(PROJECT_DIR) --no-print-directory $@ lint 45else 46 @make -C $(PROJECT_DIR) --no-print-directory $@ 47endif 48 49install: init bsp 50 @for i in $(INSTALL_INC_FILES); do \ 51 ./diff_cp.sh $(INC_DIR_)/$$i $(OUT_INC_DIR)/$$i; \ 52 done; 53 @for i in $(INSTALL_LIB_FILES); do \ 54 ./diff_cp.sh $(LIB_DIR_)/$$i $(OUT_LIB_DIR)/$$i; \ 55 done; 56 57init: 58 @rm -rfd $(PROJECT_DIR)/bsp 59 @make -C $(PROJECT_DIR) --no-print-directory clean 60 61clean: 62 @make -C $(PROJECT_DIR) --no-print-directory $@ 63 @rm -rfd $(PROJECT_DIR)/bsp 64 @rm -f $(PROJECT_DIR)/lint_test.log 65 66bsp: 67 @make -C $(PROJECT_DIR) --no-print-directory $@ > /dev/null 68