Changeset 1924


Ignore:
Timestamp:
Sep 17, 2012, 2:30:54 PM (7 years ago)
Author:
sam
Message:

build: refactor lolfx build rule into common.am.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/autotools/common.am

    r1923 r1924  
    1616.PHONY: lolcheck bench
    1717
     18SUFFIXES = .lolfx
     19.lolfx.o:
     20        (echo "char const *"; \
     21         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
     22         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
     23         echo ";") \
     24        | $(CXXCOMPILE) -xc++ -c - -o $@
     25
  • trunk/configure.ac

    r1778 r1924  
    442442
    443443
    444 dnl  LolFx compilation rule
    445 LOLFX_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 $@'
    446 AC_SUBST(LOLFX_BUILD)
    447 
    448 
    449444dnl Extra libraries we may need
    450445AC_SUBST(MATH_LIBS)
  • trunk/src/Makefile.am

    r1923 r1924  
    7070    debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h
    7171liblol_a_CPPFLAGS = @LOL_CFLAGS@ -Ibullet
    72 
    73 SUFFIXES = .lolfx
    74 .lolfx.o:
    75         $(LOLFX_BUILD)
    7672
    7773if TRUE
  • trunk/tools/neercs/Makefile.am

    r1923 r1924  
    3636             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
    3737
    38 SUFFIXES = .lolfx
    39 .lolfx.o:
    40         $(LOLFX_BUILD)
    41 
    4238old_sources = \
    4339    old/actions.c \
  • trunk/tutorial/Makefile.am

    r1923 r1924  
    1212             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
    1313             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
    14 
    15 SUFFIXES = .lolfx
    16 .lolfx.o:
    17         $(LOLFX_BUILD)
    1814
    1915noinst_PROGRAMS = 01_triangle 02_cube 03_noise 05_easymesh 08_fbo 11_fractal
Note: See TracChangeset for help on using the changeset viewer.