|
@@ -16,7 +16,7 @@ ifndef LT
|
|
|
endif
|
|
|
endif
|
|
|
LTCOMPILE = $(LT) --mode=compile --tag=CC $(CC)
|
|
|
-
|
|
|
+INSTALL_CMD = $(LT) --mode=install install
|
|
|
|
|
|
#Output filenames for various targets.
|
|
|
ifndef LIBTEST_S
|
|
@@ -239,23 +239,14 @@ $(LIBNAME): $(OBJECTS)
|
|
|
$(LIBTEST): $(TOBJECTS)
|
|
|
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./testprof -type f -name "*.lo"` -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT)
|
|
|
|
|
|
-install: $(LIBNAME)
|
|
|
- install -d $(LIBPATH)/pkgconfig
|
|
|
- install -d $(INCPATH)
|
|
|
- $(LT) --mode=install install -c $(LIBNAME) $(LIBPATH)/$(LIBNAME)
|
|
|
- install -m 644 $(HEADERS) $(INCPATH)
|
|
|
+install: .common_install
|
|
|
sed -e 's,^prefix=.*,prefix=$(DESTDIR),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > libtomcrypt.pc
|
|
|
- install -m 644 libtomcrypt.pc $(LIBPATH)/pkgconfig/libtomcrypt.pc
|
|
|
+ install -d $(LIBPATH)/pkgconfig
|
|
|
+ install -m 644 libtomcrypt.pc $(LIBPATH)/pkgconfig/
|
|
|
|
|
|
-install_bins: $(USEFUL_DEMOS)
|
|
|
- install -d $(BINPATH)
|
|
|
- $(LT) --mode=install install -c $(USEFUL_DEMOS) $(BINPATH)
|
|
|
+install_bins: .common_install_bins
|
|
|
|
|
|
-install_test: $(LIBTEST)
|
|
|
- install -d $(LIBPATH)
|
|
|
- install -d $(INCPATH)
|
|
|
- install -m 644 testprof/tomcrypt_test.h $(INCPATH)
|
|
|
- $(LT) --mode=install install -c $(LIBTEST) $(LIBPATH)/$(LIBTEST)
|
|
|
+install_test: .common_install_test
|
|
|
|
|
|
test: $(LIBNAME) $(LIBTEST) $(TESTS)
|
|
|
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(TEST) $(TESTS) $(LIBTEST) $(LIBNAME) $(EXTRALIBS)
|