quakeforge/libs/video/renderer/glsl/Makefile.am
Bill Currie f43592589d Use the new shader system in the bsp renderer.
It mostly works. Skybox is untested, and water surfaces are broken.
2014-01-28 16:22:04 +09:00

37 lines
1 KiB
Makefile

AUTOMAKE_OPTIONS= foreign
AM_CFLAGS= @PREFER_PIC@
AM_CPPFLAGS= -I$(top_srcdir)/include $(GLX_CFLAGS)
shader_src= quakeforge.glsl \
iqm.frag iqm.vert \
quake2d.frag quakeico.vert \
quakepar.frag quakepar.vert quakepnt.frag quakepnt.vert \
quakespr.frag quakespr.vert \
quaketrb.frag quaketxt.vert
shader_gen= quakeforge.slc \
iqm.fc iqm.vc \
quake2d.fc quakeico.vc \
quakepar.fc quakepar.vc quakepnt.fc quakepnt.vc \
quakespr.fc quakespr.vc quaketrb.fc quaketxt.vc
glsl_src = \
glsl_alias.c glsl_bsp.c glsl_draw.c glsl_fog.c glsl_iqm.c glsl_lightmap.c \
glsl_main.c glsl_particles.c glsl_screen.c glsl_shader.c glsl_sprite.c \
glsl_textures.c qfglsl.c vid_common_glsl.c
noinst_LTLIBRARIES= libglsl.la
BUILT_SOURCES= $(shader_gen)
SUFFICES=.frag .vert .fc .vc .slc .glsl
.glsl.slc:
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
.frag.fc:
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
.vert.vc:
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
libglsl_la_SOURCES= $(glsl_src)
EXTRA_DIST = $(glsl_src) $(shader_src) namehack.h
CLEANFILES= *.vc *.fc