Conway's game of life simulator made in SkeletonGL & C++ with a focus on performance
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

1 week ago
# Author: XENOBYTE.XYZ
# License: MIT License
# Website: https://XENOBYTE.XYZ
CC=clang++
SGL_SPECIFIC =
LDFLAGS= $(SGL_SPECIFIC) -g -Wall -m64 -lm -lstdc++ -std=c++20 $(shell pkg-config --cflags --libs sdl2) $(shell pkg-config --cflags --libs freetype2) $(shell pkg-config glew --cflags --libs) -pthread
# SkeletonGL core files
SOURCES= src/main.cpp \
src/window.cpp \
src/cell_auto_simulation.cpp \
src/skeletonGL/window/SGL_Window.cpp \
src/skeletonGL/utility/SGL_AssetManager.cpp \
src/skeletonGL/utility/SGL_Utility.cpp \
src/skeletonGL/renderer/SGL_OpenGLManager.cpp \
src/skeletonGL/renderer/SGL_Shader.cpp \
src/skeletonGL/renderer/SGL_Texture.cpp \
src/skeletonGL/renderer/SGL_PostProcessor.cpp \
src/skeletonGL/renderer/SGL_Camera.cpp \
src/skeletonGL/renderer/SGL_Renderer.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=dexe
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $@
.cpp.o:
$(CC) $< $(LDFLAGS) -c -o $@
clean-app:
rm -rf src/*.o
clean:
rm -rf src/*.o
rm -rf src/skeletonGL/*.o
rm -rf src/skeletonGL/renderer/*.o
rm -rf src/skeletonGL/window/*.o
rm -rf src/skeletonGL/utility/*.o
clean_pro:
rm -rf src/*.o