source: trunk/neercs/Makefile.am @ 1447

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

neercs: create a skeleton for neercs.

File size: 907 bytes
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/test.lolfx.cpp
10neercs_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
11neercs_LDADD =
12neercs_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
13neercs_DEPENDENCIES = $(top_builddir)/src/liblol.a
14
15all-local: neercs$(EXEEXT)
16        test $(MAKE_FSELF) = no || make_fself neercs$(EXEEXT) neercs.self
17
18CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
19             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
20             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe) \
21             $(filter %.lolfx.cpp, $(SOURCES))
22
23SUFFIXES = .lolfx
24%.lolfx.cpp: %.lolfx
25        echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
26        echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
27        $(SED) 's/"/\\"/g' $^ | $(SED) 's/.*/"&\\n"/' >> $@.tmp
28        echo ";" >> $@.tmp
29        mv $@.tmp $@
30
Note: See TracBrowser for help on using the repository browser.