Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. CFLAGS = $(OPENSSL_INCS_LOCATION)
  16. LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto $(EX_LIBS)
  17. all: client-arg client-conf saccept sconnect server-arg server-cmod server-conf
  18. client-arg: client-arg.o
  19. client-conf: client-conf.o
  20. saccept: saccept.o
  21. sconnect: sconnect.o
  22. server-arg: server-arg.o
  23. server-cmod: server-cmod.o
  24. server-conf: server-conf.o
  25. client-arg client-conf saccept sconnect server-arg server-cmod server-conf:
  26. $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
  27. clean:
  28. $(RM) *.o client-arg client-conf saccept sconnect server-arg server-cmod server-conf