[BACK]Return to bsd.prog.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/share/mk/bsd.prog.mk between version 1.227.4.1 and 1.227.4.2

version 1.227.4.1, 2008/06/23 04:30:03 version 1.227.4.2, 2008/09/18 04:38:10
Line 84  LIBCRT0= ${DESTDIR}/usr/lib/crt0.o
Line 84  LIBCRT0= ${DESTDIR}/usr/lib/crt0.o
 #  #
 #       E.g.  #       E.g.
 #               LIBC?=${DESTDIR}/usr/lib/libc.a  #               LIBC?=${DESTDIR}/usr/lib/libc.a
 #               LIBX11?=${DESTDIR}/usr/X11R6/lib/libX11.a  #               LIBX11?=${DESTDIR}/usr/X11R7/lib/libX11.a
 #       etc..  #       etc..
   
 .for _lib in \  .for _lib in \
Line 94  LIBCRT0= ${DESTDIR}/usr/lib/crt0.o
Line 94  LIBCRT0= ${DESTDIR}/usr/lib/crt0.o
         form fl g2c gcc gnumalloc gssapi hdb heimntlm hx509 intl ipsec \          form fl g2c gcc gnumalloc gssapi hdb heimntlm hx509 intl ipsec \
         kadm5clnt kadm5srv kafs krb5 kvm l lber ldap ldap_r \          kadm5clnt kadm5srv kafs krb5 kvm l lber ldap ldap_r \
         m magic menu objc ossaudio pam pcap pci pmc posix pthread pthread_dbg \          m magic menu objc ossaudio pam pcap pci pmc posix pthread pthread_dbg \
         puffs radius resolv rmt roken rpcsvc rt sdp skey sl ss ssh ssl termcap \          puffs radius resolv rmt roken rpcsvc rt rump rumpuser sdp skey sl ss \
         usbhid util wrap y z bind9 dns lwres isccfg isccc isc          ssh ssl termcap usbhid util wrap y z bind9 dns lwres isccfg isccc isc \
           \
           rumpfs_cd9660fs rumpfs_efs rumpfs_ext2fs rumpfs_ffs rumpfs_hfs \
           rumpfs_lfs rumpfs_msdosfs rumpfs_nfs rumpfs_ntfs rumpfs_syspuffs \
           rumpfs_tmpfs rumpfs_udf rumpfs_ufs
 .ifndef LIB${_lib:tu}  .ifndef LIB${_lib:tu}
 LIB${_lib:tu}=  ${DESTDIR}/usr/lib/lib${_lib}.a  LIB${_lib:tu}=  ${DESTDIR}/usr/lib/lib${_lib}.a
 .MADE:          ${LIB${_lib:tu}}        # Note: ${DESTDIR} will be expanded  .MADE:          ${LIB${_lib:tu}}        # Note: ${DESTDIR} will be expanded
Line 141  LIBSUPCXX= ${DESTDIR}/usr/lib/libsupc++.
Line 145  LIBSUPCXX= ${DESTDIR}/usr/lib/libsupc++.
         Xi Xinerama xkbfile Xmu Xmuu Xpm Xrandr Xrender Xss Xt \          Xi Xinerama xkbfile Xmu Xmuu Xpm Xrandr Xrender Xss Xt \
         XTrap Xtst Xv Xxf86dga Xxf86misc Xxf86vm          XTrap Xtst Xv Xxf86dga Xxf86misc Xxf86vm
 .ifndef LIB${_lib:tu}  .ifndef LIB${_lib:tu}
 LIB${_lib:tu}=  ${DESTDIR}/usr/X11R6/lib/lib${_lib}.a  LIB${_lib:tu}=  ${DESTDIR}${X11USRLIBDIR}/lib${_lib}.a
 .MADE:          ${LIB${_lib:tu}}        # Note: ${DESTDIR} will be expanded  .MADE:          ${LIB${_lib:tu}}        # Note: ${DESTDIR} will be expanded
 .endif  .endif
 .endfor  .endfor
