summaryrefslogtreecommitdiff
path: root/src/examples/emotion
diff options
context:
space:
mode:
authorRicardo de Almeida Gonzaga <ricardo@profusion.mobi>2013-02-08 17:35:24 +0000
committerBruno Dilly <bdilly@profusion.mobi>2013-02-08 17:35:24 +0000
commit512c75908106a60cd74f08c5b16eea96fed55887 (patch)
tree59cedd91e5851f7df9c4423fe8cbf1f767bfdb2f /src/examples/emotion
parente379743c95a06d8aec0bb843919a35e5772423e4 (diff)
efl: add makefile.examples to each lib
Patch by: Ricardo de Almeida Gonzaga <ricardo@profusion.mobi> SVN revision: 83795
Diffstat (limited to 'src/examples/emotion')
-rw-r--r--src/examples/emotion/Makefile.am8
-rw-r--r--src/examples/emotion/Makefile.examples18
2 files changed, 24 insertions, 2 deletions
diff --git a/src/examples/emotion/Makefile.am b/src/examples/emotion/Makefile.am
index b1bf86e654..23adc0ecb9 100644
--- a/src/examples/emotion/Makefile.am
+++ b/src/examples/emotion/Makefile.am
@@ -38,6 +38,10 @@ emotion_generic_subtitle_example.c \
38emotion_border_example.c \ 38emotion_border_example.c \
39emotion_signals_example.c 39emotion_signals_example.c
40 40
41DATA_FILES = Makefile.examples
42
43EXTRA_DIST = $(DATA_FILES)
44
41examples: $(EXTRA_PROGRAMS) 45examples: $(EXTRA_PROGRAMS)
42 46
43clean-local: 47clean-local:
@@ -45,10 +49,10 @@ clean-local:
45 49
46install-examples: 50install-examples:
47 mkdir -p $(datadir)/emotion/examples 51 mkdir -p $(datadir)/emotion/examples
48 $(install_sh_DATA) -c $(SRCS) $(datadir)/emotion/examples 52 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/emotion/examples
49 53
50uninstall-local: 54uninstall-local:
51 for f in $(SRCS); do \ 55 for f in $(SRCS) $(DATA_FILES); do \
52 rm -f $(datadir)/emotion/examples/$$f ; \ 56 rm -f $(datadir)/emotion/examples/$$f ; \
53 done 57 done
54 58
diff --git a/src/examples/emotion/Makefile.examples b/src/examples/emotion/Makefile.examples
new file mode 100644
index 0000000000..e97882d850
--- /dev/null
+++ b/src/examples/emotion/Makefile.examples
@@ -0,0 +1,18 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,emotion`
3
4EXAMPLES= emotion_basic_example \
5 emotion_border_example \
6 emotion_generic_example \
7 emotion_generic_subtitle_example \
8 emotion_signals_example
9
10all: examples
11examples: $(EXAMPLES)
12
13$(EXAMPLES):
14 $(CC) -o $@ $@.c $(COMMON_FLAGS)
15
16clean:
17 @echo "Cleaning up built objects..."
18 @rm -Rf $(EXAMPLES)