summaryrefslogtreecommitdiffstats
path: root/demos/bio/Makefile
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-09-09 01:01:30 +0200
committerRichard Levitte <levitte@openssl.org>2016-09-20 18:24:24 +0200
commitf4566dff06d2539dd01f54c817e2b952b64452e4 (patch)
tree8a38d334abfbc8519f8e261d7a520bb519ab5328 /demos/bio/Makefile
parentccf11f7ee49a0825caa407ed481c21b4b5933023 (diff)
Crude Makefile for demos/bio/
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'demos/bio/Makefile')
-rw-r--r--demos/bio/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/demos/bio/Makefile b/demos/bio/Makefile
new file mode 100644
index 0000000000..493e8a58a5
--- /dev/null
+++ b/demos/bio/Makefile
@@ -0,0 +1,30 @@
+# Quick instruction:
+# To build against an OpenSSL built in the source tree, do this:
+#
+# make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../..
+#
+# To run the demos when linked with a shared library (default):
+#
+# LD_LIBRARY_PATH=../.. ./server-arg
+# LD_LIBRARY_PATH=../.. ./server-cmod
+# LD_LIBRARY_PATH=../.. ./server-conf
+# LD_LIBRARY_PATH=../.. ./client-arg
+# LD_LIBRARY_PATH=../.. ./client-conf
+# LD_LIBRARY_PATH=../.. ./saccept
+# LD_LIBRARY_PATH=../.. ./sconnect
+
+CFLAGS = $(OPENSSL_INCS_LOCATION)
+LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto $(EX_LIBS)
+
+all: client-arg client-conf saccept sconnect server-arg server-cmod server-conf
+
+client-arg: client-arg.o
+client-conf: client-conf.o
+saccept: saccept.o
+sconnect: sconnect.o
+server-arg: server-arg.o
+server-cmod: server-cmod.o
+server-conf: server-conf.o
+
+client-arg client-conf saccept sconnect server-arg server-cmod server-conf:
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<