2011-12-23 03:19:13 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
|
|
|
AM_CFLAGS= @PREFER_PIC@
|
2013-11-24 04:11:50 +00:00
|
|
|
AM_CPPFLAGS= -I$(top_srcdir)/include $(GLX_CFLAGS)
|
2011-12-26 11:33:40 +00:00
|
|
|
|
2014-01-28 04:28:35 +00:00
|
|
|
shader_src= quakeforge.glsl
|
|
|
|
shader_gen= quakeforge.slc
|
2011-12-23 03:19:13 +00:00
|
|
|
|
2011-12-26 09:34:51 +00:00
|
|
|
glsl_src = \
|
2012-05-11 03:49:14 +00:00
|
|
|
glsl_alias.c glsl_bsp.c glsl_draw.c glsl_fog.c glsl_iqm.c glsl_lightmap.c \
|
2013-02-26 12:52:35 +00:00
|
|
|
glsl_main.c glsl_particles.c glsl_screen.c glsl_shader.c glsl_sprite.c \
|
|
|
|
glsl_textures.c qfglsl.c vid_common_glsl.c
|
2011-12-26 09:34:51 +00:00
|
|
|
|
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
|
|
|
|
2013-05-12 04:51:02 +00:00
|
|
|
SUFFICES=.frag .vert .fc .vc .slc .glsl
|
|
|
|
.glsl.slc:
|
|
|
|
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
|
2011-12-25 06:53:12 +00:00
|
|
|
.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)
|
|
|
|
|
2012-06-29 01:49:21 +00:00
|
|
|
EXTRA_DIST = $(glsl_src) $(shader_src) namehack.h
|
2014-01-28 07:26:24 +00:00
|
|
|
CLEANFILES= *.vc *.fc *.slc
|