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)