SDK_DIR = /szsa022/usrhome/ben.du/Castpal_3721/source/buildroot
SYS_FS_DIR= $(SDK_DIR)/output/target
TOOLCHAIN_DIR = $(SDK_DIR)/output/host/opt/ext-toolchain/bin/
INC_DIR += -I./hal/include
INC_DIR += -I./hal/include/common
INC_DIR += -I./hal/include/platform
INC_DIR += -I./hal/include/hld-sl/inc
INC_DIR += -I./hal/include/hld-sl/inc/hld
INC_DIR += -I./hal/include/hld-sl/inc/hld/crypto
INC_DIR += -I./hal/include/hld-sl/inc/hld/dsc
INC_DIR += -I./hal/include/inc
vpath %.c ./osal
vpath %.c ./hal/common/panel
vpath %.c ./hal/ttx
vpath %.c ./hal/ttx/common
vpath %.c ./hal/ttx/datamanager
vpath %.c ./hal/ttx/filter
vpath %.c ./hal/ttx/local
vpath %.c ./hal/ttx/parser
vpath %.c ./hal/dummy
vpath %.c ./hal/playrec
vpath %.c ./hal/smc
vpath %.c ./hal/standby
vpath %.c ./hal/uart
vpath %.c ./hal/usb
vpath %.c ./hal/vbi
vpath %.c ./hal/aout
vpath %.c ./hal/vout
vpath %.c ./hal/avcc
vpath %.c ./hal/cc
vpath %.c ./hal/crypt
vpath %.c ./hal/demux-new
vpath %.c ./hal/gpio
vpath %.c ./hal/i2c
vpath %.c ./hal/ir
vpath %.c ./hal/osg
vpath %.c ./hal/common/fs
vpath %.c ./hal/common/fs/stdfs
vpath %.c ./hal/common/flash
vpath %.c ./hal/common/flash/mtd
vpath %.c ./hal/common/frontend
vpath %.c ./hal/crypt/
vpath %.c ./hal/security
vpath %.c ./hal/vendor
vpath %.c ./hal/commonos
vpath %.c ./hal/common/frontend/demod
vpath %.c ./hal/common/frontend/demod/common
vpath %.c ./hal/common/frontend/tuner/null_Tuner
vpath %.c ./hal/common/frontend/lnb/sti8036b
vpath %.c ./hal/common/smartcard_testing
LD = $(TOOLCHAIN_DIR)mips-linux-gnu-ld
AR = $(TOOLCHAIN_DIR)mips-linux-gnu-ar
CC = $(TOOLCHAIN_DIR)mips-linux-gnu-gcc
CXX = $(TOOLCHAIN_DIR)mips-linux-gnu-g++
CFLAGS = -DJZ_DEBUG -DHW_SECURE_ENABLE -DAUI -DDEFINED_FOR_DTS3450 -DSDKVERSION_6_6_2_6 -DOLD_SNR2dB_TABLE -EL -mips32r2 -Wall -g -funwind-tables -DRELEASE_SVN_VERSION="\"$(RELEASE_SVN_VERSION)\"" -DRELEASE_DATE="\"$(RELEASE_DATE)\"" -DRELEASE_OWNER="\"$(RELEASE_OWNER)\"" -DRELEASE_CODE_INFO="\"$(RELEASE_CODE_INFO)\"" -DUSM_HAL_SUPPORTED_FLASH_MTD -DUSM_HAL_SUPPORTED_FS_STD -DJZ_SYS_MEM_SIZE=256 \
-I./include -I./hal/common/fs -I./hal/common/flash \
-I./include/jzapi -I./include/utils -I./hal/common/panel \
-I./include/osal -I./osal/include -I./include/hal \
-I./hal/ttx/common -I./hal/ttx/datamanager -I./hal/ttx/filter -I./hal/ttx/local -I./hal/ttx/parser \
-I./hal/flash -I./hal/common/flash/mtd -I./hal/common/frontend -I./hal/common/image\
-I./hal/fs \
$(INC_DIR)
OSAL_OBJS= posixmessagequeue.o \
posixmutex.o \
posixsemaphore.o \
posixtime.o \
usm_event.o \
usm_funcdef.o \
usm_memory.o \
usm_monitor.o \
usm_msg_queue.o \
usm_mutex.o \
usm_os.o \
usm_register.o \
usm_semaphore.o \
usm_thread.o \
usm_time.o \
usm_timer.o \
usm_timetrace.o \
usm_trace.o
HAL_OBJS=aui3***.o \
dummy.o \
libmtd.o \
libmtd_legacy.o \
mtd_flash.o \
usm_aout.o \
usm_avcc.o \
usm_cc.o \
usm_crypt.o \
usm_demod_common.o \
signaltable_SRDA5815M.o \
usm_tuner_null.o \
usm_lnb_sti8036b.o \
usm_demux.o \
usm_event_linux.o\
usm_flash.o \
usm_frontend.o \
usm_fs_stdfs.o \
usm_fs_storage_detect.o \
usm_fs.o \
usm_gpio.o \
usm_i2c_linux.o \
usm_ir.o \
usm_osg.o \
usm_panel.o \
usm_playrec.o \
usm_smc.o \
usm_standby.o \
usm_uart_linux.o \
usm_usb_linux.o \
usm_vbi.o \
usm_vout.o \
usm_crypt.o \
usm_security.o \
usm_vendor.o
all:adi_panel.o drvFrontPnl_1628.o adi_tm1628panel.o main.o
$(CXX)adi_panel.o drvFrontPnl_1628.o adi_tm1628panel.o main.o -EL -mips32r2 -g -lpthread -L. -Wl,--start-group -laui -Wl,--end-group -Wl,-rpath-link=$(SYS_FS_DIR)/usr/lib -Wl,--start-group -Wl,--end-group -L$(SYS_FS_DIR)/usr/lib -Wl,--start-group -lc -lm -lrt -ldl -Wl,--end-group -lz -o panel_test.out -Wl,-Map=panel_test.map
-cp panel_test.out $(SYS_FS_DIR)/root
copfiles:
cp ./ourlib/* ./ -R
%.o:%.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f *.out *.map *.o *.a