pinebuds/utils/crash_catcher/Makefile

17 lines
412 B
Makefile
Raw Permalink Normal View History

2022-08-15 04:20:27 -05:00
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/