From 2f81135e3217e3e3fb1efae254e03891997e8551 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Wed, 20 Nov 2019 17:19:05 +0000 Subject: [PATCH] err, it can't build services.h --- messaging/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/messaging/Makefile b/messaging/Makefile index c29e92b6db01e5..fac58b37a0ca8c 100644 --- a/messaging/Makefile +++ b/messaging/Makefile @@ -4,13 +4,13 @@ CC := clang BASEDIR = ../.. PHONELIBS = ../../phonelibs -CXXFLAGS := -g -O3 -fPIC -std=c++11 -Wall -Wextra -Wshadow -Weffc++ -Wstrict-aliasing -Wpedantic -Werror -MMD +CXXFLAGS := -g -O3 -fPIC -std=c++11 -Wall -Wextra -Wshadow -Weffc++ -Wstrict-aliasing -Werror -MMD LDLIBS=-lm -lstdc++ -lrt -lpthread UNAME_M := $(shell uname -m) -YAML_FLAGS = -I$(PHONELIBS)/yaml-cpp/include +YAML_FLAGS = -I$(PHONELIBS)/yaml-cpp/include -I../ YAML_LIB = $(abspath $(PHONELIBS)/yaml-cpp/lib/libyaml-cpp.a) ifeq ($(UNAME_M),aarch64) @@ -78,6 +78,9 @@ messaging.so: $(OBJS) ar rcsD '$@' $^ libs_a/*.o rm -r libs_a +../services.h: ../services.py ../service_list.yaml + python3 ../services.py > ../services.h + clean: @echo "[ CLEAN ]" rm -rf *.so *.a bridge demo libs_a libs_so test_runner $(OBJS) $(DEPS) $(TEST_OBJS) $(TEST_DEPS)