f407ve_packetusart_c/platforms/platform-test-f4-ll/component.mk

23 lines
725 B
Makefile

SELF_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
REL_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
ifeq ($(MKDBG), 1)
$(info >>> $(REL_DIR)/component.mk)
endif
$(eval C_SOURCES += $(wildcard $(REL_DIR)/platform/*.c))
$(eval COMMON_INCLUDES += \
-I$(REL_DIR) \
-I$(REL_DIR)/cpputest_i386/include \
-I$(REL_DIR)/subhook_i386/include)
$(eval LIBDIR += -L$(REL_DIR)/cpputest_i386/lib -L$(REL_DIR)/subhook_i386/lib)
$(eval LIBS += -lCppUTestExt -lCppUTest -lsubhook -lpthread)
$(eval COMPONENT_DEPS += $(REL_DIR)/cpputest_i386 $(REL_DIR)/subhook_i386)
$(REL_DIR)/cpputest_i386:
$(REL_DIR)/build_cpputest.sh
$(REL_DIR)/subhook_i386:
$(REL_DIR)/build_subhook.sh
ifeq ($(MKDBG), 1)
$(info <<<)
endif