diff options
author | Richard Levitte <levitte@openssl.org> | 2016-09-09 01:01:30 +0200 |
---|---|---|
committer | Richard Levitte <richard@levitte.org> | 2016-09-20 18:25:13 +0200 |
commit | 0430efa62fbae715a8cee56e9b2498b8a3c0fe0d (patch) | |
tree | 79d5ad33a3fc88804a296a92b053c499afe48292 | |
parent | 3ed2d8a4b85fd361c733316883174309275f5e29 (diff) |
Crude Makefile for demos/bio/
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit f4566dff06d2539dd01f54c817e2b952b64452e4)
-rw-r--r-- | demos/bio/Makefile | 30 |
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 $@ $< |