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

📄 makefile

📁 ucos在DSP40上的移植,可以用,在ucos网站上下的!
💻
字号:
#
# Makefile for uCOS RTOS port for the Texas Instruments TMS320C40
# digital signal processor.
#
# Date: March, 1999
# Author: Ran Cabell, Hampton, VA (rcabell@norfolk.infi.net)
# 
# Notes: (1) Assumes GNU Make. Should be portable to other makes.
#        (2) Assumes Texas Instruments Compiler Tools V5.1. Compiler
#            flags MUST be changed if 4.x compiler version will be used. 
#        (3) You must define the location of your TI header files in
#            the variable TI_INCLUDES and TI run time support libraries
#            in the linker command file c40.cmd
# 


#
# Location of TI header files string.h, ctype.h, stdlib.h,
# setjmp.h, intpt40.h, timer40.h
TI_INCLUDES = d:/dsp/include/dsp

#
# Define compiler flags
#
# Code parser
# c40, quiet, all warning messages, inline expansion
AC_FLAGS = -v40 -q -w2 -x -i. -i$(TI_INCLUDES)

#
# Optimizing parser
# c40, quiet, global opt, interlist, zero-ohead loops
OPT_FLAGS = -v40 -q -o2 -s -u

#
# Code generator
# c40, symbolic debug, quiet, reenable opts, tradeoff size vs. speed
#      stack runtime model
# DO NOT SIMULTANEOUSLY USE THE -o AND -gn FLAGS IN V5.10
# You must use the -o flag to generate working code
CG_FLAGS = -v40 -o -q -gp -gr0

#
# Assembler
# c40, quiet, list all symbols
ASM_FLAGS = -v40 -q -s -i. -i$(TI_INCLUDES)

#
# Linker options are defined in c40.cmd

#
# Clear the default dependency chains and define
# new ones since we will be invoking the TI C compiler
# tools individually.
#
%.o : %.c

# Define new dependency chain from .c to .o
%.o : %.asm
	asm30 $(ASM_FLAGS) $< -o $*.o
%.asm : %.opt
	cg30 $(CG_FLAGS) $<
%.opt : %.if
	opt30 $(OPT_FLAGS) $<
%.if : %.c
	ac30 $(AC_FLAGS) $<

# Also define dependency chain from .s (hand coded assembly) to .o
%.o : %.s
	asm30 $(ASM_FLAGS) $< -o $*.o


#
# File Lists
#
UCOS_OBJS := ../source/ucos_ii.o \
	../tic40/os_cpu_c.o \
	../tic40/os_cpu_a.o

BLOCK_OBJS := ../../blocks/c40/source/c40.o

APP_OBJS := ex1.o


#
# Target Definition
#
all: ex1.out

ex1.out: ex1.o
	lnk30 -q -c -w -v1 $(APP_OBJS) $(BLOCK_OBJS) $(UCOS_OBJS) c40.cmd

ex1.o: ex1.c $(BLOCK_OBJS) $(UCOS_OBJS)

clean:
	del ex1.map
	del ex1.o
	del ex1.out
	del ..\source\*.o
	del ..\tic40\*.o
	del ..\..\blocks\c40\source\*.o

⌨️ 快捷键说明

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