Changeset 1383


Ignore:
Timestamp:
May 14, 2012, 12:54:27 AM (9 years ago)
Author:
sam
Message:

build: build .lolfx files from automake.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r1316 r1383  
    7373tools/make-font
    7474# Our data
     75*.lolfx.cpp
  • trunk/src/Makefile.am

    r1361 r1383  
    4646    debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h \
    4747    debug/quad.cpp debug/quad.h
     48nodist_liblol_a_SOURCES = \
     49    gpu/defaultmaterial.lolfx.cpp \
     50    gpu/emptymaterial.lolfx.cpp
    4851liblol_a_CPPFLAGS = @LOL_CFLAGS@
     52
     53SUFFIXES = .lolfx
     54%.lolfx.cpp: %.lolfx
     55        echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
     56        echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
     57        $(SED) 's/"/\\"/g' $^ | $(SED) 's/.*/"&"/' >> $@.tmp
     58        echo ";" >> $@.tmp
     59        mv $@.tmp $@
    4960
    5061sdl_sources = \
Note: See TracChangeset for help on using the changeset viewer.