25 lines
505 B
Makefile
25 lines
505 B
Makefile
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 += \
|
|
|