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.

34 lines
734 B

1 week ago
# Author: XENOBYTE.XYZ
# License: MIT License
# Website: https://XENOBYTE.XYZ
CC=clang
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 libsgl.a
# SkeletonGL core files
SOURCES= src/main.cpp \
src/window.cpp \
src/cell_auto_simulation.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=sexe
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $@
.cpp.o:
$(CC) $< $(LDFLAGS) -c -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