source: trunk/test/tutorial/Makefile.am @ 1453

Last change on this file since 1453 was 1453, checked in by sam, 9 years ago

build: remove \r from shader files before compilation.

File size: 1.5 KB
Line 
1
2AM_CPPFLAGS = -I$(top_srcdir)/src
3
4all-local: $(noinst_PROGRAMS)
5        for x in $(noinst_PROGRAMS:%$(EXEEXT)=%); do \
6          test x$(MAKE_FSELF) = xno || make_fself $${x}$(EXEEXT) $${x}.self; \
7        done
8
9CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
10             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
11             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe) \
12             $(filter %.lolfx.cpp, $(SOURCES))
13
14SUFFIXES = .lolfx
15%.lolfx.cpp: %.lolfx
16        echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
17        echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
18        $(SED) 's/"/\\"/g' $^ | $(SED) 's/\([^\r]*\).*/"\1\\n"/' >> $@.tmp
19        echo ";" >> $@.tmp
20        mv $@.tmp $@
21
22noinst_PROGRAMS = 01_triangle 02_cube 03_fractal
23
2401_triangle_SOURCES = 01_triangle.cpp
25nodist_01_triangle_SOURCES = 01_triangle.lolfx.cpp
2601_triangle_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
2701_triangle_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
2801_triangle_DEPENDENCIES = $(top_builddir)/src/liblol.a
29
3002_cube_SOURCES = 02_cube.cpp
31nodist_02_cube_SOURCES = 02_cube.lolfx.cpp
3202_cube_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
3302_cube_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
3402_cube_DEPENDENCIES = $(top_builddir)/src/liblol.a
35
3603_fractal_SOURCES = 03_fractal.cpp
37nodist_03_fractal_SOURCES = 03_fractal.lolfx.cpp
3803_fractal_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
3903_fractal_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
4003_fractal_DEPENDENCIES = $(top_builddir)/src/liblol.a
41
Note: See TracBrowser for help on using the repository browser.