makefile.shared 732 B

1234567891011121314151617181920
  1. CC=libtool --mode=compile gcc
  2. CFLAGS += -I../src/headers -I./ -Wall -W
  3. OBJECTS = base64_test.o cipher_hash_test.o der_tests.o \
  4. dsa_test.o ecc_test.o mac_test.o modes_test.o pkcs_1_test.o rsa_test.o \
  5. store_test.o test.o x86_prof.o
  6. ifndef LIBTEST
  7. LIBTEST=libtomcrypt_prof.la
  8. LIBTEST_S=libtomcrypt_prof.a
  9. endif
  10. default: $(LIBTEST)
  11. $(LIBTEST): $(OBJECTS)
  12. libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION)
  13. libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]o" | xargs` -o $(LIBTEST_S)
  14. ranlib $(LIBTEST_S)
  15. libtool --silent --mode=install install -c $@ $(LIBPATH)/$@