--- a/Makefile.am
+++ b/Makefile.am
-@@ -1,10 +1,10 @@
--SUBDIRS = src ctaocrypt examples testsuite\r
+@@ -1,4 +1,4 @@
+-SUBDIRS = src ctaocrypt examples testsuite sslSniffer\r
+SUBDIRS = src ctaocrypt\r
EXTRA_DIST = cyassl.dsp cyassl.dsw certs/*.pem certs/*.der certs/*.txt \\r
lib/dummy cyassl.sln cyassl.vcproj cyassl-iphone.xcodeproj/project.pbxproj \\r
- doc/*.pdf\r
- \r
- basic:\r
-- cd src; $(MAKE); cd ../testsuite; $(MAKE); cd ../\r
-+ cd src; $(MAKE); cd ../\r
- \r
- openssl-links:\r
- cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \\r
+ doc/*.pdf swig/README swig/*.i swig/cyassl_adds.c swig/*.sh swig/runme.* \\r
--- a/Makefile.in
+++ b/Makefile.in
-@@ -190,7 +190,7 @@ target_os = @target_os@
+@@ -193,7 +193,7 @@ target_os = @target_os@
target_vendor = @target_vendor@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
--SUBDIRS = src ctaocrypt examples testsuite
+-SUBDIRS = src ctaocrypt examples testsuite sslSniffer
+SUBDIRS = src ctaocrypt
EXTRA_DIST = cyassl.dsp cyassl.dsw certs/*.pem certs/*.der certs/*.txt \
lib/dummy cyassl.sln cyassl.vcproj cyassl-iphone.xcodeproj/project.pbxproj \
- doc/*.pdf
-@@ -638,7 +638,7 @@ uninstall-am:
-
+ doc/*.pdf swig/README swig/*.i swig/cyassl_adds.c swig/*.sh swig/runme.* \
+@@ -643,7 +643,7 @@ uninstall-am:
+ # !!!! first line of rule has to start with a hard (real) tab, not spaces
basic:
- cd src; $(MAKE); cd ../testsuite; $(MAKE); cd ../
+ cd src; $(MAKE); cd ../
\r
--- a/ctaocrypt/Makefile.in
+++ b/ctaocrypt/Makefile.in
-@@ -174,7 +174,7 @@ target_os = @target_os@
+@@ -177,7 +177,7 @@ target_os = @target_os@
target_vendor = @target_vendor@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
--- a/Makefile.am
+++ b/Makefile.am
-@@ -8,14 +8,11 @@ basic:
+@@ -10,19 +10,19 @@ basic:
\r
openssl-links:\r
cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \\r
+ ln -s ../src/.libs/libcyassl.a libssl.a; \\r
+ ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../\r
\r
+ # !!! test -e with a .name like .libs then a * like *dylib fails so just\r
+ # look for the .dylib on OS X, and .so otherwise but copy all parts\r
install:\r
-- mkdir ${prefix}/cyassl; \\r
-- mkdir ${prefix}/cyassl/include; \\r
-- mkdir ${prefix}/cyassl/include/openssl; \\r
-- cp include/openssl/*.h ${prefix}/cyassl/include/openssl; \\r
-- make openssl-links; \\r
-- mkdir ${prefix}/cyassl/lib; \\r
-- cp lib/*.a ${prefix}/cyassl/lib\r
+- $(mkinstalldirs) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir); \\r
+- cp -fpR include/* $(DESTDIR)$(includedir); \\r
+- cp -fpR ctaocrypt/include/* $(DESTDIR)$(includedir); \\r
+- cp -fpR src/libcyassl.la $(DESTDIR)$(libdir); \\r
+- if test -e src/.libs/libcyassl.a; then \\r
+- cp -fp src/.libs/libcyassl.a $(DESTDIR)$(libdir); fi; \\r
+- if test -e src/.libs/libcyassl.so; then \\r
+- cp -fpR src/.libs/libcyassl.so* $(DESTDIR)$(libdir); fi; \\r
+- if test -e src/.libs/libcyassl.dylib; then \\r
+- cp -fpR src/.libs/libcyassl.*dylib $(DESTDIR)$(libdir); fi;\r
+ $(mkinstalldirs) $(DESTDIR)$(includedir)/cyassl $(DESTDIR)$(libdir); \\r
+ cp -fpR include/* $(DESTDIR)$(includedir)/cyassl; \\r
-+ make openssl-links; \\r
-+ cp -fpR src/.libs/libcyassl.{a,so*} src/libcyassl.la $(DESTDIR)$(libdir)\r
++ cp -fpR ctaocrypt/include/* $(DESTDIR)$(includedir)/cyassl; \\r
++ cp -fpR src/libcyassl.la $(DESTDIR)$(libdir); \\r
++ if test -e src/.libs/libcyassl.a; then \\r
++ cp -fp src/.libs/libcyassl.a $(DESTDIR)$(libdir); fi; \\r
++ if test -e src/.libs/libcyassl.so; then \\r
++ cp -fpR src/.libs/libcyassl.so* $(DESTDIR)$(libdir); fi; \\r
++ if test -e src/.libs/libcyassl.dylib; then \\r
++ cp -fpR src/.libs/libcyassl.*dylib $(DESTDIR)$(libdir); fi;\r
--- a/Makefile.in
+++ b/Makefile.in
-@@ -642,17 +642,14 @@ basic:
+@@ -647,22 +647,22 @@ basic:
openssl-links:
cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \
+ ln -s ../src/.libs/libcyassl.a libssl.a; \
+ ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../
+ # !!! test -e with a .name like .libs then a * like *dylib fails so just
+ # look for the .dylib on OS X, and .so otherwise but copy all parts
install:
-- mkdir ${prefix}/cyassl; \
-- mkdir ${prefix}/cyassl/include; \
-- mkdir ${prefix}/cyassl/include/openssl; \
-- cp include/openssl/*.h ${prefix}/cyassl/include/openssl; \
-- make openssl-links; \
-- mkdir ${prefix}/cyassl/lib; \
-- cp lib/*.a ${prefix}/cyassl/lib
+- $(mkinstalldirs) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir); \
+- cp -fpR include/* $(DESTDIR)$(includedir); \
+- cp -fpR ctaocrypt/include/* $(DESTDIR)$(includedir); \
+- cp -fpR src/libcyassl.la $(DESTDIR)$(libdir); \
+- if test -e src/.libs/libcyassl.a; then \
+- cp -fp src/.libs/libcyassl.a $(DESTDIR)$(libdir); fi; \
+- if test -e src/.libs/libcyassl.so; then \
+- cp -fpR src/.libs/libcyassl.so* $(DESTDIR)$(libdir); fi; \
+- if test -e src/.libs/libcyassl.dylib; then \
+- cp -fpR src/.libs/libcyassl.*dylib $(DESTDIR)$(libdir); fi;
+ $(mkinstalldirs) $(DESTDIR)$(includedir)/cyassl $(DESTDIR)$(libdir); \
+ cp -fpR include/* $(DESTDIR)$(includedir)/cyassl; \
-+ make openssl-links; \
-+ cp -fpR src/.libs/libcyassl.{a,so*} src/libcyassl.la $(DESTDIR)$(libdir)
++ cp -fpR ctaocrypt/include/* $(DESTDIR)$(includedir)/cyassl; \
++ cp -fpR src/libcyassl.la $(DESTDIR)$(libdir); \
++ if test -e src/.libs/libcyassl.a; then \
++ cp -fp src/.libs/libcyassl.a $(DESTDIR)$(libdir); fi; \
++ if test -e src/.libs/libcyassl.so; then \
++ cp -fpR src/.libs/libcyassl.so* $(DESTDIR)$(libdir); fi; \
++ if test -e src/.libs/libcyassl.dylib; then \
++ cp -fpR src/.libs/libcyassl.*dylib $(DESTDIR)$(libdir); fi;
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: