source: trunk/games/ToukyDemo/Makefile.am @ 1526

Last change on this file since 1526 was 1526, checked in by touky, 9 years ago

added ToukyDemo to the repo.

File size: 1.3 KB
Line 
1
2noinst_PROGRAMS = orbital
3
4orbital_SOURCES = \
5    orbital.cpp orbital.h \
6    particlesystem.h tank.h player.h gun.h snake.h starfield.h \
7    \
8    Lolnament.h \
9    \
10    generated/location.hh generated/position.hh generated/stack.hh \
11    \
12    gun.cpp gun.h gun-compiler.cpp gun-compiler.h \
13    generated/gun-scanner.cpp \
14    generated/gun-parser.cpp generated/gun-parser.h
15orbital_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
16orbital_LDADD =
17orbital_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
18orbital_DEPENDENCIES = $(top_builddir)/src/liblol.a
19
20all-local: orbital$(EXEEXT)
21        test $(MAKE_FSELF) = no || make_fself orbital$(EXEEXT) orbital.self
22
23if TRUE
24generated: .FORCE
25        $(MKDIR_P) generated
26        rm -f generated/[a-zA-Z]*
27        flex -o generated/gun-scanner.cpp gun-scanner.l
28        bison -o generated/gun-parser.cpp --defines=generated/gun-parser.h \
29              -d -b generated/gun gun-parser.y
30.FORCE:
31endif
32
33EXTRA_DIST = gun-scanner.l gun-parser.y
34CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
35             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
36             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
37
38SUFFIXES = .lolfx
39.lolfx.o:
40        (echo "char const *"; \
41         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
42         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
43         $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
44         echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
45
Note: See TracBrowser for help on using the repository browser.