2
0

Makefile 691 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # To run the demos when linked with a shared library (default) ensure that
  3. # libcrypto is on the library path. For example, to run the
  4. # sm_enc demo:
  5. #
  6. # LD_LIBRARY_PATH=../.. ./sms_enc
  7. TESTS = smenc \
  8. smdec \
  9. smsign \
  10. smsign2 \
  11. smver
  12. CFLAGS = -I../../include -g -Wall
  13. LDFLAGS = -L../..
  14. LDLIBS = -lcrypto
  15. all: $(TESTS)
  16. smenc: smenc.o
  17. smdec: smdec.o
  18. smsign: smsign.o
  19. smsign2: smsign2.o
  20. smver: smver.o
  21. $(TESTS):
  22. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
  23. clean:
  24. $(RM) $(TESTS) *.o
  25. test: all
  26. @echo "\nS/MIME tests:"
  27. LD_LIBRARY_PATH=../.. ./smenc
  28. LD_LIBRARY_PATH=../.. ./smdec
  29. LD_LIBRARY_PATH=../.. ./smsign2
  30. LD_LIBRARY_PATH=../.. ./smver