summaryrefslogtreecommitdiff
path: root/doc/examples/integration-commands/files/libhello/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/integration-commands/files/libhello/Makefile')
-rw-r--r--doc/examples/integration-commands/files/libhello/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/examples/integration-commands/files/libhello/Makefile b/doc/examples/integration-commands/files/libhello/Makefile
new file mode 100644
index 000000000..63ee11069
--- /dev/null
+++ b/doc/examples/integration-commands/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 $@ $<