summaryrefslogtreecommitdiffstats
path: root/CAN-binder/libs/openxc-message-format/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-binder/libs/openxc-message-format/Makefile')
-rw-r--r--CAN-binder/libs/openxc-message-format/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/CAN-binder/libs/openxc-message-format/Makefile b/CAN-binder/libs/openxc-message-format/Makefile
new file mode 100644
index 00000000..7b968e63
--- /dev/null
+++ b/CAN-binder/libs/openxc-message-format/Makefile
@@ -0,0 +1,11 @@
+nanopb: proto
+ make -C libs/nanopb/generator/proto
+ python libs/nanopb/generator/nanopb_generator.py gen/cpp/openxc.pb -f openxc.options
+
+proto: openxc.proto
+ @mkdir -p gen/java
+ @mkdir -p gen/python
+ @mkdir -p gen/cpp
+ protoc -I . -I gen -ogen/cpp/openxc.pb --python_out=gen/python --java_out=gen/java $?
+
+all: nanopb proto