source: trunk/tutorial/Makefile.am @ 1540

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

build: factor the LolFx compilation rule into configure.ac.

File size: 1.1 KB
Line 
1
2AM_CPPFLAGS = -I$(top_srcdir)/src
3
4all-local: $(noinst_PROGRAMS)
5        for x in $(noinst_PROGRAMS:%$(EXEEXT)=%); do \
6          test x$(MAKE_FSELF) = xno || make_fself $${x}$(EXEEXT) $${x}.self; \
7        done
8
9CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
10             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
11             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
12
13SUFFIXES = .lolfx
14.lolfx.o:
15        $(LOLFX_BUILD)
16
17noinst_PROGRAMS = 01_triangle 02_cube 11_fractal
18
1901_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx
2001_triangle_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
2101_triangle_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
2201_triangle_DEPENDENCIES = $(top_builddir)/src/liblol.a
23
2402_cube_SOURCES = 02_cube.cpp 02_cube.lolfx
2502_cube_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
2602_cube_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
2702_cube_DEPENDENCIES = $(top_builddir)/src/liblol.a
28
2911_fractal_SOURCES = 11_fractal.cpp 11_fractal.lolfx
3011_fractal_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
3111_fractal_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
3211_fractal_DEPENDENCIES = $(top_builddir)/src/liblol.a
33
Note: See TracBrowser for help on using the repository browser.