pinebuds/utils/boot_struct/Makefile
2022-08-15 17:20:27 +08:00

11 lines
258 B
Makefile

cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
obj-y := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c $(cur_dir)*.S))
obj-y := $(obj-y:.c=.o)
obj-y := $(obj-y:.S=.o)
ccflags-y := -Iplatform/hal
ifeq ($(SECURE_BOOT),1)
ccflags-y += -DSECURE_BOOT
endif