From be3e40aa40ba12262aba550b2bab6a69e8b4db2e Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Thu, 22 Jul 2021 01:31:50 +0000 Subject: [PATCH] Fixed makefile such that final linking isnt redone. Still need to ensure build dir is created for parent objects --- parsers/Makefile | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/parsers/Makefile b/parsers/Makefile index b7186a3..8c292e8 100644 --- a/parsers/Makefile +++ b/parsers/Makefile @@ -1,8 +1,11 @@ -_OBJS-par= +_OBJS-par=tester.o -export OBJS-par=$(patsubst %,$(BUILD_DIR)/%,$(_OBJS-par)) +export OBJS-par=$(patsubst %,$(BUILD_DIR)/parsers/%,$(_OBJS-par)) default: $(OBJS-par) -$(BUILD_DIR)/%.o: %.cpp +$(BUILD_DIR)/parsers/%.o: %.cpp $(BUILD_DIR)/parsers $(CXX) -c $(CXXFLAGS) -o $@ $< + +$(BUILD_DIR)/parsers: + mkdir -p $@ -- Gitblit v1.10.0