import glcxx example app to start

This commit is contained in:
josh committed 2018-01-23 05:48:38 -05:00
1 parent 9f08819dc1
commit 9bad7a1d86
22 files changed
+752 -1758

No files matched your search

+8 -12
View File
@@ -1,15 +1,11 @@
ifeq ($(OS),Windows_NT)
GL_LIB := opengl32
else
GL_LIB := GL
endif
CFLAGS := $(shell freetype-config --cflags) $(shell sdl2-config --cflags)
CXXFLAGS := $(CFLAGS)
LDFLAGS := -l$(GL_LIB) -ldl -lfreetype $(shell sdl2-config --libs) $(shell freetype-config --libs)
freetype2gl3: gl3w.o freetype2gl3.o GLShader.o GLProgram.o
$(CXX) -o $@ $^ $(LDFLAGS)
.PHONY: build
build:
./waf build
.PHONY: clean
clean:
-rm -f freetype2gl3
./waf clean
.PHONY: distclean
distclean:
./waf distclean