examples/elocation: Add example makefile for elocation
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 28 Oct 2014 16:35:05 +0000 (17:35 +0100)
committerStefan Schmidt <s.schmidt@samsung.com>
Tue, 11 Nov 2014 10:10:12 +0000 (11:10 +0100)
To make the example worthwhile to run alone add a basic makefile for the
example like we do for others.

src/examples/elocation/Makefile.examples [new file with mode: 0644]

diff --git a/src/examples/elocation/Makefile.examples b/src/examples/elocation/Makefile.examples
new file mode 100644 (file)
index 0000000..20ab2b2
--- /dev/null
@@ -0,0 +1,14 @@
+CC=gcc
+COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,eldbus,elocation`
+
+EXAMPLES= elocation
+
+all: examples
+examples: $(EXAMPLES)
+
+$(EXAMPLES):
+       $(CC) -o $@ $@.c $(COMMON_FLAGS)
+
+clean:
+       @echo "Cleaning up built objects..."
+       @rm -Rf $(EXAMPLES)