pinebuds/utils/rom_utils/Makefile

26 lines
505 B
Makefile
Raw Permalink Normal View History

2022-08-15 04:20:27 -05:00
cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
rulib-y :=
rulib-y += $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)$(CHIP)/*.c $(cur_dir)$(CHIP)/*.cpp $(cur_dir)$(CHIP)/*.S))
rulib-y := $(rulib-y:.c=.o)
rulib-y := $(rulib-y:.cpp=.o)
rulib-y := $(rulib-y:.S=.o)
-include $(cur_dir)$(CHIP)/Makefile
$(cur_dir)$(CHIP)/Makefile: ;
ifeq ($(rulib-y),)
rulib-y := rom_utils_dummy.o
endif
ROM_UTILS_LIB := $(CHIP)_librom_utils
$(ROM_UTILS_LIB)-y := $(rulib-y)
obj-y := $(ROM_UTILS_LIB).a
ccflags-y += \