diff options
author | Joursoir <chat@joursoir.net> | 2021-04-14 11:37:07 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-04-14 11:37:07 +0000 |
commit | b0b232520dd8fa6b12246bdfdbf7642336960856 (patch) | |
tree | 445a1d5c5f19201d3317b67c809100236b136c0b | |
parent | 929d8e95e81d3cd6dff9082d235de848bd10c4bb (diff) | |
download | space-simulator-b0b232520dd8fa6b12246bdfdbf7642336960856.tar.gz space-simulator-b0b232520dd8fa6b12246bdfdbf7642336960856.tar.bz2 space-simulator-b0b232520dd8fa6b12246bdfdbf7642336960856.zip |
add Makefile
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9d07d72 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +CXX = g++ +CXXFLAGS = -Wall +LIBS = -lGLEW -lglfw -lGL -Isrc/include/glm +DEFINES = #-DWIREFRAME_MODE +SOURCES = src/application/Application.cpp \ + src/window/Events.cpp \ + src/window/EventsManager.cpp \ + src/window/Window.cpp \ + src/graphics/Camera.cpp \ + src/graphics/Shader.cpp \ + src/graphics/Texture.cpp \ + src/graphics/Mesh.cpp \ + src/xstdlib/xstdlib.cpp \ + src/game/CelestialObject.cpp \ + src/game/objects.cpp \ + src/game/space-simulator.cpp +OBJECTS = ${SOURCES:.cpp=.o} +EXECUTABLE = space-simulator + +.PHONY: all clean + +all: clean $(EXECUTABLE) + +clean: + @rm -rf $(OBJECTS) + +$(EXECUTABLE): $(OBJECTS) + @$(CXX) $(CXXFLAGS) $(LIBS) $(DEFINES) -o $(EXECUTABLE) $(OBJECTS) + +%.o: %.cpp + @$(CXX) $(CXXFLAGS) $(LIBS) $(DEFINES) -c $< -o $@ |