From f06d05d0fa6d7061f60fb282bc7fb9bad97e5c09 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Fri, 23 Oct 2020 12:58:56 -0400 Subject: [PATCH] add library as dependency for examples in Makefile --- examples/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 385e9e9..222aef6 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -16,11 +16,11 @@ mkdirs: mkdir -p $(BINDIR) $(OBJDIR) .PHONY: mkdirs -$(OBJDIR)/hello_world.o: +$(OBJDIR)/hello_world.o: $(LIB) $(CXX) $(CXXFLAGS) -c -MMD hello_world/main.cpp -o $@ $(CXX) -o $(BINDIR)/hello_world $(LDFLAGS) $@ $(LIB) -$(OBJDIR)/assimp_loading.o: +$(OBJDIR)/assimp_loading.o: $(LIB) $(CXX) $(CXXFLAGS) -c -MMD assimp_loading/main.cpp -o $@ $(CXX) -o $(BINDIR)/assimp_loading $(LDFLAGS) $@ $(LIB)