summaryrefslogtreecommitdiff
path: root/doc/examples/composition/files/libhello/Makefile
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-04-15 15:08:34 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-04-17 20:58:24 +0900
commitb2a8fc10e286cf0293ae3f69782f9b5e86b49da0 (patch)
treebc805bc287ad52fe27edb7207bdbc28ead174931 /doc/examples/composition/files/libhello/Makefile
parent9cc9ae9b3fc3f1a95d1938d2e8532f198e169f70 (diff)
downloadbuildstream-b2a8fc10e286cf0293ae3f69782f9b5e86b49da0.tar.gz
doc/examples/composition: Adding user guide about split-rules and compose elements
Diffstat (limited to 'doc/examples/composition/files/libhello/Makefile')
-rw-r--r--doc/examples/composition/files/libhello/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/examples/composition/files/libhello/Makefile b/doc/examples/composition/files/libhello/Makefile
new file mode 100644
index 000000000..63ee11069
--- /dev/null
+++ b/doc/examples/composition/files/libhello/Makefile
@@ -0,0 +1,17 @@
+# Sample makefile for hello library
+#
+.PHONY: all install
+
+all: libhello.so
+
+install:
+ install -d ${DESTDIR}${PREFIX}/lib
+ install -d ${DESTDIR}${PREFIX}/include
+ install -m 644 libhello.so ${DESTDIR}${PREFIX}/lib
+ install -m 644 libhello.h ${DESTDIR}${PREFIX}/include
+
+%.o: %.c %.h
+ $(CC) -c $< -o $@ -Wall
+
+libhello.so: libhello.o
+ $(CC) -shared -o $@ $<