Makefile 498 B

12345678910111213141516171819202122232425262728
  1. #
  2. # To run the demos when linked with a shared library (default) ensure
  3. # that libcrypto is on the library path. For example:
  4. #
  5. # LD_LIBRARY_PATH=../.. ./rsa_encode
  6. TESTS = ec_encode \
  7. rsa_encode
  8. CFLAGS = -I../../include -g -Wall
  9. LDFLAGS = -L../..
  10. LDLIBS = -lcrypto
  11. all: $(TESTS)
  12. ec_encode: ec_encode.o
  13. rsa_encode: rsa_encode.o
  14. $(TESTS):
  15. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
  16. clean:
  17. $(RM) *.o $(TESTS)
  18. .PHONY: test
  19. test: all
  20. @echo "\nencode tests:"
  21. @echo "skipped"