⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 可用于TM1300/PNX1300系列DSP(主要用于视频处理)压缩库即应用例子。
💻
字号:
##  Makefile for zmemreq#ZLIB    =  $(TCS)/examples/compression/zlib/zlib-1.1.3EXAMPLES = $(TCS)/examples## As defined, the flash simulator will be linked.# For the real flash, a user will have to make # the following changes:# - if a Board Support Package exists and it is not #   linked in by default, a defintion to BSP must be#   added.# - if a BSP is linked into the executable then BOARD#   and FLASH_SPECIFIC set to nothing.# - if no BSP is linked but a Flash Driver exists,#   then BOARD and FLASH_SPECIFIC should be set to point#   to the specific flash driver.# - Change the definigion of HOST to match the#   required host mode.# Below is an example of the changes made when using a# TTR Board.##BSP            = $(TCS)/lib/$(ENDIAN)/libBSPdtv_ttr.o#BOARD          =  #FLASH_SPECIFIC =#HOST           = nohost#BSP               = FLASH_SPECIFIC    = $(EXAMPLES)/flash_file_system/sample_drivers/FlashSpecific$(BOARD).cBOARD             = SimHOST              = tmsim# ERROR_RATE only used with tmsimERROR_RATE = 0ENDIAN     = elCFLAGS     = -$(ENDIAN) \             -I$(TCS)/include/tmlib \             -I$(TCS)/include/tm1 \	     -DERROR_RATE=$(ERROR_RATE) LDFLAGS    = -L. -lz  -lio  -tmld -u _FlashFS --#RUN        = $(TCS)/bin/tmsim -ms 32000 -nommCC         = $(TCS)/bin/tmcc -DNDEBUGG -O3  -Dinline=AR         = $(TCS)/bin/tmar rcuv#TEST_OBJS = zmemreq.o $(FLASH_SPECIFIC) $(BSP)ZLIB_SRCS = $(ZLIB)/adler32.c $(ZLIB)/compress.c $(ZLIB)/crc32.c $(ZLIB)/gzio.c $(ZLIB)/uncompr.c \	    $(ZLIB)/deflate.c $(ZLIB)/trees.c $(ZLIB)/zutil.c $(ZLIB)/inflate.c $(ZLIB)/infblock.c\	    $(ZLIB)/inftrees.c $(ZLIB)/infcodes.c $(ZLIB)/infutil.c $(ZLIB)/inffast.cZLIB_OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o \	    deflate.o trees.o zutil.o inflate.o infblock.o \	    inftrees.o infcodes.o infutil.o inffast.oall: zmemreq.outtest: all	$(RUN) zmemreq.outzmemreq.out: CHECK zmemreq.o libz.a	$(CC) $(CFLAGS) -host $(HOST) -o  $@ $(TEST_OBJS) $(LDFLAGS)%o: %c	@ echo "Compiling $(*)c"	@ $(CC) $(CFLAGS) $(CINCS) -c $(*)c -o $@libz.a :    $(ZLIB_SRCS) $(ZLIB)/Makefile	    $(CC) $(CFLAGS) -c $(ZLIB_SRCS)	    $(AR) $@ $(ZLIB_OBJS)CHECK:	@if [ x$(TCS) = x ]; then \		echo "Usage: make TCS=<path>"; false; \	ficlean:	rm -f *.o *~ *.out *% libz.a

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -