makefile

来自「sharp s Lh75401 PWM audio的例子」· 代码 · 共 47 行

TXT
47
字号

BSP 	=kev75401
CSP	=lh754xx
GEN	=abl
TOOL	=
SOURCE  =../../../source
LINC    =../../../include

########################################################################
#
# Pick up the default build rules 
#
########################################################################

include $(SHARPMCU_SOFTWARE)/makerule/$(CSP)/make.$(CSP).$(TOOL)

########################################################################
#
# Pick up the assembler and C source files in the directory  
#
########################################################################
ifeq ($(TOOL), gnu)
ASM_EXT	=asm
endif

ifeq ($(TOOL), arm)
ASM_EXT	=s
endif

ifeq ($(TOOL), ghs)
ASM_EXT	=as
endif

OBJS  =$(SRC:%.c=%.o) $(ASM:%.$(ASM_EXT)=%.o)
AFLAGS +=-I$(LINC)
CFLAGS +=-g -I$(LINC)

########################################################################
#
# Compile the code base 
#
########################################################################

include $(SHARPMCU_SOFTWARE)/makerule/common/make.rules.build


⌨️ 快捷键说明

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