X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=Makefile.org;h=a216f40c02199e3707ba28dd91df94932cdf2514;hp=61f9302f3b75a5d4be273eac6c38c358dffaf316;hb=7f1120994eb93529bfb7f52f6d0766db52f24d4d;hpb=d7f0ab5ff48bb2fe2e777e6aa068fc581a1da32b diff --git a/Makefile.org b/Makefile.org index 61f9302f3b..a216f40c02 100644 --- a/Makefile.org +++ b/Makefile.org @@ -56,6 +56,8 @@ EX_LIBS= AR=ar r RANLIB= ranlib PERL= perl +TAR= tar +TARFLAGS= --norecurse # Set BN_ASM to bn_asm.o if you want to use the C version BN_ASM= bn_asm.o @@ -217,7 +219,7 @@ libclean: rm -f *.a */lib */*/lib clean: - rm -f shlib/*.o *.o core a.out fluff *.map rehash.time + rm -f shlib/*.o *.o core a.out fluff *.map rehash.time testlog make.log cctest cctest.c @for i in $(DIRS) ;\ do \ (cd $$i && echo "making clean in $$i..." && \ @@ -315,7 +317,7 @@ TABLE: Configure update: depend errors util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE tar: - @tar --norecurse -cvf - \ + @$(TAR) $(TARFLAGS) -cvf - \ `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort` |\ tardy --user_number=0 --user_name=openssl \ --group_number=0 --group_name=openssl \ @@ -383,4 +385,11 @@ install_docs: > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec); \ done +shlib: all + if [ ! -d shlib_dir ] ; then mkdir shlib_dir ; else rm -f shlib_dir/* ; fi + cd shlib_dir ; ar -x ../libcrypto.a && $(CC) -shared ./*.o -Wl,-soname -Wl,libcrypto.so.0.9 \ + -o ./libcrypto.so.0.9.4 && rm *.o + cd shlib_dir ; ar -x ../libssl.a && $(CC) -shared ./*.o -Wl,-soname -Wl,libssl.so.0.9 \ + -o ./libssl.so.0.9.4 && rm *.o + # DO NOT DELETE THIS LINE -- make depend depends on it.