rk_engine/Makefile

17 lines
485 B
Makefile
Raw Normal View History

SOURCES = cpp/opengl/render_context_glx.cpp cpp/opengl/render_opengles.cpp cpp/math.cpp
2022-08-28 04:23:13 +02:00
OUTPUTFILE = engine.so
2022-09-05 11:49:47 +02:00
CXXFLAGS = -fpic -Wall -Werror -O2 -flto -fomit-frame-pointer -ffast-math -funroll-loops -fno-rtti -fno-exceptions
2022-08-28 04:23:13 +02:00
.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