Makefile.org (100928) | Makefile.org (100936) |
---|---|
1## 2## Makefile for OpenSSL 3## 4 5VERSION= 6MAJOR= 7MINOR= 8SHLIB_VERSION_NUMBER= --- 406 unchanged lines hidden (view full) --- 415# This assumes that GNU utilities are *not* used 416do_hpux-shared: 417 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 418 ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ 419 +vnocompatwarnings \ 420 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 421 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 422 -Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ | 1## 2## Makefile for OpenSSL 3## 4 5VERSION= 6MAJOR= 7MINOR= 8SHLIB_VERSION_NUMBER= --- 406 unchanged lines hidden (view full) --- 415# This assumes that GNU utilities are *not* used 416do_hpux-shared: 417 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 418 ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ 419 +vnocompatwarnings \ 420 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 421 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 422 -Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ |
423 chmod a=rx lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} ; \ |
|
423 libs="$$libs -L. -l$$i"; \ 424 done 425 426# This assumes that GNU utilities are *not* used 427do_hpux64-shared: 428 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 429 ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ 430 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 431 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 432 +forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ | 424 libs="$$libs -L. -l$$i"; \ 425 done 426 427# This assumes that GNU utilities are *not* used 428do_hpux64-shared: 429 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 430 ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ 431 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 432 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 433 +forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ |
434 chmod a=rx lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} ; \ |
|
433 libs="$$libs -L. -l$$i"; \ 434 done 435 436# The following method is said to work on all platforms. Tests will 437# determine if that's how it's gong to be used. 438# This assumes that for all but GNU systems, GNU utilities are *not* used. 439# ALLSYMSFLAGS would be: 440# GNU systems: --whole-archive --- 99 unchanged lines hidden (view full) --- 540rehash.time: certs 541 @(OPENSSL="`pwd`/apps/openssl"; export OPENSSL; $(PERL) tools/c_rehash certs) 542 touch rehash.time 543 544test: tests 545 546tests: rehash 547 @(cd test && echo "testing..." && \ | 435 libs="$$libs -L. -l$$i"; \ 436 done 437 438# The following method is said to work on all platforms. Tests will 439# determine if that's how it's gong to be used. 440# This assumes that for all but GNU systems, GNU utilities are *not* used. 441# ALLSYMSFLAGS would be: 442# GNU systems: --whole-archive --- 99 unchanged lines hidden (view full) --- 542rehash.time: certs 543 @(OPENSSL="`pwd`/apps/openssl"; export OPENSSL; $(PERL) tools/c_rehash certs) 544 touch rehash.time 545 546test: tests 547 548tests: rehash 549 @(cd test && echo "testing..." && \ |
548 $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PERL='${PERL}' EXE_EXT='${EXE_EXT}' tests ); | 550 $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' TESTS='${TESTS}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' OPENSSL_DEBUG_MEMORY=on tests ); |
549 @apps/openssl version -a 550 551report: 552 @$(PERL) util/selftest.pl 553 554depend: 555 @for i in $(DIRS) ;\ 556 do \ 557 if [ -d "$$i" ]; then \ 558 (cd $$i && echo "making dependencies $$i..." && \ | 551 @apps/openssl version -a 552 553report: 554 @$(PERL) util/selftest.pl 555 556depend: 557 @for i in $(DIRS) ;\ 558 do \ 559 if [ -d "$$i" ]; then \ 560 (cd $$i && echo "making dependencies $$i..." && \ |
559 $(MAKE) SDIRS='${SDIRS}' DEPFLAG='${DEPFLAG}' depend ) || exit 1; \ | 561 $(MAKE) SDIRS='${SDIRS}' DEPFLAG='${DEPFLAG}' PERL='${PERL}' depend ) || exit 1; \ |
560 fi; \ 561 done; 562 563lint: 564 @for i in $(DIRS) ;\ 565 do \ 566 if [ -d "$$i" ]; then \ 567 (cd $$i && echo "making lint $$i..." && \ --- 28 unchanged lines hidden (view full) --- 596 $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h 597 598TABLE: Configure 599 (echo 'Output of `Configure TABLE'"':"; \ 600 $(PERL) Configure TABLE) > TABLE 601 602update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE 603 | 562 fi; \ 563 done; 564 565lint: 566 @for i in $(DIRS) ;\ 567 do \ 568 if [ -d "$$i" ]; then \ 569 (cd $$i && echo "making lint $$i..." && \ --- 28 unchanged lines hidden (view full) --- 598 $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h 599 600TABLE: Configure 601 (echo 'Output of `Configure TABLE'"':"; \ 602 $(PERL) Configure TABLE) > TABLE 603 604update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE 605 |
606# Build distribution tar-file. As the list of files returned by "find" is 607# pretty long, on several platforms a "too many arguments" error or similar 608# would occur. Therefore the list of files is temporarily stored into a file 609# and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal 610# tar does not support the --files-from option. |
|
604tar: | 611tar: |
605 @$(TAR) $(TARFLAGS) -cvf - \ 606 `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort` |\ | 612 find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort > ../$(TARFILE).list; \ 613 $(TAR) $(TARFLAGS) --files-from ../$(TARFILE).list -cvf - | \ |
607 tardy --user_number=0 --user_name=openssl \ 608 --group_number=0 --group_name=openssl \ 609 --prefix=openssl-$(VERSION) - |\ 610 gzip --best >../$(TARFILE).gz; \ | 614 tardy --user_number=0 --user_name=openssl \ 615 --group_number=0 --group_name=openssl \ 616 --prefix=openssl-$(VERSION) - |\ 617 gzip --best >../$(TARFILE).gz; \ |
618 rm -f ../$(TARFILE).list; \ |
|
611 ls -l ../$(TARFILE).gz 612 613dist: 614 $(PERL) Configure dist 615 @$(MAKE) dist_pem_h 616 @$(MAKE) SDIRS='${SDIRS}' clean | 619 ls -l ../$(TARFILE).gz 620 621dist: 622 $(PERL) Configure dist 623 @$(MAKE) dist_pem_h 624 @$(MAKE) SDIRS='${SDIRS}' clean |
617 @$(MAKE) tar | 625 @$(MAKE) TAR='${TAR}' TARFLAGS='${TARFLAGS}' tar |
618 619dist_pem_h: 620 (cd crypto/pem; $(MAKE) CC='${CC}' SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean) 621 622install: all install_docs 623 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ 624 $(INSTALL_PREFIX)$(INSTALLTOP)/lib \ 625 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ --- 25 unchanged lines hidden (view full) --- 651 @if [ -n "$(SHARED_LIBS)" ]; then \ 652 tmp="$(SHARED_LIBS)"; \ 653 for i in $${tmp:-x}; \ 654 do \ 655 if [ -f "$$i" -o -f "$$i.a" ]; then \ 656 ( echo installing $$i; \ 657 if [ "$(PLATFORM)" != "Cygwin" ]; then \ 658 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ | 626 627dist_pem_h: 628 (cd crypto/pem; $(MAKE) CC='${CC}' SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean) 629 630install: all install_docs 631 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ 632 $(INSTALL_PREFIX)$(INSTALLTOP)/lib \ 633 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ --- 25 unchanged lines hidden (view full) --- 659 @if [ -n "$(SHARED_LIBS)" ]; then \ 660 tmp="$(SHARED_LIBS)"; \ 661 for i in $${tmp:-x}; \ 662 do \ 663 if [ -f "$$i" -o -f "$$i.a" ]; then \ 664 ( echo installing $$i; \ 665 if [ "$(PLATFORM)" != "Cygwin" ]; then \ 666 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ |
659 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \ | 667 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \ |
660 else \ 661 c=`echo $$i | sed 's/^lib/cyg/'`; \ 662 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 663 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 664 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ 665 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ 666 fi ); \ 667 fi; \ --- 8 unchanged lines hidden (view full) --- 676 $(INSTALL_PREFIX)$(MANDIR)/man1 \ 677 $(INSTALL_PREFIX)$(MANDIR)/man3 \ 678 $(INSTALL_PREFIX)$(MANDIR)/man5 \ 679 $(INSTALL_PREFIX)$(MANDIR)/man7 680 @for i in doc/apps/*.pod; do \ 681 fn=`basename $$i .pod`; \ 682 if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \ 683 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ | 668 else \ 669 c=`echo $$i | sed 's/^lib/cyg/'`; \ 670 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 671 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 672 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ 673 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ 674 fi ); \ 675 fi; \ --- 8 unchanged lines hidden (view full) --- 684 $(INSTALL_PREFIX)$(MANDIR)/man1 \ 685 $(INSTALL_PREFIX)$(MANDIR)/man3 \ 686 $(INSTALL_PREFIX)$(MANDIR)/man5 \ 687 $(INSTALL_PREFIX)$(MANDIR)/man7 688 @for i in doc/apps/*.pod; do \ 689 fn=`basename $$i .pod`; \ 690 if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \ 691 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ |
684 (cd `dirname $$i`; \ 685 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \ 686 --release=$(VERSION) `basename $$i`) \ | 692 (cd `$(PERL) util/dirname.pl $$i`; \ 693 sh -c "$(PERL) `cd ../../util; ./pod2mantest ignore` \ 694 --section=$$sec --center=OpenSSL \ 695 --release=$(VERSION) `basename $$i`") \ |
687 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ 688 done 689 @for i in doc/crypto/*.pod doc/ssl/*.pod; do \ 690 fn=`basename $$i .pod`; \ 691 if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \ 692 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ | 696 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ 697 done 698 @for i in doc/crypto/*.pod doc/ssl/*.pod; do \ 699 fn=`basename $$i .pod`; \ 700 if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \ 701 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \ |
693 (cd `dirname $$i`; \ 694 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \ 695 --release=$(VERSION) `basename $$i`) \ | 702 (cd `$(PERL) util/dirname.pl $$i`; \ 703 sh -c "$(PERL) `cd ../../util; ./pod2mantest ignore` \ 704 --section=$$sec --center=OpenSSL \ 705 --release=$(VERSION) `basename $$i`") \ |
696 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ 697 done 698 699# DO NOT DELETE THIS LINE -- make depend depends on it. | 706 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \ 707 done 708 709# DO NOT DELETE THIS LINE -- make depend depends on it. |