source: trunk/tutorial/Makefile.am @ 1518

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

build: reorganise all the build stuff so that it lies in build/ and
make sure each .vcxproj file is with its corresponding source code.

File size: 1.3 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        (echo "char const *"; \
16         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
17         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
18         $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
19         echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
20
21noinst_PROGRAMS = 01_triangle 02_cube 11_fractal
22
2301_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx
2401_triangle_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
2501_triangle_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
2601_triangle_DEPENDENCIES = $(top_builddir)/src/liblol.a
27
2802_cube_SOURCES = 02_cube.cpp 02_cube.lolfx
2902_cube_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
3002_cube_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
3102_cube_DEPENDENCIES = $(top_builddir)/src/liblol.a
32
3311_fractal_SOURCES = 11_fractal.cpp 11_fractal.lolfx
3411_fractal_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
3511_fractal_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
3611_fractal_DEPENDENCIES = $(top_builddir)/src/liblol.a
37
Note: See TracBrowser for help on using the repository browser.