From f204eecf6bdb656a6d2da46b85e81ec64c76e396 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 11 Mar 2014 09:50:59 +0000 Subject: Added Eolian support. This adds needed support for compilation of .eo files. --- Makefile_Eolian_Helper.am | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile_Eolian_Helper.am (limited to 'Makefile_Eolian_Helper.am') diff --git a/Makefile_Eolian_Helper.am b/Makefile_Eolian_Helper.am new file mode 100644 index 000000000..6106379c1 --- /dev/null +++ b/Makefile_Eolian_Helper.am @@ -0,0 +1,24 @@ +if HAVE_EOLIAN_GEN +EOLIAN_GEN = @eolian_gen@ +_EOLIAN_GEN_DEP = +else +EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT} +_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT} +endif + +AM_V_EOL = $(am__v_EOL_@AM_V@) +am__v_EOL_ = $(am__v_EOL_@AM_DEFAULT_V@) +am__v_EOL_0 = @echo " EOLIAN " $@; + +SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h + +%.eo.c: %.eo ${_EOLIAN_GEN_DEP} + $(AM_V_EOL)$(EOLIAN_GEN) --eo1 --legacy $(EOLIAN_FLAGS) --gc -o $@ $< + +%.eo.h: %.eo ${_EOLIAN_GEN_DEP} + $(AM_V_EOL)$(EOLIAN_GEN) --eo1 $(EOLIAN_FLAGS) --gh -o $@ $< + +%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP} + $(AM_V_EOL)$(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gh -o $@ $< + +CLEANFILES += $(BUILT_SOURCES) -- cgit v1.2.1