From 5578c3e34248279f195cb9ae9a0cd61d9379e6da Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 Aug 2018 14:48:11 +0800 Subject: [PATCH] Better build flow This will make sub directory first, and generate final so file --- sources/gst-yoloplugin/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/gst-yoloplugin/Makefile b/sources/gst-yoloplugin/Makefile index 32e2b84..bc793ae 100644 --- a/sources/gst-yoloplugin/Makefile +++ b/sources/gst-yoloplugin/Makefile @@ -57,7 +57,7 @@ PKGS:= gstreamer-1.0 gstreamer-base-1.0 gstreamer-video-1.0 CFLAGS+=$(shell pkg-config --cflags $(PKGS)) LIBS+=$(shell pkg-config --libs $(PKGS)) -all: $(LIB) +all: $(DEP) $(LIB) %.o: %.cpp $(INCS) Makefile @echo $(CFLAGS) @@ -75,3 +75,5 @@ install: $(LIB) clean: rm -rf $(OBJS) $(LIB) + rm -f ./yoloplugin_lib/obj/*.o + rm -f ./yoloplugin_lib/*.a