Renderer and Python ctypes bindings.
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
SOURCES = cpp/opengl/render_context_glx.cpp cpp/opengl/render_opengles.cpp cpp/math.cpp cpp/render.cpp
|
||||
OUTPUTFILE = engine.so
|
||||
|
||||
CXXFLAGS = -fpic -std=c++20 -Wall -Werror -O2 -flto -fomit-frame-pointer -ffast-math -funroll-loops -fno-rtti -fno-exceptions
|
||||
|
||||
.PHONY: all
|
||||
all: clean $(OUTPUTFILE)
|
||||
find . -name "*.o" -type f -delete
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(OUTPUTFILE)
|
||||
find . -name "*.o" -type f -delete
|
||||
|
||||
$(OUTPUTFILE): $(subst .cpp,.o,$(SOURCES))
|
||||
$(CXX) -shared $(CXXFLAGS) -s -o $@ $^ -lGLESv2 -lGLX -lX11
|
Reference in New Issue
Block a user