From 7781e734032ee63eb6444269a74a35db43633d1a Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Thu, 4 Mar 2021 16:16:11 -0500 Subject: [PATCH] update makefile --- Makefile | 6 +++++- README | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e902b90..8e5c732 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,15 @@ OBJECTS := $(patsubst $(SRCDIR)/%.cpp, $(OBJDIR)/%.o, $(SOURCES)) BIN := $(BINDIR)/orbital_shipping -all: $(BIN) $(TEST_BIN) +all: mkdirs $(BIN) $(TEST_BIN) .PHONY: all -include $(OBJDIR)/*.d +mkdirs: + mkdir -p ./bin ./build +.PHONY: mkdirs + $(BIN): $(COMMON_OBJECTS) $(OBJECTS) $(LIB) $(CXX) -o $(BIN) $(LDFLAGS) $(COMMON_OBJECTS) $(OBJECTS) $(LIB) diff --git a/README b/README index f6a7e7a..c7a7e91 100644 --- a/README +++ b/README @@ -13,7 +13,7 @@ TODO: Building: install dependencies for your environment: - eg) $ sudo pacman -S assimp glew glm sdl2 catch2 + eg) $ sudo pacman -S assimp glew glm sdl2 catch2 gcc make checkout, and initialise submodule dependencies: $ git submodule init $ git submodule update --recursive