makefile 878 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. CFLAGS += -I../src/headers -I./ -Wall -W
  2. # ranlib tools
  3. ifndef RANLIB
  4. RANLIB=ranlib
  5. endif
  6. ifeq ($V,1)
  7. silent=
  8. else
  9. silent=@
  10. endif
  11. %.o: %.c
  12. ifneq ($V,1)
  13. @echo " * ${CC} $@"
  14. endif
  15. ${silent} ${CC} ${CFLAGS} -c $< -o $@
  16. OBJECTS = base64_test.o cipher_hash_test.o der_tests.o no_prng.o \
  17. dsa_test.o ecc_test.o mac_test.o misc_test.o modes_test.o pkcs_1_test.o rsa_test.o \
  18. store_test.o rotate_test.o test_driver.o x86_prof.o katja_test.o dh_test.o \
  19. pkcs_1_pss_test.o pkcs_1_oaep_test.o pkcs_1_emsa_test.o pkcs_1_eme_test.o
  20. ifndef LIBTEST_S
  21. LIBTEST_S=libtomcrypt_prof.a
  22. endif
  23. default: $(LIBTEST_S)
  24. $(LIBTEST_S): $(OBJECTS)
  25. ifneq ($V,1)
  26. @echo " * ${AR} $@"
  27. endif
  28. ${silent} $(AR) $(ARFLAGS) $@ $(OBJECTS)
  29. ifneq ($V,1)
  30. @echo " * ${RANLIB} $@"
  31. endif
  32. ${silent} $(RANLIB) $@
  33. clean:
  34. rm -f *.o *.a *.gcov *.gcda *.gcno