Import makefile that can be used by GNU/Make. Invoke from a shell with `make`.
@@ -37,3 +37,4 @@
# End of https://www.toptal.com/developers/gitignore/api/c++
+bin/
@@ -0,0 +1,25 @@
+CXX=g++
+CXXFLAGS=-std=c++14
+LDFLAGS=-lSDL -lSDL_gfx
+INC=
+LIB=
+
+EXEC=BiomeBox
+SRC=$(shell find . -name '*.cpp')
+OBJ=$(SRC:.cpp=.o)
+$(EXEC): $(OBJ)
+ @mkdir -p bin
+ $(CXX) -o bin/$@ $^ $(LDFLAGS) $(LIB)
+%.o : %.cpp
+ $(CXX) -o $@ -c $< $(CXXFLAGS) $(INC)
+clean:
+ rm -rf $(OBJ)
+distclean: clean
+ rm -rf ./bin
+exec: $(EXEC)
+ ./bin/$(EXEC)