diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-04-15 15:08:34 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-04-17 20:58:24 +0900 |
commit | b2a8fc10e286cf0293ae3f69782f9b5e86b49da0 (patch) | |
tree | bc805bc287ad52fe27edb7207bdbc28ead174931 /doc/examples/composition/files/libhello/Makefile | |
parent | 9cc9ae9b3fc3f1a95d1938d2e8532f198e169f70 (diff) | |
download | buildstream-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/Makefile | 17 |
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 $@ $< |