Browse Source

build: refactor lolfx build rule into common.am.

legacy
Sam Hocevar sam 12 years ago
parent
commit
ca909bb317
4 changed files with 8 additions and 13 deletions
  1. +8
    -0
      build/autotools/common.am
  2. +0
    -5
      configure.ac
  3. +0
    -4
      src/Makefile.am
  4. +0
    -4
      tutorial/Makefile.am

+ 8
- 0
build/autotools/common.am View File

@@ -15,3 +15,11 @@ lolcheck-recursive:

.PHONY: lolcheck bench

SUFFIXES = .lolfx
.lolfx.o:
(echo "char const *"; \
echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
$(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
echo ";") \
| $(CXXCOMPILE) -xc++ -c - -o $@


+ 0
- 5
configure.ac View File

@@ -441,11 +441,6 @@ dnl Can we build neercs?
AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no" -a "${ac_cv_header_glob_h}" = "yes")


dnl LolFx compilation rule
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 $@'
AC_SUBST(LOLFX_BUILD)


dnl Extra libraries we may need
AC_SUBST(MATH_LIBS)
AC_SUBST(PAM_LIBS)


+ 0
- 4
src/Makefile.am View File

@@ -70,10 +70,6 @@ liblol_a_SOURCES = \
debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h
liblol_a_CPPFLAGS = @LOL_CFLAGS@ -Ibullet

SUFFIXES = .lolfx
.lolfx.o:
$(LOLFX_BUILD)

if TRUE
generated: .FORCE
$(MKDIR_P) generated


+ 0
- 4
tutorial/Makefile.am View File

@@ -12,10 +12,6 @@ CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
$(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
$(noinst_PROGRAMS:%$(EXEEXT)=%.exe)

SUFFIXES = .lolfx
.lolfx.o:
$(LOLFX_BUILD)

noinst_PROGRAMS = 01_triangle 02_cube 03_noise 05_easymesh 08_fbo 11_fractal

01_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx


Loading…
Cancel
Save