2020-10-21 10:13:47 +01:00
|
|
|
CPPEXAMPLE_MOD_DIR := $(USERMOD_DIR)
|
|
|
|
|
|
|
|
# Add our source files to the respective variables.
|
|
|
|
SRC_USERMOD += $(CPPEXAMPLE_MOD_DIR)/examplemodule.c
|
|
|
|
SRC_USERMOD_CXX += $(CPPEXAMPLE_MOD_DIR)/example.cpp
|
|
|
|
|
|
|
|
# Add our module directory to the include path.
|
|
|
|
CFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR)
|
2022-02-15 09:16:46 +00:00
|
|
|
CXXFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR) -std=c++11
|
2020-10-21 10:13:47 +01:00
|
|
|
|
|
|
|
# We use C++ features so have to link against the standard library.
|
|
|
|
LDFLAGS_USERMOD += -lstdc++
|