cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c08990a08182646160f0112b71fb3290d2aa67ee

commit c08990a08182646160f0112b71fb3290d2aa67ee
Author: Savio Sena <[email protected]>
Date:   Fri May 9 14:55:26 2014 +0200

    examples: fix eolian_cxx Makefile.am to work with --with-eolian-cxx.
    
    Summary:
    Includes Makefile_Eolian*_Helper.am and -- since
    _EOLIAN_GEN_DEP and _EOLIAN_CXX_DEP can't be resolved from
    src/examples -- redefine the generation rules locally.
    
    Reviewers: cedric, stefan, stefan_schmidt
    
    CC: felipealmeida, cedric
    
    Differential Revision: https://phab.enlightenment.org/D836
    
    Signed-off-by: Cedric Bail <[email protected]>
---
 src/examples/eolian_cxx/Makefile.am | 45 +++++++++++++++++++++++--------------
 1 file changed, 28 insertions(+), 17 deletions(-)

diff --git a/src/examples/eolian_cxx/Makefile.am 
b/src/examples/eolian_cxx/Makefile.am
index 8127e65..3d126df 100644
--- a/src/examples/eolian_cxx/Makefile.am
+++ b/src/examples/eolian_cxx/Makefile.am
@@ -2,6 +2,17 @@
 AUTOMAKE_OPTIONS = subdir-objects
 
 MAINTAINERCLEANFILES = Makefile.in
+CLEANFILES =
+
+EOLIAN_FLAGS = \
+  -I$(srcdir) \
+  -I$(top_srcdir)/src/lib/eo \
+  -I$(top_srcdir)/src/lib/evas/canvas \
+  -I$(top_srcdir)/src/lib/edje \
+  -I$(top_srcdir)/src/lib/ecore_audio
+
+include $(top_srcdir)/src/Makefile_Eolian_Helper.am
+include $(top_srcdir)/src/Makefile_Eolian_Cxx_Helper.am
 
 AM_CXXFLAGS = \
        -I$(srcdir) \
@@ -51,6 +62,9 @@ GENERATED = \
        colourablesquare.eo.h \
        colourablesquare.eo.hh
 
+BUILT_SOURCES = $(GENERATED)
+CLEANFILES += $(BUILT_SOURCES)
+
 EOS = \
        colourable.eo \
        colourablesquare.eo
@@ -71,30 +85,27 @@ EXTRA_PROGRAMS = \
 DATA_FILES = Makefile.examples $(EOS)
 CLEANFILES =
 
-eolian_cxx_simple_01_SOURCES = eolian_cxx_simple_01.cc $(IMPL)
-eolian_cxx_simple_01_DEPENDENCIES = $(GENERATED)
+eolian_cxx_simple_01_SOURCES = \
+       eolian_cxx_simple_01.cc \
+       colourable.c \
+       colourablesquare.c
 
-eolian_cxx_inherit_01_SOURCES = eolian_cxx_inherit_01.cc $(IMPL)
-eolian_cxx_inherit_01_DEPENDENCIES = $(GENERATED)
+eolian_cxx_simple_01.$(OBJEXT): $(GENERATED)
 
-EOLIAN_GEN = $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
-EOLIAN_CXX = $(top_builddir)/src/bin/eolian_cxx/eolian_cxx${EXEEXT}
-EOLIAN_FLAGS = \
--I$(srcdir) \
--I$(top_srcdir)/src/lib/eo \
--I$(top_srcdir)/src/lib/evas/canvas \
--I$(top_srcdir)/src/lib/edje \
--I$(top_srcdir)/src/lib/ecore_audio
+eolian_cxx_inherit_01_SOURCES = \
+       eolian_cxx_inherit_01.cc \
+       colourable.c \
+       colourablesquare.c
 
-SUFFIXES = .eo .eo.c .eo.h .eo.hh
+eolian_cxx_inherit_01.$(OBJEXT): $(GENERATED)
 
-%.eo.hh: %.eo $(EOLIAN_CXX)
-       $(AM_V_EOLCXX)$(EOLIAN_CXX) $(EOLIAN_FLAGS) -I./$< -o $@
+%.eo.hh: %.eo
+       $(AM_V_EOLCXX)$(EOLIAN_CXX) $(EOLIAN_FLAGS) -I$< -o $@
 
-%.eo.c: %.eo $(EOLIAN_GEN)
+%.eo.c: %.eo
        $(AM_V_EOL)$(EOLIAN_GEN) --eo --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
 
-%.eo.h: %.eo $(EOLIAN_GEN)
+%.eo.h: %.eo
        $(AM_V_EOL)$(EOLIAN_GEN) --eo $(EOLIAN_FLAGS) --gh -o $@ $<
 
 examples: $(EOS) $(GENERATED) $(EXTRA_PROGRAMS)

-- 


Reply via email to