pinebuds/rtos/rtx5/GCC/Makefile
2022-08-15 17:20:27 +08:00

15 lines
421 B
Makefile

cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
ifeq ($(CPU),m33)
obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)irq_armv8mml_fp.S))
else ifeq ($(CPU),m4)
obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)irq_cm4f.S))
else ifeq ($(CPU),a7)
obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)irq_ca.S))
else
$(error Invalid CPU: $(CPU))
endif
obj-y := $(obj_s:.S=.o)
subdir-asflags-y += -Irtos/rtx5/GCC