source: trunk/neercs/Makefile.am @ 1485

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

build: MinGW compilation fixes, rename libcaca.lib to caca.lib so that
g++ understands -lcaca directly; also add -DCACA_STATIC to the default flags.

File size: 980 bytes
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 \
10    video/blurh.lolfx video/blurv.lolfx video/glow.lolfx \
11    video/postfx.lolfx video/radial.lolfx video/simple.lolfx \
12    video/text.lolfx
13neercs_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ @CACA_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
25SUFFIXES = .lolfx
26.lolfx.o:
27        (echo "char const *"; \
28         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
29         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
30         $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
31         echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
32
Note: See TracBrowser for help on using the repository browser.