xref: /utopia/UTPA2-700.0.x/modules/vdec_v1/api/vdec/Makefile (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
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# Chips that default using VDEC 2.0
27VDEC_EX_CHIPS = j2 a1 a7 a5 a3 amethyst agate eagle edison emerald kaiser nugget einstein einstein3 monaco muji monet manhattan
28ifeq ($(CHIP), $(filter $(CHIP),$(VDEC_EX_CHIPS)))
29API_NAME = VDEC_V1
30else
31API_NAME = VDEC
32endif
33
34
35# **********************************************
36# DRV Source Files
37# **********************************************
38
39VDEC_MVD_ONLY =
40
41ifeq ("$(CHIP)", "$(VDEC_MVD_ONLY)")
42DRV_DIR = mvd
43else
44DRV_DIR = mvd hvd mjpeg
45endif
46
47ifneq ($(CHIP), $(filter $(CHIP),$(VDEC_EX_CHIPS)))
48all: update_hdr
49update_hdr:
50	echo " Copy apiVDEC_EX.h to vdec folder "
51	cp $(PUBINC)/apiVDEC_EX.h ./
52else
53all: remove_hdr
54remove_hdr:
55	if [ -f ../vdec/apiVDEC_EX.h ] ; then \
56	rm $(PUBINC)/apiVDEC_EX.h ; \
57	echo "*** Remove apiVDEC_EX.h from vdec folder ***"; \
58	fi
59endif
60
61# **********************************************
62# Rules
63# **********************************************
64include $(ROOTLIB)/api_rule.mk
65
66