summaryrefslogtreecommitdiff
path: root/src/examples/eio
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/eio
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/eio')
-rw-r--r--src/examples/eio/Makefile.am8
-rw-r--r--src/examples/eio/Makefile.examples15
2 files changed, 21 insertions, 2 deletions
diff --git a/src/examples/eio/Makefile.am b/src/examples/eio/Makefile.am
index 762a742292..6e5be1f510 100644
--- a/src/examples/eio/Makefile.am
+++ b/src/examples/eio/Makefile.am
@@ -38,6 +38,10 @@ SRCS = \
38eio_file_ls.c \ 38eio_file_ls.c \
39eio_file_copy.c 39eio_file_copy.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)/eio/examples 51 mkdir -p $(datadir)/eio/examples
48 $(install_sh_DATA) -c $(SRCS) $(datadir)/eio/examples 52 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eio/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)/eio/examples/$$f ; \ 56 rm -f $(datadir)/eio/examples/$$f ; \
53 done 57 done
54 58
diff --git a/src/examples/eio/Makefile.examples b/src/examples/eio/Makefile.examples
new file mode 100644
index 0000000000..58070a92bd
--- /dev/null
+++ b/src/examples/eio/Makefile.examples
@@ -0,0 +1,15 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags ecore,eio`
3
4EXAMPLES= eio_file_copy \
5 eio_file_ls
6
7all: examples
8examples: $(EXAMPLES)
9
10$(EXAMPLES):
11 $(CC) -o $@ $@.c $(COMMON_FLAGS)
12
13clean:
14 @echo "Cleaning up built objects..."
15 @rm -Rf $(EXAMPLES)