source: trunk/neercs/Makefile.am @ 1462

Last change on this file since 1462 was 1462, checked in by sam, 8 years ago

neercs: use a libcaca canvas instead of a character string.

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