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 23# ********************************************** 24# DRV Name 25# ********************************************** 26 27# Chips that default using VDEC 2.0 28VDEC_EX_CHIPS = j2 a1 a7 a5 a3 amethyst agate eagle edison emerald kaiser eiffel nike madison miami nugget einstein einstein3 napoli monaco clippers muji keres kirin monet manhattan 29ifneq ($(CHIP), $(filter $(CHIP),$(VDEC_EX_CHIPS))) 30API_NAME = VDEC_V2 31else 32API_NAME = VDEC 33endif 34 35# ********************************************** 36# DRV Source Files 37# ********************************************** 38DRV_DIR = \ 39 mvd_ex \ 40 hvd_ex \ 41 mjpeg_ex \ 42 43ifeq ($(CHIP), $(filter $(CHIP),$(VDEC_EX_CHIPS))) 44all: update_hdr 45update_hdr: 46 cp $(PUBINC)/apiVDEC.h ./ 47endif 48 49# ********************************************** 50# Rules 51# ********************************************** 52include $(ROOTLIB)/api_rule.mk 53 54 55# ********************************************** 56# Incremental Build 57# ********************************************** 58ifeq ($(CONFIG_INCREMENTAL_BUILD),y) 59LD_LIBS_INC += -L$(DDI_PATH) -ldrvIPAUTH -lapiJPEG 60endif 61