summaryrefslogtreecommitdiff
path: root/doc/examples/strict-mode/files/hello/Makefile.dynamic
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/strict-mode/files/hello/Makefile.dynamic')
-rw-r--r--doc/examples/strict-mode/files/hello/Makefile.dynamic12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/examples/strict-mode/files/hello/Makefile.dynamic b/doc/examples/strict-mode/files/hello/Makefile.dynamic
new file mode 100644
index 000000000..52b0f72cd
--- /dev/null
+++ b/doc/examples/strict-mode/files/hello/Makefile.dynamic
@@ -0,0 +1,12 @@
+# Sample makefile for hello.c
+#
+.PHONY: all install
+
+all: hello
+
+install: all
+ install -d ${DESTDIR}${PREFIX}/bin
+ install -m 755 hello ${DESTDIR}${PREFIX}/bin
+
+hello: hello.c
+ $(CC) -Wall -o $@ $< -lhello