用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
783 B

# KLite makefile
# jiangxiaogang<kerndev@foxmail.com>
# 2017.6.14
CC := /mingw32/arm/bin/arm-none-eabi-gcc
AR := /mingw32/arm/bin/arm-none-eabi-ar
CFLAGS :=-W -O0 -fshort-wchar
SRCPATH:= ../../sources
SRCDIRS:= $(SRCPATH)/kernel
INCDIRS:= -I$(SRCDIRS)
ALLSRC := $(wildcard $(SRCDIRS)/*.c)
ALLOBJ := $(ALLSRC:%.c=%.o)
TARGET := kernel.lib
ifdef ARCH
include $(ARCH).mk
target: $(ALLOBJ)
@$(AR) -r $(TARGET) $(ALLOBJ)
@echo make done.
endif
help:
@echo "usage:"
@echo " make ARCH=target"
@echo "target:"
@echo " cortex-m0"
@echo " cortex-m3"
@echo " cortex-m4"
clean:
@rm -rf $(ALLOBJ) $(TARGET)
@echo clean done.
%.o: %.s
@echo compiling $<
@$(CC) $(CFLAGS) $(INCDIRS) -c $< -o $@
%.o: %.c
@echo compiling $<
@$(CC) $(CFLAGS) $(INCDIRS) -c $< -o $@