source: svn/newcon3bcm2_21bu/nexus/app/Makefile @ 22

Last change on this file since 22 was 22, checked in by phkim, 11 years ago
  1. phkim
  2. newcon3sk 를 kctv 로 브랜치 함
  • Property svn:executable set to *
File size: 6.5 KB
Line 
1############################################################
2#         (c)2003-2009 Broadcom Corporation
3#
4#  This program is the proprietary software of Broadcom Corporation and/or its licensors,
5#  and may only be used, duplicated, modified or distributed pursuant to the terms and
6#  conditions of a separate, written license agreement executed between you and Broadcom
7#  (an "Authorized License").  Except as set forth in an Authorized License, Broadcom grants
8#  no license (express or implied), right to use, or waiver of any kind with respect to the
9#  Software, and Broadcom expressly reserves all rights in and to the Software and all
10#  intellectual property rights therein.  IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU
11#  HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY
12#  NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE.
13#
14#  Except as expressly set forth in the Authorized License,
15#
16#  1.     This program, including its structure, sequence and organization, constitutes the valuable trade
17#  secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof,
18#  and to use this information only in connection with your use of Broadcom integrated circuit products.
19#
20#  2.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
21#  AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR
22#  WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
23#  THE SOFTWARE.  BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES
24#  OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE,
25#  LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION
26#  OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF
27#  USE OR PERFORMANCE OF THE SOFTWARE.
28#
29#  3.     TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS
30#  LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR
31#  EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR
32#  USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF
33#  THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT
34#  ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE
35#  LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF
36#  ANY LIMITED REMEDY.
37#
38# $brcm_Workfile:  $
39# $brcm_Revision:  $
40# $brcm_Date:  $
41#
42# Module Description:
43#
44# Revision History:
45#
46# Created: 09/28/2009 by Jeff Fisher
47#
48# $brcm_Log:  $
49#
50#
51############################################################
52#
53APP_TYPE ?= dta
54
55# Add to CFLAGS for 7572 ==> -DCONFIG_7572
56
57ifdef COMSPEC
58# Any DOS environment
59NEXUS_TOP := $(shell cd .. && cd)
60else
61NEXUS_TOP := $(shell cd ../; pwd)
62endif
63
64ifndef PLATFORM
65$(error PLATFORM is not defined)
66endif
67
68# include cross-compiler definitions
69include $(NEXUS_TOP)/platforms/$(PLATFORM)/build/platform_app.inc
70
71ifeq (${APP_TYPE},dta)
72
73DTA_CABLE=y
74HAS_SCTE65 ?= y
75HAS_SCTE18 ?= y
76HAS_SCTE127 ?= y
77HAS_CAT ?= y
78HAS_ATSC ?= y
79
80APP_DIR    = ./dta
81CFLAGS                          += -DCONFIG_NETWORK_PID=0x1FFC
82#CFLAGS                         += -DCONFIG_REQUIRE_CAT
83CFLAGS                          += -DCONFIG_DEF_VCT_ID=0
84CFLAGS                          += -DCONFIG_DEF_EMM_PID=0x1FF0
85# Vendor and Hardware ID
86CFLAGS                          += -DDEF_VERSION=1
87CFLAGS                          += -DDEF_VENDOR_ID=0x0FACED     # 3 bytes
88CFLAGS                          += -DDEF_HARDWARE_ID=0x93545A0
89CFLAGS                          += -DDEF_VENDOR_NAME=\"Broadcom\"
90CFLAGS                          += -DBDBG_DEBUG_BUILD=1
91THEAPPS = dta_app
92
93endif
94
95
96ifeq (${APP_TYPE},nanotv)
97
98APP_DIR    = ./nanotv
99THEAPPS = nanotv_app
100
101endif
102
103ifeq (${APP_TYPE},hh)
104
105APP_DIR    = ./hh
106THEAPPS = hh_app
107
108endif
109
110#
111#
112#
113
114
115CFLAGS     += -I$(APP_DIR)  -I.
116
117EXTRA_OBJS += \
118                bapp_remote.c \
119                bapp_store.c \
120                bapp_tune.c \
121                bapp_nexus.c \
122                bapp_task.c \
123                bapp_av.c \
124                bapp_hdmi.c \
125                bapp_util.c \
126                bgfx.c \
127                bgfx_font.c \
128                bgfx_defs.c \
129                iso_639_lang_map.c \
130                ch_map.c \
131                led.c \
132                genericlist.c \
133                bapp_freq_table.c \
134                bsettop_smessage_nexus.c \
135                bsettop_stream_nexus.c \
136                FrancophilB2_22_mono.c \
137                FrancophilB2_28_mono.c \
138                $(APP_DIR)/bapp.c \
139                $(APP_DIR)/bscreen.c \
140                $(APP_DIR)/bapp_palette.c \
141                $(APP_DIR)/bapp_settings.c \
142                $(APP_DIR)/bapp_str_table.c
143
144ifeq (${APP_TYPE},dta)
145EXTRA_OBJS += \
146                $(APP_DIR)/chan_mgr.c \
147                $(APP_DIR)/bscreen_status.c \
148                $(APP_DIR)/bscreen_debug.c \
149                $(APP_DIR)/getbits.c \
150                $(APP_DIR)/dsmcc.c \
151                $(APP_DIR)/image_recv.c \
152                $(APP_DIR)/image_write.c
153endif
154
155ifeq (${APP_TYPE},nanotv)
156
157EXTRA_OBJS += \
158                $(APP_DIR)/FrancophilB2_40_mono.c
159endif
160
161ifeq (${APP_TYPE},hh)
162
163EXTRA_OBJS += \
164                $(APP_DIR)/circles.c
165endif
166
167#
168# PSI paths and sources
169#
170BSEAV_LIB_DIR = $(NEXUS_TOP)/../BSEAV/lib
171MPEG2_TS_PARSE_DIR = $(BSEAV_LIB_DIR)/mpeg2_ts_parse
172
173#
174# Basic PSI parsing
175#
176CFLAGS     += -I$(MPEG2_TS_PARSE_DIR)
177EXTRA_OBJS +=   \
178                $(MPEG2_TS_PARSE_DIR)/ts_priv.c \
179                $(MPEG2_TS_PARSE_DIR)/ts_psi.c \
180                $(MPEG2_TS_PARSE_DIR)/ts_pat.c \
181                $(MPEG2_TS_PARSE_DIR)/ts_pmt.c
182
183#
184# ATSC PSIP Sources
185#
186
187ifeq ($(HAS_ATSC),y)
188EXTRA_OBJS +=   \
189                $(MPEG2_TS_PARSE_DIR)/psip_mgt.c \
190                $(MPEG2_TS_PARSE_DIR)/psip_vct.c \
191                $(MPEG2_TS_PARSE_DIR)/psip_descriptor.c \
192                $(MPEG2_TS_PARSE_DIR)/psip_ett.c \
193                $(MPEG2_TS_PARSE_DIR)/psip_rrt.c \
194                $(MPEG2_TS_PARSE_DIR)/psip_eit.c
195endif
196
197# ATSC PSIP Sources also used for parsing SCTE65
198EXTRA_OBJS +=   \
199                $(MPEG2_TS_PARSE_DIR)/psip_stt.c \
200                $(MPEG2_TS_PARSE_DIR)/psip_mss.c \
201                $(MPEG2_TS_PARSE_DIR)/psip_decode_tree_01.c \
202                $(MPEG2_TS_PARSE_DIR)/psip_decode_tree_02.c
203
204#
205# SCTE65 Sources Profile 2 only
206#
207
208ifeq ($(HAS_SCTE65),y)
209CFLAGS += -I$(BSEAV_LIB_DIR)/scte65
210CFLAGS += -I$(BSEAV_LIB_DIR)/scte65/nit
211CFLAGS += -I$(BSEAV_LIB_DIR)/scte65/ntt
212CFLAGS += -I$(BSEAV_LIB_DIR)/scte65/svct
213CFLAGS += -I$(BSEAV_LIB_DIR)/scte65/stt
214CFLAGS += -I$(BSEAV_LIB_DIR)/scte65/os
215CFLAGS += -I$(BSEAV_LIB_DIR)/scte65/os/linux
216CFLAGS += -DCONFIG_SCTE65 -DCONFIG_NEXUS
217
218EXTRA_OBJS +=   \
219                $(BSEAV_LIB_DIR)/scte65/svct/si_svct_vcm.c \
220                $(BSEAV_LIB_DIR)/scte65/svct/si_svct.c \
221                $(BSEAV_LIB_DIR)/scte65/ntt/si_ntt.c \
222                $(BSEAV_LIB_DIR)/scte65/ntt/si_ntt_sns.c \
223                $(BSEAV_LIB_DIR)/scte65/nit/si_nit.c \
224                $(BSEAV_LIB_DIR)/scte65/nit/si_nit_cds.c \
225                $(BSEAV_LIB_DIR)/scte65/nit/si_nit_mms.c \
226                $(BSEAV_LIB_DIR)/scte65/stt/si_stt.c \
227                $(BSEAV_LIB_DIR)/scte65/os/linux/si_os.c \
228                $(BSEAV_LIB_DIR)/scte65/si_util.c \
229                $(BSEAV_LIB_DIR)/scte65/si_dbg.c
230
231endif
232
233
234ifeq ($(HAS_SCTE18),y)
235CFLAGS += -I$(BSEAV_LIB_DIR)/scte_18
236EXTRA_OBJS +=   \
237                $(BSEAV_LIB_DIR)/scte_18/ts_scte_18.c
238endif
239
240ifeq ($(HAS_SCTE127),y)
241CFLAGS += -I$(BSEAV_LIB_DIR)/scte_127
242endif
243
244ifeq ($(HAS_CAT),y)
245CFLAGS += -I$(BSEAV_LIB_DIR)/ts_cat
246EXTRA_OBJS +=   \
247                $(BSEAV_LIB_DIR)/ts_cat/ca_parser.c
248endif
249
250include Makefile.inc
Note: See TracBrowser for help on using the repository browser.