[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.191 and 1.192

version 1.191, 2003/10/19 03:00:55 version 1.192, 2003/10/21 10:01:22
Line 161  _CCLINK= ${CC}
Line 161  _CCLINK= ${CC}
 .endif  .endif
   
 .gdbinit:  .gdbinit:
         ${_MKCMD}\  
         rm -f .gdbinit          rm -f .gdbinit
 .if defined(DESTDIR) && !empty(DESTDIR)  .if defined(DESTDIR) && !empty(DESTDIR)
         ${_MKCMD}\  
         echo "set solib-absolute-prefix ${DESTDIR}" > .gdbinit          echo "set solib-absolute-prefix ${DESTDIR}" > .gdbinit
 .else  .else
         ${_MKCMD}\  
         touch .gdbinit          touch .gdbinit
 .endif  .endif
 .for __gdbinit in ${GDBINIT}  .for __gdbinit in ${GDBINIT}
         ${_MKCMD}\  
         echo "source ${__gdbinit}" >> .gdbinit          echo "source ${__gdbinit}" >> .gdbinit
 .endfor  .endfor
   
Line 179  ${OBJS} ${LOBJS}: ${DPSRCS}
Line 175  ${OBJS} ${LOBJS}: ${DPSRCS}
   
 ${PROG}: .gdbinit ${LIBCRT0} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}  ${PROG}: .gdbinit ${LIBCRT0} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
 .if !commands(${PROG})  .if !commands(${PROG})
         ${_MKMSGLINK.m} ${PROG}          ${_MKMSG_LINK} ${PROG}
 .if defined(DESTDIR)  .if defined(DESTDIR)
         ${_MKCMD}\  
         ${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib ${_PROGLDOPTS} ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -L${_GCC_LIBGCCDIR} -L${DESTDIR}/usr/lib ${_SUPCXX} -lgcc -lc -lgcc ${LIBCRTEND}          ${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib ${_PROGLDOPTS} ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -L${_GCC_LIBGCCDIR} -L${DESTDIR}/usr/lib ${_SUPCXX} -lgcc -lc -lgcc ${LIBCRTEND}
 .else  .else
         ${_MKCMD}\  
         ${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${_PROGLDOPTS} ${OBJS} ${LDADD}          ${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${_PROGLDOPTS} ${OBJS} ${LDADD}
 .endif  # defined(DESTDIR)  .endif  # defined(DESTDIR)
 .endif  # !commands(${PROG})  .endif  # !commands(${PROG})
   
 ${PROG}.ro: ${OBJS} ${DPADD}  ${PROG}.ro: ${OBJS} ${DPADD}
         ${_MKCMD}\  
         ${LD} -r -dc -o ${.TARGET} ${OBJS}          ${LD} -r -dc -o ${.TARGET} ${OBJS}
   
 .endif  # defined(OBJS) && !empty(OBJS)  .endif  # defined(OBJS) && !empty(OBJS)
Line 203  MAN= ${PROG}.1
Line 196  MAN= ${PROG}.1
 realall: ${PROG} ${SCRIPTS}  realall: ${PROG} ${SCRIPTS}
   
 cleanprog: cleanobjs cleanextra  cleanprog: cleanobjs cleanextra
         ${_MKCMD}\  
         rm -f a.out [Ee]rrs mklog core *.core .gdbinit ${PROG}          rm -f a.out [Ee]rrs mklog core *.core .gdbinit ${PROG}
   
 cleanobjs:  cleanobjs:
 .if defined(OBJS) && !empty(OBJS)  .if defined(OBJS) && !empty(OBJS)
         ${_MKCMD}\  
         rm -f ${OBJS} ${LOBJS}          rm -f ${OBJS} ${LOBJS}
 .endif  .endif
   
 cleanextra:  cleanextra:
 .if defined(CLEANFILES) && !empty(CLEANFILES)  .if defined(CLEANFILES) && !empty(CLEANFILES)
         ${_MKCMD}\  
         rm -f ${CLEANFILES}          rm -f ${CLEANFILES}
 .endif  .endif
   
Line 233  proginstall:: ${DESTDIR}${BINDIR}/${PROG
Line 223  proginstall:: ${DESTDIR}${BINDIR}/${PROG
 .PRECIOUS: ${DESTDIR}${BINDIR}/${PROGNAME}  .PRECIOUS: ${DESTDIR}${BINDIR}/${PROGNAME}
   
 __proginstall: .USE  __proginstall: .USE
         ${_MKMSGINSTALL}          ${_MKTARGET_INSTALL}
         ${_MKCMD}\  
         ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \          ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
                 ${STRIPFLAG} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}                  ${STRIPFLAG} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}
   
Line 265  scriptsinstall:: ${SCRIPTS:@S@${DESTDIR}
Line 254  scriptsinstall:: ${SCRIPTS:@S@${DESTDIR}
 .PRECIOUS: ${SCRIPTS:@S@${DESTDIR}${SCRIPTSDIR_${S}:U${SCRIPTSDIR}}/${SCRIPTSNAME_${S}:U${SCRIPTSNAME:U${S:T:R}}}@}  .PRECIOUS: ${SCRIPTS:@S@${DESTDIR}${SCRIPTSDIR_${S}:U${SCRIPTSDIR}}/${SCRIPTSNAME_${S}:U${SCRIPTSNAME:U${S:T:R}}}@}
   
 __scriptinstall: .USE  __scriptinstall: .USE
         ${_MKMSGINSTALL}          ${_MKTARGET_INSTALL}
         ${_MKCMD}\  
         ${INSTALL_FILE} \          ${INSTALL_FILE} \
             -o ${SCRIPTSOWN_${.ALLSRC:T}:U${SCRIPTSOWN}} \              -o ${SCRIPTSOWN_${.ALLSRC:T}:U${SCRIPTSOWN}} \
             -g ${SCRIPTSGRP_${.ALLSRC:T}:U${SCRIPTSGRP}} \              -g ${SCRIPTSGRP_${.ALLSRC:T}:U${SCRIPTSGRP}} \
Line 294  scriptsinstall::
Line 282  scriptsinstall::
   
 lint: ${LOBJS}  lint: ${LOBJS}
 .if defined(LOBJS) && !empty(LOBJS)  .if defined(LOBJS) && !empty(LOBJS)
         ${_MKCMD}\  
         ${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD}          ${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${LOBJS} ${LDADD}
 .endif  .endif
   

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

CVSweb <webmaster@jp.NetBSD.org>