1# Quick instruction: 2# To build against an OpenSSL built in the source tree, do this: 3# 4# make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../.. 5# 6# To run the demos when linked with a shared library (default): 7# 8# LD_LIBRARY_PATH=../.. ./server-arg 9# LD_LIBRARY_PATH=../.. ./server-cmod 10# LD_LIBRARY_PATH=../.. ./server-conf 11# LD_LIBRARY_PATH=../.. ./client-arg 12# LD_LIBRARY_PATH=../.. ./client-conf 13# LD_LIBRARY_PATH=../.. ./saccept 14# LD_LIBRARY_PATH=../.. ./sconnect 15 16CFLAGS = $(OPENSSL_INCS_LOCATION) 17LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto $(EX_LIBS) 18 19all: client-arg client-conf saccept sconnect server-arg server-cmod server-conf 20 21client-arg: client-arg.o 22client-conf: client-conf.o 23saccept: saccept.o 24sconnect: sconnect.o 25server-arg: server-arg.o 26server-cmod: server-cmod.o 27server-conf: server-conf.o 28 29client-arg client-conf saccept sconnect server-arg server-cmod server-conf: 30 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 31 32clean: 33 $(RM) *.o client-arg client-conf saccept sconnect server-arg server-cmod server-conf 34