summaryrefslogtreecommitdiff
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
parent3ccfd987ecc22a366892f654c0f783569b567f8d (diff)
autotools: allow reuse of some macro for subdirectory Eolian build.
-rw-r--r--src/Makefile_Eolian_Files_Helper.am26
-rw-r--r--src/Makefile_Eolian_Helper.am26
2 files changed, 27 insertions, 25 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 @@
1
2AM_V_EOL = $(am__v_EOL_@AM_V@)
3am__v_EOL_ = $(am__v_EOL_@AM_DEFAULT_V@)
4am__v_EOL_0 = @echo " EOLIAN " $@;
5
6SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h .eot .eot.h
7
8%.eo.c: %.eo ${_EOLIAN_GEN_DEP}
9 $(AM_V_EOL) \
10 $(MKDIR_P) $(dir $@); \
11 $(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
12
13%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
14 $(AM_V_EOL) \
15 $(MKDIR_P) $(dir $@); \
16 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
17
18%.eot.h: %.eot ${_EOLIAN_GEN_DEP}
19 $(AM_V_EOL) \
20 $(MKDIR_P) $(dir $@); \
21 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
22
23%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
24 $(AM_V_EOL) \
25 $(MKDIR_P) $(dir $@); \
26 $(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gh -o $@ $<
diff --git a/src/Makefile_Eolian_Helper.am b/src/Makefile_Eolian_Helper.am
index 87a4f3917b..ddf09e54a4 100644
--- a/src/Makefile_Eolian_Helper.am
+++ b/src/Makefile_Eolian_Helper.am
@@ -6,28 +6,4 @@ EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT
6_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT} 6_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT}
7endif 7endif
8 8
9AM_V_EOL = $(am__v_EOL_@AM_V@) 9include $(top_srcdir)/src/Makefile_Eolian_Files_Helper.am
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 .eot .eot.h
14
15%.eo.c: %.eo ${_EOLIAN_GEN_DEP}
16 $(AM_V_EOL) \
17 $(MKDIR_P) $(dir $@); \
18 $(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
19
20%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
21 $(AM_V_EOL) \
22 $(MKDIR_P) $(dir $@); \
23 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
24
25%.eot.h: %.eot ${_EOLIAN_GEN_DEP}
26 $(AM_V_EOL) \
27 $(MKDIR_P) $(dir $@); \
28 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
29
30%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
31 $(AM_V_EOL) \
32 $(MKDIR_P) $(dir $@); \
33 $(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gh -o $@ $<