12 lines
253 B
Makefile
12 lines
253 B
Makefile
|
cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
|
||
|
|
||
|
obj-y := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c))
|
||
|
obj-y := $(obj-y:.c=.o)
|
||
|
|
||
|
ccflags-y := -Iplatform/hal -Iplatform/cmsis
|
||
|
|
||
|
ifneq ($(HWTIMER_NUM),)
|
||
|
ccflags-y += -DHWTIMER_NUM=$(HWTIMER_NUM)
|
||
|
endif
|
||
|
|