citrun

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

Makefile (890B)


      1 PROG =	citrun_gl
      2 
      3 #
      4 # Darwin users need this.
      5 #LD_ADD += -framework OpenGL
      6 #
      7 # Linux users need this.
      8 #LD_ADD += "-lbsd"
      9 #
     10 
     11 PKGS = glu glfw3 glew glyphy freetype2 #osmesa
     12 
     13 PKGS_CFLAGS !=	pkg-config --cflags ${PKGS}
     14 PKGS_LDADD !=	pkg-config --libs ${PKGS}
     15 
     16 SRCS += gl.cc
     17 SRCS += gl_atlas.cc
     18 SRCS += gl_buffer.cc
     19 SRCS += gl_font.cc
     20 SRCS += gl_main.cc
     21 SRCS += gl_runtime.cc
     22 SRCS += gl_shader.cc
     23 SRCS += gl_state.cc
     24 SRCS += gl_view.cc
     25 SRCS += matrix4x4.c
     26 
     27 CXXFLAGS +=	${PKGS_CFLAGS}
     28 #CXXFLAGS +=	-Wmissing-prototypes -Wno-uninitialized -Wstrict-prototypes
     29 #CXXFLAGS +=	-Wunused-parameter -Wshadow
     30 LDADD +=	${PKGS_LDADD}
     31 
     32 #Stringize gl_atlas_glsl.h :	gl_atlas.glsl ;
     33 #Stringize gl_vshader_glsl.h :	gl_vshader.glsl ;
     34 #Stringize gl_fshader_glsl.h :	gl_fshader.glsl ;
     35 
     36 .SUFFIXES: .h .glsl
     37 .glsl.h:
     38 	echo "static const char *$@ = R\"(" > $@
     39 	cat $< >> $@
     40 	echo ")\";" >> $@
     41 
     42 
     43 .include <bsd.prog.mk>