2011-12-23 03:19:13 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
|
|
|
AM_CFLAGS= @PREFER_PIC@
|
|
|
|
INCLUDES= -I$(top_srcdir)/include $(GLX_CFLAGS)
|
2011-12-25 06:53:12 +00:00
|
|
|
shader_src= quaketxt.frag quaketxt.vert
|
|
|
|
shader_gen= quaketxt.fc quaketxt.vc
|
2011-12-23 03:19:13 +00:00
|
|
|
|
|
|
|
if BUILD_GL
|
|
|
|
noinst_LTLIBRARIES= libglsl.la
|
2011-12-25 06:53:12 +00:00
|
|
|
BUILT_SOURCES= $(shader_gen)
|
2011-12-23 03:19:13 +00:00
|
|
|
else
|
|
|
|
noinst_LTLIBRARIES=
|
2011-12-25 06:53:12 +00:00
|
|
|
BUILT_SOURCES=
|
2011-12-23 03:19:13 +00:00
|
|
|
endif
|
|
|
|
|
2011-12-25 06:53:12 +00:00
|
|
|
SUFFICES=.frag .vert .fc .vc
|
|
|
|
.frag.fc:
|
|
|
|
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
|
|
|
|
.vert.vc:
|
|
|
|
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
|
|
|
|
|
2011-12-23 03:19:50 +00:00
|
|
|
glsl_src = \
|
|
|
|
glsl_draw.c glsl_main.c
|
2011-12-23 03:19:13 +00:00
|
|
|
|
|
|
|
libglsl_la_SOURCES= $(glsl_src)
|
|
|
|
|
2011-12-25 06:53:12 +00:00
|
|
|
EXTRA_DIST = $(glsl_src) $(shader_src)
|