From 1992f6f4456a2c08078f418b3149b22cd16b133a Mon Sep 17 00:00:00 2001 From: zawz Date: Sun, 16 Jun 2019 14:11:18 +0200 Subject: [PATCH] Fixed obj and bin not existing and not created --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 686b44d..04f6dfa 100644 --- a/makefile +++ b/makefile @@ -5,6 +5,8 @@ BINDIR=bin NAME = zmidimap +LDFLAGS = -lpthread + CC=g++ CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c++17 ifeq ($(RELEASE),true) @@ -13,7 +15,8 @@ else CXXFLAGS += -g endif -LDFLAGS = -lpthread +$(shell mkdir -p $(ODIR)) +$(shell mkdir -p $(BINDIR)) # automatically finds .hpp DEPS = $(shell if [ -n "$(ld $(IDIR))" ] ; then ls $(IDIR)/*.hpp ; fi)