You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637
  1. AM_CPPFLAGS = -I$(top_srcdir)/src
  2. all-local: $(noinst_PROGRAMS)
  3. for x in $(noinst_PROGRAMS:%$(EXEEXT)=%); do \
  4. test x$(MAKE_FSELF) = xno || make_fself $${x}$(EXEEXT) $${x}.self; \
  5. done
  6. CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
  7. $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
  8. $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
  9. SUFFIXES = .lolfx
  10. .lolfx.o:
  11. (echo "char const *"; \
  12. echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
  13. $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
  14. $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
  15. echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
  16. noinst_PROGRAMS = 01_triangle 02_cube 11_fractal
  17. 01_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx
  18. 01_triangle_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
  19. 01_triangle_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
  20. 01_triangle_DEPENDENCIES = $(top_builddir)/src/liblol.a
  21. 02_cube_SOURCES = 02_cube.cpp 02_cube.lolfx
  22. 02_cube_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
  23. 02_cube_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
  24. 02_cube_DEPENDENCIES = $(top_builddir)/src/liblol.a
  25. 11_fractal_SOURCES = 11_fractal.cpp 11_fractal.lolfx
  26. 11_fractal_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
  27. 11_fractal_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
  28. 11_fractal_DEPENDENCIES = $(top_builddir)/src/liblol.a