Changeset 1924 for trunk/build


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

build: refactor lolfx build rule into common.am.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.