makefile

来自「lwip在ucos上的移植」· 代码 · 共 41 行

TXT
41
字号
#
#  makefile 
#  the makefile for ucos-ii armulator port
#
#  Bugs Report:  li ming (lmcs00@mails.tsinghua.edu.cn)
#  Release:      2003-02-13 19:57:14 
#

# include the all-project-shared file 
include ../dir.make	

# define this project information
PRJ_DIR  = $(SAMPLE_DIR)/ucos_test
PRJ_NAME = ucos_test

OS_DIR = $(KERNEL_DIR)/ucos

# define building objs for this project
START_FILE	= $(ARCH_DIR)/start.S

ARCH_FILES  	= $(ARCH_DIR)/at91_aic.c $(ARCH_DIR)/at91_usart.c $(ARCH_DIR)/at91_tc.c $(ARCH_DIR)/at91_init.c
LIB_FILES	= $(LIB_DIR)/skyeye_stdio.c $(LIB_DIR)/skyeye_printf.c
OS_FILES 	= $(wildcard $(OS_DIR)/*.c) $(wildcard $(OS_DIR)/*.S)
APP_FILES	= main_entry.c

OBJS_FILES	= $(ARCH_FILES) $(LIB_FILES) $(APP_FILES) $(OS_FILES)

# define building objs for this project
START_OBJ  	= $(notdir $(START_FILE:.S=.o))
_OBJS 		= $(notdir $(OBJS_FILES:.c=.o))
OBJS 		= $(_OBJS:.S=.o)

# define include dir-names
INCDIR	= -I$(LIB_DIR)/  -I$(OS_DIR)/ -I$(ARCH_DIR)/

# define compiling and linking FLAGS
CPFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -g -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float
ASFLAGS := -D__ASSEMBLY__ -DNO_MM -g -mapcs-32 -marmv4 -msoft-float -mno-fpu -g

# include the all-project-shared file 
include ../rules.make	

⌨️ 快捷键说明

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