Hi Wei,

Below (and attached) is a patch which adds additional targets to
'clean', and allows CP to complete even if the static or shared
library is missing. Continuing execution on a CP error usually ensures
cryptest.exe is copied.

Jeff

$ svn diff GNUmakefile
Index: GNUmakefile
===================================================================
--- GNUmakefile (revision 525)
+++ GNUmakefile (working copy)
@@ -137,14 +137,14 @@
        ./cryptest.exe v

 clean:
-       $(RM) cryptest.exe libcryptopp.a $(LIBOBJS) $(TESTOBJS) cryptopp.dll
libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe
$(DLLOBJS) $(LIBIMPORTOBJS) $(TESTIMPORTOBJS) $(DLLTESTOBJS)
+       $(RM) cryptest.exe libcryptopp.a libcryptopp.so $(LIBOBJS)
$(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a
cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS)
$(TESTIMPORTOBJS) $(DLLTESTOBJS)

 install:
        $(MKDIR) -p $(PREFIX)/include/cryptopp $(PREFIX)/lib $(PREFIX)/bin
        $(CP) *.h $(PREFIX)/include/cryptopp
-       $(CP) *.a $(PREFIX)/lib
-       $(CP) *.so $(PREFIX)/lib
-       $(CP) *.exe $(PREFIX)/bin
+       -$(CP) *.a $(PREFIX)/lib
+       -$(CP) *.so $(PREFIX)/lib
+       -$(CP) *.exe $(PREFIX)/bin

 libcryptopp.a: $(LIBOBJS)
        $(AR) $(ARFLAGS) $@ $(LIBOBJS)

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
Index: GNUmakefile
===================================================================
--- GNUmakefile	(revision 525)
+++ GNUmakefile	(working copy)
@@ -137,14 +137,14 @@
 	./cryptest.exe v
 
 clean:
-	$(RM) cryptest.exe libcryptopp.a $(LIBOBJS) $(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTIMPORTOBJS) $(DLLTESTOBJS)
+	$(RM) cryptest.exe libcryptopp.a libcryptopp.so $(LIBOBJS) $(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTIMPORTOBJS) $(DLLTESTOBJS)
 
 install:
 	$(MKDIR) -p $(PREFIX)/include/cryptopp $(PREFIX)/lib $(PREFIX)/bin
 	$(CP) *.h $(PREFIX)/include/cryptopp
-	$(CP) *.a $(PREFIX)/lib
-	$(CP) *.so $(PREFIX)/lib
-	$(CP) *.exe $(PREFIX)/bin
+	-$(CP) *.a $(PREFIX)/lib
+	-$(CP) *.so $(PREFIX)/lib
+	-$(CP) *.exe $(PREFIX)/bin
 
 libcryptopp.a: $(LIBOBJS)
 	$(AR) $(ARFLAGS) $@ $(LIBOBJS)

Reply via email to