source: trunk/neercs/Makefile.am @ 1456

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

neercs: import Rez's code in our framework. Not ready yet.

File size: 1.0 KB
Line 
1
2noinst_PROGRAMS = neercs
3
4neercs_SOURCES = \
5    neercs.cpp neercs.h \
6    \
7    video/render.cpp video/render.h
8nodist_neercs_SOURCES = \
9    video/blurh.lolfx.cpp video/blurv.lolfx.cpp video/glow.lolfx.cpp \
10    video/postfx.lolfx.cpp video/radial.lolfx.cpp video/simple.lolfx.cpp
11neercs_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
12neercs_LDADD =
13neercs_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
14neercs_DEPENDENCIES = $(top_builddir)/src/liblol.a
15
16all-local: neercs$(EXEEXT)
17        test $(MAKE_FSELF) = no || make_fself neercs$(EXEEXT) neercs.self
18
19CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
20             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
21             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe) \
22             $(filter %.lolfx.cpp, $(SOURCES))
23
24SUFFIXES = .lolfx
25%.lolfx.cpp: %.lolfx
26        echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
27        echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
28        $(SED) 's/"/\\"/g' $^ | $(SED) 's/\([^\r]*\).*/"\1\\n"/' >> $@.tmp
29        echo ";" >> $@.tmp
30        mv $@.tmp $@
31
Note: See TracBrowser for help on using the repository browser.