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