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 11:33:40 +00:00
|
|
|
|
2012-01-02 02:18:34 +00:00
|
|
|
shader_src= \
|
|
|
|
quake2d.frag quakeico.vert quakemdl.frag quakemdl.vert quakespr.frag \
|
|
|
|
quakespr.vert quaketxt.vert
|
|
|
|
shader_gen= \
|
|
|
|
quake2d.fc quakeico.vc quakemdl.fc quakemdl.vc quakespr.fc quakespr.vc \
|
|
|
|
quaketxt.vc
|
2011-12-23 03:19:13 +00:00
|
|
|
|
2011-12-26 09:34:51 +00:00
|
|
|
glsl_src = \
|
2012-01-01 14:58:12 +00:00
|
|
|
glsl_alias.c glsl_draw.c glsl_main.c glsl_particles.c glsl_screen.c \
|
|
|
|
glsl_sprite.c glsl_textures.c
|
2011-12-26 09:34:51 +00:00
|
|
|
|
2012-01-02 19:16:19 +00:00
|
|
|
if BUILD_GLSL
|
2011-12-23 03:19:13 +00:00
|
|
|
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
|