summaryrefslogtreecommitdiff
path: root/src/app/prototest
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-13 13:34:20 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-13 13:34:20 +0100
commit6f416f1957a18e6b00963db6f8d416e1c41bb044 (patch)
tree67553466aac7309ba6dd07a316565fbbb7c6a38e /src/app/prototest
parentd8b578f42c5fbac101c77249c05939fd04d50722 (diff)
Distinguish between C and C++ targets
Diffstat (limited to 'src/app/prototest')
-rw-r--r--src/app/prototest/Makefile.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/app/prototest/Makefile.inc b/src/app/prototest/Makefile.inc
index a33e46f..d3dad26 100644
--- a/src/app/prototest/Makefile.inc
+++ b/src/app/prototest/Makefile.inc
@@ -10,20 +10,26 @@ endif
ifeq (${prototest_mpack}, 1)
COMMON_FLAGS += -DPROTOTEST_MPACK
- TARGETS += src/lib/mpack/mpack.cc
+ CXX_TARGETS += src/lib/mpack/mpack.cc
INCLUDES += -Iinclude/lib/mpack
endif
ifeq (${prototest_nanopb}, 1)
COMMON_FLAGS += -DPROTOTEST_NANOPB
- TARGETS += src/app/prototest/nanopb.pb.cc src/lib/nanopb/pb_common.cc
- TARGETS += src/lib/nanopb/pb_decode.cc src/lib/nanopb/pb_encode.cc
+ CXX_TARGETS += src/app/prototest/nanopb.pb.cc src/lib/nanopb/pb_common.cc
+ CXX_TARGETS += src/lib/nanopb/pb_decode.cc src/lib/nanopb/pb_encode.cc
INCLUDES += -Iinclude/lib/nanopb
endif
+ifeq (${prototest_ubjson}, 1)
+ COMMON_FLAGS += -DPROTOTEST_UBJSON
+ CXX_TARGETS += src/lib/ubjson/ubjr.cc src/lib/ubjson/ubjw.cc
+ INCLUDES += -Iinclude/lib/ubjson
+endif
+
ifeq (${prototest_xdr}, 1)
COMMON_FLAGS += -DPROTOTEST_XDR
- TARGETS += src/os/object/xdrstream.cc src/os/object/xdrinput.cc
+ CXX_TARGETS += src/os/object/xdrstream.cc src/os/object/xdrinput.cc
endif
%.pb.cc: %.proto