citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit b2d7d67a8d86ff414bfb9203544ba476d4b537ec
parent 9e3a3adfae7974a54832f4032b6ea9d9b2f5a028
Author: Kyle Milz <milz@imac.0x30.net>
Date:   Wed,  3 Mar 2021 22:09:37 -0800

gl: add Makefile

Diffstat:
Agl/Makefile | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/gl/Makefile b/gl/Makefile @@ -0,0 +1,39 @@ + +# else if $(OS) = "Darwin" { +# GL_EXTRALIB = "-framework OpenGL" ; +# } +#else if $(OS) = "Linux" { +# INST_EXTRALIB = "-lbsd" ; +# GL_EXTRALIB = "-lbsd" ; +# } + +PROG= citrun_gl + +all: ${PROG} + +GL_PKGS = glu glfw3 glew glyphy freetype2 # osmesa +GL_SRCS = gl.cc \ + gl_atlas.cc \ + gl_buffer.cc \ + gl_font.cc \ + gl_main.cc \ + gl_runtime.cc \ + gl_shader.cc \ + gl_state.cc \ + gl_view.cc \ + matrix4x4.c + +#Stringize gl_atlas_glsl.h : gl_atlas.glsl ; +#Stringize gl_vshader_glsl.h : gl_vshader.glsl ; +#Stringize gl_fshader_glsl.h : gl_fshader.glsl ; + +CXXFLAGS_GL != pkg-config --cflags $(GL_PKGS) +CXXFLAGS += $(CXXFLAGS_GL) -DPREFIX=\"$(PREFIX)\" +CPPFLAGS += -I../lib +GL_LDLIBS !!= pkg-config --libs $(GL_PKGS) + +citrun_gl: $(GL_SRCS:cc=o) + $(CXX) $(GL_LDFLAGS) -o $@ $(GL_SRCS:cc=o) -lm $(GL_LDLIBS) + + +.include "../Makefile"