pinebuds/utils/crash_catcher/Makefile

17 lines
412 B
Makefile

cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c))
obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.S))
obj-y := $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o)
ccflags-y := \
-Iutils/crash_catcher/include \
-Iutils/libc/inc \
-Iplatform/cmsis/inc/ \
-Iservices/nv_section/log_section \
-Irtos/rtx/TARGET_CORTEX_M/ \
-Iutils/xyzmodem/