summaryrefslogtreecommitdiffstats
path: root/demos/guide/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'demos/guide/Makefile')
-rw-r--r--demos/guide/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/demos/guide/Makefile b/demos/guide/Makefile
new file mode 100644
index 0000000000..54c6979f43
--- /dev/null
+++ b/demos/guide/Makefile
@@ -0,0 +1,16 @@
+#
+# To run the demos when linked with a shared library (default):
+#
+# LD_LIBRARY_PATH=../.. ./tls-client-block
+
+CFLAGS = -I../../include -g
+LDFLAGS = -L../..
+LDLIBS = -lcrypto -lssl
+
+all: tls-client-block
+
+tls-client-block: tls-client-block.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
+
+clean:
+ $(RM) *.o tls-client-block