Changeset 1540


Ignore:
Timestamp:
Jun 30, 2012, 4:31:08 PM (7 years ago)
Author:
sam
Message:

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

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1533 r1540  
    365365
    366366
     367dnl  LolFx compilation rule
     368LOLFX_BUILD='(echo "char const *"; echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; $(SED) '"'"'s/"/\\"/g'"'"' $(filter %.lolfx, $^) | $(SED) '"'"'s/\([^\r]*\).*/"\1\\n"/'"'"'; echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@'
     369AC_SUBST(LOLFX_BUILD)
     370
     371
    367372dnl Extra libraries we may need
    368373AC_SUBST(MATH_LIBS)
  • trunk/games/ToukyDemo/Makefile.am

    r1529 r1540  
    1818SUFFIXES = .lolfx
    1919.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 $@
     20        $(LOLFX_BUILD)
    2521
  • trunk/src/Makefile.am

    r1524 r1540  
    6565SUFFIXES = .lolfx
    6666.lolfx.o:
    67         (echo "char const *"; \
    68          echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
    69          $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
    70          $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
    71          echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
     67        $(LOLFX_BUILD)
    7268
    7369if TRUE
  • trunk/tools/neercs/Makefile.am

    r1512 r1540  
    2929SUFFIXES = .lolfx
    3030.lolfx.o:
    31         (echo "char const *"; \
    32          echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
    33          $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | \
    34          $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
    35          echo ";") | $(CXXCOMPILE) -xc++ -c - -o $@
     31        $(LOLFX_BUILD)
    3632
  • trunk/tutorial/Makefile.am

    r1518 r1540  
    1313SUFFIXES = .lolfx
    1414.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 $@
     15        $(LOLFX_BUILD)
    2016
    2117noinst_PROGRAMS = 01_triangle 02_cube 11_fractal
Note: See TracChangeset for help on using the changeset viewer.