📄 key4.mak
字号:
# make file made by GWB33
# make file made by gnu make
# macro definitions for target file
TARGET= key4
# macro definitions for tools & dir
TOOL_DIR = C:/gnu33
CC= $(TOOL_DIR)/xgcc
AS= $(TOOL_DIR)/xgcc
LD= $(TOOL_DIR)/ld
RM= $(TOOL_DIR)/rm
LIB_DIR= $(TOOL_DIR)/lib
SRC_DIR= .
# macro definitions for tool flags
CFLAGS= -B$(TOOL_DIR)/ -c -gstabs -mlong-calls -fno-builtin -medda32 -mgda=0 -mdp=1 -mgdp=dp -O1 -I$(TOOL_DIR)/include -IE:/key/include
ASFLAGS= -B$(TOOL_DIR)/ -c -xassembler-with-cpp -Wa,--gstabs -medda32
LDFLAGS= -T $(TARGET).lds -Map $(TARGET).map -N
# macro definitions for object flags
OBJS= appmain.o \
boot.o \
Drv_led.o \
drv_ledtimer.o \
vector.o \
Drv_keyo.o \
OBJLDS=
# macro definitions for library flags
LIBS= $(LIB_DIR)/libc.a $(LIB_DIR)/libgcc.a
# dependency list start
### src definition start
SRC1_DIR= ../src
### src definition end
$(TARGET).elf : $(OBJS) $(TARGET).mak $(TARGET).lds
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(OBJLDS) $(LIBS)
## appmain.c
appmain.o : $(SRC1_DIR)/appmain.c
$(CC) $(CFLAGS) $(SRC1_DIR)/appmain.c
## boot.c
boot.o : $(SRC1_DIR)/boot.c
$(CC) $(CFLAGS) $(SRC1_DIR)/boot.c
## Drv_led.c
Drv_led.o : $(SRC1_DIR)/Drv_led.c
$(CC) $(CFLAGS) $(SRC1_DIR)/Drv_led.c
## drv_ledtimer.c
drv_ledtimer.o : $(SRC1_DIR)/drv_ledtimer.c
$(CC) $(CFLAGS) $(SRC1_DIR)/drv_ledtimer.c
## vector.c
vector.o : $(SRC1_DIR)/vector.c
$(CC) $(CFLAGS) $(SRC1_DIR)/vector.c
## Drv_keyo.c
Drv_keyo.o : $(SRC1_DIR)/Drv_keyo.c
$(CC) $(CFLAGS) $(SRC1_DIR)/Drv_keyo.c
# dependency list end
# clean files except source
clean:
$(RM) -f $(OBJS) $(TARGET).elf $(TARGET).map
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -