makefile 661 B

12345678910111213141516171819202122232425
  1. # make test harness, it is good.
  2. CFLAGS += -Wall -W -Os -I../../src/headers/ -I./
  3. # add -g3 for ccmalloc debugging
  4. #CFLAGS += -g3
  5. # if you're not debugging
  6. CFLAGS += -fomit-frame-pointer
  7. default: test
  8. OBJECTS=test.o cipher_hash_test.o mac_test.o modes_test.o \
  9. pkcs_1_test.o store_test.o rsa_test.o ecc_test.o dsa_test.o dh_tests.o der_tests.o
  10. #uncomment this to get heap checking [e.g. memory leaks]. Note
  11. #that you *MUST* build libtomcrypt.a with -g3 enabled [and make install it]
  12. #
  13. #
  14. #CCMALLOC = -lccmalloc -ldl
  15. test: $(OBJECTS)
  16. $(CC) $(CFLAGS) $(OBJECTS) /usr/lib/libtomcrypt.a $(CCMALLOC) -o test
  17. clean:
  18. rm -rf test *.o *.obj *.exe *~ .libs