summaryrefslogtreecommitdiff
path: root/Makefile_Eolian_Helper.am
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-03-11 09:50:59 +0000
committerTom Hacohen <tom@stosb.com>2014-03-11 09:51:15 +0000
commitf204eecf6bdb656a6d2da46b85e81ec64c76e396 (patch)
tree4dea4f07b889adfba78e3419c0718087070aa5f2 /Makefile_Eolian_Helper.am
parent97039d7f206670cba1ce5b2dfd4c31944dace4c8 (diff)
Added Eolian support.
This adds needed support for compilation of .eo files.
Diffstat (limited to 'Makefile_Eolian_Helper.am')
-rw-r--r--Makefile_Eolian_Helper.am24
1 files changed, 24 insertions, 0 deletions
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 @@
1if HAVE_EOLIAN_GEN
2EOLIAN_GEN = @eolian_gen@
3_EOLIAN_GEN_DEP =
4else
5EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
6_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT}
7endif
8
9AM_V_EOL = $(am__v_EOL_@AM_V@)
10am__v_EOL_ = $(am__v_EOL_@AM_DEFAULT_V@)
11am__v_EOL_0 = @echo " EOLIAN " $@;
12
13SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h
14
15%.eo.c: %.eo ${_EOLIAN_GEN_DEP}
16 $(AM_V_EOL)$(EOLIAN_GEN) --eo1 --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
17
18%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
19 $(AM_V_EOL)$(EOLIAN_GEN) --eo1 $(EOLIAN_FLAGS) --gh -o $@ $<
20
21%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
22 $(AM_V_EOL)$(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gh -o $@ $<
23
24CLEANFILES += $(BUILT_SOURCES)