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.

56 lines
1.3 KiB

1 week ago
# Author: XENOBYTE.XYZ
# License: MIT License
# Website: https://XENOBYTE.XYZ
# SkeletonGL core files
SRC= 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
OBJ = $(SRC:.cpp=.o)
OUT = libsgl.a
# include directories
INCLUDES = $(shell pkg-config --cflags --libs --static sdl2) $(shell pkg-config --cflags --libs --static freetype2) $(shell pkg-config glew --cflags --libs --static)
# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g -Wall -std=c++14 -fPIC
# compiler
CCC = clang
# library paths
LIBS = -lm -lstdc++ -pthread -lglut -lGL -lGLU -lGLEW -lfreetype -I/usr/local/include/SDL2 -lSDL2
# compile flags
LDFLAGS = $(SGL_SPECIFIC) -g -fPIC
.SUFFIXES: .cpp
# default: dep $(OUT)
.cpp.o:
$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
$(OUT): $(OBJ)
ar rcs $(OUT) $(OBJ)
# depend: dep
# dep:
# makedepend -- $(CFLAGS) -- $(INCLUDES) $(SRC)
clean:
rm -rf src/skeletonGL/*.o
rm -rf src/skeletonGL/renderer/*.o
rm -rf src/skeletonGL/window/*.o
rm -rf src/skeletonGL/utility/*.o