Line 157  _PROGLDOPTS+= -Wl,-dynamic-linker=${_SHL
Line 161  _PROGLDOPTS+= -Wl,-dynamic-linker=${_SHL
 .endif  .endif
 .endif  .endif
 .if ${SHLIBDIR} != "/usr/lib"  .if ${SHLIBDIR} != "/usr/lib"
 _PROGLDOPTS+=   -Wl,-rpath-link,${DESTDIR}${SHLIBDIR}:${DESTDIR}/usr/lib \  _PROGLDOPTS+=   -Wl,-rpath-link,${DESTDIR}${SHLIBDIR} \
                 -R${SHLIBDIR} \                  -R${SHLIBDIR} \
                 -L${DESTDIR}${SHLIBDIR}                  -L${DESTDIR}${SHLIBDIR}
 .elif ${SHLIBINSTALLDIR} != "/usr/lib"  .elif ${SHLIBINSTALLDIR} != "/usr/lib"
 _PROGLDOPTS+=   -Wl,-rpath-link,${DESTDIR}${SHLIBINSTALLDIR}:${DESTDIR}/usr/lib \  _PROGLDOPTS+=   -Wl,-rpath-link,${DESTDIR}${SHLIBINSTALLDIR} \
                 -L${DESTDIR}${SHLIBINSTALLDIR}                  -L${DESTDIR}${SHLIBINSTALLDIR}
 .endif  .endif
   _PROGLDOPTS+=   -Wl,-rpath-link,${DESTDIR}/usr/lib \
                   -L${DESTDIR}/usr/lib
   
 __proginstall: .USE  __proginstall: .USE
         ${_MKTARGET_INSTALL}          ${_MKTARGET_INSTALL}
Line 185  __progdebuginstall: .USE
Line 191  __progdebuginstall: .USE
 _APPEND_MANS=yes  _APPEND_MANS=yes
 _APPEND_SRCS=yes  _APPEND_SRCS=yes
   
   _CCLINKFLAGS=
   .if defined(DESTDIR)
   _CCLINKFLAGS+=  -B${_GCC_CRTDIR}/ -B${DESTDIR}/usr/lib/
   .endif
   
 .if defined(PROG_CXX)  .if defined(PROG_CXX)
 PROG=           ${PROG_CXX}  PROG=           ${PROG_CXX}
 _CCLINK=        ${CXX} # XXX Some Makefiles rely on this being public.  _CCLINK=        ${CXX} ${_CCLINKFLAGS}
 .endif  .endif
   
 .if defined(PROG)  .if defined(PROG)
 _CCLINK?=       ${CC} # XXX Some Makefiles rely on this being public.  _CCLINK?=       ${CC} ${_CCLINKFLAGS}
 .  if defined(MAN)  .  if defined(MAN)
 MAN.${PROG}=    ${MAN}  MAN.${PROG}=    ${MAN}
 _APPEND_MANS=   no  _APPEND_MANS=   no
Line 225  PROGS=  ${PROG}
Line 236  PROGS=  ${PROG}
 # Definitions specific to C programs.  # Definitions specific to C programs.
 .for _P in ${PROGS}  .for _P in ${PROGS}
 SRCS.${_P}?=    ${_P}.c  SRCS.${_P}?=    ${_P}.c
 _CCLINK.${_P}=  ${CC}  _CCLINK.${_P}=  ${CC} ${_CCLINKFLAGS}
 .endfor  .endfor
   
 # Definitions specific to C++ programs.  # Definitions specific to C++ programs.
 .for _P in ${PROGS_CXX}  .for _P in ${PROGS_CXX}
 SRCS.${_P}?=    ${_P}.cc  SRCS.${_P}?=    ${_P}.cc
 _CCLINK.${_P}=  ${CXX}  _CCLINK.${_P}=  ${CXX} ${_CCLINKFLAGS}
 .endfor  .endfor
   
 # Language-independent definitions.  # Language-independent definitions.
Line 288  ${OBJS.${_P}} ${LOBJS.${_P}}: ${DPSRCS}
Line 299  ${OBJS.${_P}} ${LOBJS.${_P}}: ${DPSRCS}
 ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
 .if !commands(${_P})  .if !commands(${_P})
         ${_MKTARGET_LINK}          ${_MKTARGET_LINK}
 .if defined(DESTDIR)          ${_CCLINK.${_P}} \
         ${_CCLINK.${_P}} -Wl,-nostdlib \              ${DESTDIR:D-Wl,-nostdlib} \
             ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} ${_PROGLDOPTS} \              ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} \
             -B${_GCC_CRTDIR}/ -B${DESTDIR}/usr/lib/  \  
             ${OBJS.${_P}} ${_LDADD.${_P}} \              ${OBJS.${_P}} ${_LDADD.${_P}} \
             -L${_GCC_LIBGCCDIR} -L${DESTDIR}/usr/lib              ${DESTDIR:D-L${_GCC_LIBGCCDIR}} \
 .else              ${_PROGLDOPTS}
         ${_CCLINK.${_P}} ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} ${_PROGLDOPTS} ${OBJS.${_P}} ${_LDADD.${_P}}  
 .endif  # defined(DESTDIR)  
 .if defined(PAXCTL_FLAGS.${_P})  .if defined(PAXCTL_FLAGS.${_P})
         ${PAXCTL} ${PAXCTL_FLAGS.${_P}} ${.TARGET}          ${PAXCTL} ${PAXCTL_FLAGS.${_P}} ${.TARGET}
 .endif  .endif

Legend:
Removed from v.1.227.4.1  
changed lines
  Added in v.1.227.4.2

CVSweb <webmaster@jp.NetBSD.org>