mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 02:11:35 +00:00
9df7370bcd
Still nothing drawn, but this gets my shader scripts into C without me having to look at ugly strings.
27 lines
538 B
Makefile
27 lines
538 B
Makefile
AUTOMAKE_OPTIONS= foreign
|
|
|
|
AM_CFLAGS= @PREFER_PIC@
|
|
INCLUDES= -I$(top_srcdir)/include $(GLX_CFLAGS)
|
|
shader_src= quaketxt.frag quaketxt.vert
|
|
shader_gen= quaketxt.fc quaketxt.vc
|
|
|
|
if BUILD_GL
|
|
noinst_LTLIBRARIES= libglsl.la
|
|
BUILT_SOURCES= $(shader_gen)
|
|
else
|
|
noinst_LTLIBRARIES=
|
|
BUILT_SOURCES=
|
|
endif
|
|
|
|
SUFFICES=.frag .vert .fc .vc
|
|
.frag.fc:
|
|
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
|
|
.vert.vc:
|
|
sed -e 's/^/"/' -e 's/$$/\\n"/' $< > $@
|
|
|
|
glsl_src = \
|
|
glsl_draw.c glsl_main.c
|
|
|
|
libglsl_la_SOURCES= $(glsl_src)
|
|
|
|
EXTRA_DIST = $(glsl_src) $(shader_src)
|