summaryrefslogtreecommitdiff
path: root/crypto/openssl/shlib/Makefile.hpux10-cc
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/shlib/Makefile.hpux10-cc')
-rw-r--r--crypto/openssl/shlib/Makefile.hpux10-cc51
1 files changed, 51 insertions, 0 deletions
diff --git a/crypto/openssl/shlib/Makefile.hpux10-cc b/crypto/openssl/shlib/Makefile.hpux10-cc
new file mode 100644
index 000000000000..4dc62ebd9ebc
--- /dev/null
+++ b/crypto/openssl/shlib/Makefile.hpux10-cc
@@ -0,0 +1,51 @@
+# Makefile.hpux-cc
+
+major=1
+
+slib=libssl
+sh_slib=$(slib).so.$(major)
+
+clib=libcrypto
+sh_clib=$(clib).so.$(major)
+
+all : $(clib).sl $(slib).sl
+
+
+$(clib)_pic.a : $(clib).a
+ echo "Copying $? to $@"
+ cp -p $? $@
+
+$(slib)_pic.a : $(slib).a
+ echo "Copying $? to $@"
+ cp -p $? $@
+
+$(sh_clib) : $(clib)_pic.a
+ echo "collecting all object files for $@"
+ find . -name \*.o -print > allobjs
+ for obj in `ar t $(clib)_pic.a`; \
+ do \
+ grep /$$obj allobjs; \
+ done >objlist
+ echo "linking $@"
+ ld -b -s -z +h $@ -o $@ `cat objlist` -lc
+ rm allobjs objlist
+
+$(clib).sl : $(sh_clib)
+ rm -f $@
+ ln -s $? $@
+
+$(sh_slib) : $(slib)_pic.a $(clib).sl
+ echo "collecting all object files for $@"
+ find . -name \*.o -print > allobjs
+ for obj in `ar t $(slib)_pic.a`; \
+ do \
+ grep /$$obj allobjs; \
+ done >objlist
+ echo "linking $@"
+ ld -b -s -z +h $@ +b /usr/local/ssl/lib:/usr/lib -o $@ `cat objlist` \
+ -L. -lcrypto -lc
+ rm -f allobjs objlist
+
+$(slib).sl : $(sh_slib)
+ rm -f $@
+ ln -s $? $@