makefile.shared 699 B

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