Makefile.inc1 (94432) | Makefile.inc1 (94541) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile.inc1 94432 2002-04-11 14:49:32Z ru $ | 2# $FreeBSD: head/Makefile.inc1 94541 2002-04-12 19:46:25Z ru $ |
3# 4# Make command line options: 5# -DMAKE_KERBEROS4 to build KerberosIV 6# -DMAKE_KERBEROS5 to build Kerberos5 7# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 8# -DNOCLEAN do not clean at all 9# -DNOCRYPT will prevent building of crypt versions 10# -DNOPROFILE do not build profiled libraries --- 701 unchanged lines hidden (view full) --- 712 cd ${.CURDIR}/lib/libvgl; ${MAKE} beforeinstall 713 cd ${.CURDIR}/lib/libwrap; ${MAKE} beforeinstall 714 cd ${.CURDIR}/lib/libz; ${MAKE} beforeinstall 715 cd ${.CURDIR}/usr.bin/lex; ${MAKE} beforeinstall 716 717# 718# libraries - build all libraries, and install them under ${DESTDIR}. 719# | 3# 4# Make command line options: 5# -DMAKE_KERBEROS4 to build KerberosIV 6# -DMAKE_KERBEROS5 to build Kerberos5 7# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 8# -DNOCLEAN do not clean at all 9# -DNOCRYPT will prevent building of crypt versions 10# -DNOPROFILE do not build profiled libraries --- 701 unchanged lines hidden (view full) --- 712 cd ${.CURDIR}/lib/libvgl; ${MAKE} beforeinstall 713 cd ${.CURDIR}/lib/libwrap; ${MAKE} beforeinstall 714 cd ${.CURDIR}/lib/libz; ${MAKE} beforeinstall 715 cd ${.CURDIR}/usr.bin/lex; ${MAKE} beforeinstall 716 717# 718# libraries - build all libraries, and install them under ${DESTDIR}. 719# |
720# The following dependencies exist between the libraries: | 720# The list of libraries with dependents (${_prebuild_libs}) and their 721# interdependencies (__L) are built automatically by the 722# ${.CURDIR}/tools/make_libdeps.sh script. |
721# | 723# |
722# lib*: csu libgcc_pic 723# libatm: libmd 724# libcam: libsbuf 725# libcrypt: libmd 726# libdevstat: libkvm 727# libdialog: libncurses 728# libedit: libncurses 729# libg++: msun 730# libkrb: libcrypt 731# libopie: libmd 732# libpam: libcom_err libcrypt libcrypto libkrb libopie libradius \ 733# librpcsvc libtacplus libutil libz libssh 734# libradius: libmd 735# libreadline: libncurses 736# libssh: libcrypto libz 737# libstc++: msun 738# libtacplus: libmd 739# 740# Across directories this comes down to (rougly): 741# 742# gnu/lib: lib/msun lib/libncurses 743# kerberosIV/lib kerberos5/lib: lib/libcrypt 744# lib/libpam: secure/lib/libcrypto kerberosIV/lib/libkrb \ 745# secure/lib/libssh lib/libz 746# secure/lib: secure/lib/libcrypto lib/libmd lib/libz 747# | 724libraries: 725 cd ${.CURDIR}; \ 726 ${MAKE} -f Makefile.inc1 _startup_libs; \ 727 ${MAKE} -f Makefile.inc1 _prebuild_libs; \ 728 ${MAKE} -f Makefile.inc1 _generic_libs; 729 |
748.if exists(${.CURDIR}/lib/csu/${MACHINE_ARCH}.pcc) | 730.if exists(${.CURDIR}/lib/csu/${MACHINE_ARCH}.pcc) |
749_csu= lib/csu/${MACHINE_ARCH}.pcc | 731_startup_libs= lib/csu/${MACHINE_ARCH}.pcc |
750.elif ${MACHINE_ARCH} == "i386" && ${OBJFORMAT} == "elf" | 732.elif ${MACHINE_ARCH} == "i386" && ${OBJFORMAT} == "elf" |
751_csu= lib/csu/i386-elf | 733_startup_libs= lib/csu/i386-elf |
752.else | 734.else |
753_csu= lib/csu/${MACHINE_ARCH} | 735_startup_libs= lib/csu/${MACHINE_ARCH} |
754.endif | 736.endif |
737_startup_libs+= gnu/lib/csu gnu/lib/libgcc |
|
755 | 738 |
756.if exists(${.CURDIR}/secure) && !defined(NOCRYPT) && !defined(NOSECURE) 757_secure_lib= secure/lib 758.if exists(${.CURDIR}/secure/lib/libcrypto) 759_libcrypto= secure/lib/libcrypto 760.endif 761.endif | 739_prebuild_libs= lib/libcom_err lib/libcrypt lib/libkvm lib/libmd \ 740 lib/libncurses lib/libopie lib/libradius lib/librpcsvc \ 741 lib/libsbuf lib/libtacplus lib/libutil lib/libz lib/msun |
762 | 742 |
763.if !defined(NOCRYPT) && defined(MAKE_KERBEROS4) 764_kerberosIV_lib= kerberosIV/lib | 743lib/libopie__L lib/libradius__L lib/libtacplus__L: lib/libmd__L 744 745_generic_libs= lib gnu/lib 746 747.if !defined(NOPERL) && !defined(NO_PERL) 748_generic_libs+= gnu/usr.bin/perl/libperl |
765.endif 766 | 749.endif 750 |
767.if !defined(NOCRYPT) && defined(MAKE_KERBEROS5) 768_kerberos5_lib= kerberos5/lib | 751.if !defined(NOCRYPT) 752.if defined(MAKE_KERBEROS4) 753_prebuild_libs+= kerberosIV/lib/libkrb 754kerberosIV/lib/libkrb__L: lib/libcrypt__L 755_generic_libs+= kerberosIV/lib |
769.endif | 756.endif |
757.if defined(MAKE_KERBEROS5) 758_prebuild_libs+= kerberos5/lib/libasn1 759_prebuild_libs+= kerberos5/lib/libgssapi 760_prebuild_libs+= kerberos5/lib/libkrb5 761_prebuild_libs+= kerberos5/lib/libroken 762_generic_libs+= kerberos5/lib 763.endif 764.if !defined(NOSECURE) 765_prebuild_libs+= secure/lib/libcrypto 766.if !defined(NO_OPENSSH) 767_prebuild_libs+= secure/lib/libssh 768secure/lib/libssh__L: secure/lib/libcrypto__L lib/libz__L 769.endif 770_generic_libs+= secure/lib 771.endif !defined(NOSECURE) 772.endif !defined(NOCRYPT) |
|
770 | 773 |
774_generic_libs+= usr.bin/lex/lib |
|
771.if ${MACHINE_ARCH} == "i386" | 775.if ${MACHINE_ARCH} == "i386" |
772_libkeycap= usr.sbin/pcvt/keycap | 776_generic_libs+= usr.sbin/pcvt/keycap |
773.endif 774 | 777.endif 778 |
775.if !defined(NOPERL) && !defined(NO_PERL) 776_libperl= gnu/usr.bin/perl/libperl 777.endif 778 779libraries: 780.for _lib in ${_csu} gnu/lib/csu gnu/lib/libgcc lib/libmd lib/libcrypt \ 781 lib/libz ${_libcrypto} ${_secure_lib} ${_kerberosIV_lib} \ 782 ${_kerberos5_lib} lib/libcom_err lib/libkvm lib/msun lib/libncurses \ 783 lib/libopie lib/libradius lib/librpcsvc lib/libsbuf lib/libtacplus \ 784 lib/libutil lib gnu/lib ${_libperl} usr.bin/lex/lib ${_libkeycap} | 779.for _lib in ${_startup_libs} ${_prebuild_libs} ${_generic_libs} 780${_lib}__L: .PHONY |
785.if exists(${.CURDIR}/${_lib}) 786 cd ${.CURDIR}/${_lib}; \ 787 ${MAKE} depend; \ 788 ${MAKE} all; \ 789 ${MAKE} install 790.endif 791.endfor 792 | 781.if exists(${.CURDIR}/${_lib}) 782 cd ${.CURDIR}/${_lib}; \ 783 ${MAKE} depend; \ 784 ${MAKE} all; \ 785 ${MAKE} install 786.endif 787.endfor 788 |
789_startup_libs: ${_startup_libs:S/$/__L/} 790_prebuild_libs: ${_prebuild_libs:S/$/__L/} 791_generic_libs: ${_generic_libs:S/$/__L/} 792 |
|
793.for __target in clean cleandepend cleandir depend obj 794.for entry in ${SUBDIR} 795${entry}.${__target}__D: .PHONY 796 @if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \ 797 ${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE_ARCH}"; \ 798 edir=${entry}.${MACHINE_ARCH}; \ 799 cd ${.CURDIR}/$${edir}; \ 800 else \ 801 ${ECHODIR} "===> ${DIRPRFX}${entry}"; \ 802 edir=${entry}; \ 803 cd ${.CURDIR}/$${edir}; \ 804 fi; \ 805 ${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/ 806.endfor 807par-${__target}: ${SUBDIR:S/$/.${__target}__D/} 808.endfor 809 810.include <bsd.subdir.mk> | 793.for __target in clean cleandepend cleandir depend obj 794.for entry in ${SUBDIR} 795${entry}.${__target}__D: .PHONY 796 @if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \ 797 ${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE_ARCH}"; \ 798 edir=${entry}.${MACHINE_ARCH}; \ 799 cd ${.CURDIR}/$${edir}; \ 800 else \ 801 ${ECHODIR} "===> ${DIRPRFX}${entry}"; \ 802 edir=${entry}; \ 803 cd ${.CURDIR}/$${edir}; \ 804 fi; \ 805 ${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/ 806.endfor 807par-${__target}: ${SUBDIR:S/$/.${__target}__D/} 808.endfor 809 810.include <bsd.subdir.mk> |