aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Eolian_Files_Helper.am
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-04-13 17:28:31 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-04-14 16:07:32 -0700
commite109341fdbf11318aaca6903c5ab6e50308d207f (patch)
treee295836bd377686323db6ae57b58d7a5657900a5 /src/Makefile_Eolian_Files_Helper.am
parenteet: make it possible to build the library alone. (diff)
downloadefl-e109341fdbf11318aaca6903c5ab6e50308d207f.tar.gz
autotools: allow reuse of some macro for subdirectory Eolian build.
Diffstat (limited to 'src/Makefile_Eolian_Files_Helper.am')
-rw-r--r--src/Makefile_Eolian_Files_Helper.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Makefile_Eolian_Files_Helper.am b/src/Makefile_Eolian_Files_Helper.am
new file mode 100644
index 0000000000..1260d718c5
--- /dev/null
+++ b/src/Makefile_Eolian_Files_Helper.am
@@ -0,0 +1,26 @@
+
+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 .eot .eot.h
+
+%.eo.c: %.eo ${_EOLIAN_GEN_DEP}
+ $(AM_V_EOL) \
+ $(MKDIR_P) $(dir $@); \
+ $(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
+
+%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
+ $(AM_V_EOL) \
+ $(MKDIR_P) $(dir $@); \
+ $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
+
+%.eot.h: %.eot ${_EOLIAN_GEN_DEP}
+ $(AM_V_EOL) \
+ $(MKDIR_P) $(dir $@); \
+ $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
+
+%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
+ $(AM_V_EOL) \
+ $(MKDIR_P) $(dir $@); \
+ $(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gh -o $@ $<