2011-12-23 03:19:13 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
|
|
|
AM_CFLAGS= @PREFER_PIC@
|
|
|
|
INCLUDES= -I$(top_srcdir)/include $(GLX_CFLAGS)
|
2011-12-26 08:09:09 +00:00
|
|
|
shader_src= quake2d.frag quaketxt.vert
|
|
|
|
shader_gen= quake2d.fc quaketxt.vc
|
2011-12-23 03:19:13 +00:00
|
|
|
|
2011-12-26 09:34:51 +00:00
|
|
|
glsl_src = \
|
|
|
|
glsl_draw.c glsl_main.c glsl_particles.c glsl_screen.c glsl_textures.c
|
|
|
|
|
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:13 +00:00
|
|
|
libglsl_la_SOURCES= $(glsl_src)
|
|
|
|
|
2011-12-25 06:53:12 +00:00
|
|
|
EXTRA_DIST = $(glsl_src) $(shader_src)
|
2011-12-26 07:39:02 +00:00
|
|
|
CLEANFILES= *.vc *.fc
|