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

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

build: create and activate Makefile for ToukyDemo.

File size: 816 bytes
Line 
1
2noinst_PROGRAMS = ToukyDemo
3
4ToukyDemo_SOURCES = \
5    Character.h  ToukyDemo.cpp  ToukyDemo.h  UserReactiveObject.h
6ToukyDemo_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
7ToukyDemo_LDADD =
8ToukyDemo_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
9ToukyDemo_DEPENDENCIES = $(top_builddir)/src/liblol.a
10
11all-local: ToukyDemo$(EXEEXT)
12        test $(MAKE_FSELF) = no || make_fself ToukyDemo$(EXEEXT) ToukyDemo.self
13
14CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
15             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
16             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
17
18SUFFIXES = .lolfx
19.lolfx.o:
20        (echo "char const *"; \
21         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
22         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
23         $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
24         echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
25
Note: See TracBrowser for help on using the repository browser.