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.
 
 
 

54 lines
1.9 KiB

# ╔═╗╦╔═╔═╗╦ ╔═╗╔╦╗╔═╗╔╗╔╔═╗╦
# ╚═╗╠╩╗║╣ ║ ║╣ ║ ║ ║║║║║ ╦║
# ╚═╝╩ ╩╚═╝╩═╝╚═╝ ╩ ╚═╝╝╚╝╚═╝╩═╝
# ─┐ ┬┌─┐┌┐┌┌─┐┌┐ ┬ ┬┌┬┐┌─┐ ─┐ ┬┬ ┬┌─┐
# ┌┴┬┘├┤ ││││ │├┴┐└┬┘ │ ├┤ ┌┴┬┘└┬┘┌─┘
# ┴ └─└─┘┘└┘└─┘└─┘ ┴ ┴ └─┘o┴ └─ ┴ └─┘
# Author: SENEX @ XENOBYTE.XYZ
# License: MIT License
# Website: https://xenobyte.xyz/projects/?nav=skeletongl
CC=clang++
SGL_SPECIFIC =
#LDFLAGS= -g -Wall -fPIC -m64 -lm -lstdc++ -std=c++14 $(shell pkg-config --cflags --libs sdl2) $(shell pkg-config --cflags --libs freetype2) $(shell pkg-config glew --cflags --libs) -pthread -lglut
LDFLAGS= $(SGL_SPECIFIC) -g -Wall -m64 -lm -lstdc++ -std=c++14 $(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=cas-sgl
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