[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.214 and 1.215

version 1.214, 2006/06/19 15:44:44 version 1.215, 2006/07/23 11:41:27
Line 129  CLEANFILES+=strings
Line 129  CLEANFILES+=strings
         @rm -f x.cc          @rm -f x.cc
 .endif  .endif
 .if defined(PROG)  .if defined(PROG)                                                       # {
 .if defined(PROG_CXX)  .if defined(PROG_CXX)
 SRCS?=          ${PROG}.cc  SRCS?=          ${PROG}.cc
 .else  .else
 SRCS?=          ${PROG}.c  SRCS?=          ${PROG}.c
 .endif  .endif
   PROGNAME?=      ${PROG}
 .if defined(RESCUEDIR)  .if defined(RESCUEDIR)
 .endif  .endif
Line 150  OBJS+=  ${SRCS:N*.h:N*.sh:N*.fth:R:S/$/.
Line 152  OBJS+=  ${SRCS:N*.h:N*.sh:N*.fth:R:S/$/.
 LOBJS+=         ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}  LOBJS+=         ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
 .endif  .endif
 .if defined(OBJS) && !empty(OBJS)  .if defined(OBJS) && !empty(OBJS)                                       # {
Line 179  _SUPCXX= -lstdc++ -lm
Line 181  _SUPCXX= -lstdc++ -lm
 _CCLINK=        ${CC}  _CCLINK=        ${CC}
 .endif  .endif
   .if ${MKDEBUG} != "no" && ${OBJECT_FMT} == "ELF" && !commands(${PROG})
   _PROGDEBUG=     ${PROGNAME}.debug
 .gdbinit:  .gdbinit:
         rm -f .gdbinit          rm -f .gdbinit
 .if defined(DESTDIR) && !empty(DESTDIR)  .if defined(DESTDIR) && !empty(DESTDIR)
Line 210  ${PROG}.ro: ${OBJS} ${DPADD}
Line 216  ${PROG}.ro: ${OBJS} ${DPADD}
         ${_MKTARGET_LINK}          ${_MKTARGET_LINK}
         ${LD} -r -dc -o ${.TARGET} ${OBJS}          ${LD} -r -dc -o ${.TARGET} ${OBJS}
 .endif  # defined(OBJS) && !empty(OBJS)  .if defined(_PROGDEBUG)
           ${OBJCOPY} --only-keep-debug ${PROG} ${_PROGDEBUG}
           ${OBJCOPY} -R .gnu_debuglink --add-gnu-debuglink=${_PROGDEBUG} ${PROG} \
               || rm -f ${_PROGDEBUG}
   .endif  # defined(OBJS) && !empty(OBJS)                                 # }
 .if !defined(MAN)  .if !defined(MAN)
 MAN=    ${PROG}.1  MAN=    ${PROG}.1
 .endif  # !defined(MAN)  .endif  # !defined(MAN)
 .endif  # defined(PROG)  .endif  # defined(PROG)                                                 # }
 realall: ${PROG} ${SCRIPTS}  realall: ${PROG} ${_PROGDEBUG} ${SCRIPTS}
 cleanprog: .PHONY cleanobjs cleanextra  cleanprog: .PHONY cleanobjs cleanextra
         rm -f a.out [Ee]rrs mklog core *.core .gdbinit ${PROG}          rm -f a.out [Ee]rrs mklog core *.core .gdbinit ${PROG} ${_PROGDEBUG}
 cleanobjs: .PHONY  cleanobjs: .PHONY
 .if defined(OBJS) && !empty(OBJS)  .if defined(OBJS) && !empty(OBJS)
Line 232  cleanextra: .PHONY
Line 246  cleanextra: .PHONY
         rm -f ${CLEANFILES}          rm -f ${CLEANFILES}
 .endif  .endif
 .if defined(PROG) && !target(proginstall)  .if defined(PROG) && !target(proginstall)                               # {
 __proginstall: .USE  __proginstall: .USE
         ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \          ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
                 ${STRIPFLAG} ${.ALLSRC} ${.TARGET}                  ${STRIPFLAG} ${.ALLSRC} ${.TARGET}
   __progdebuginstall: .USE
           ${INSTALL_FILE} -o ${DEBUGOWN} -g ${DEBUGGRP} -m ${DEBUGMODE} \
                   ${.ALLSRC} ${.TARGET}
 .if ${MKUPDATE} == "no"  .if ${MKUPDATE} == "no"
 ${DESTDIR}${BINDIR}/${PROGNAME}! ${PROG} __proginstall  ${DESTDIR}${BINDIR}/${PROGNAME}! ${PROG} __proginstall
 .if !defined(BUILD) && !make(all) && !make(${PROG})  .if !defined(BUILD) && !make(all) && !make(${PROG})
 .endif  .endif
 .else  .if defined(_PROGDEBUG)
   ${DESTDIR}${DEBUGDIR}${BINDIR}/${_PROGDEBUG}! ${_PROGDEBUG} __progdebuginstall
   .if !defined(BUILD) && !make(all) && !make(${PROG})
   .endif  #  define(_PROGDEBUG)
   .else   # MKUPDATE != no
 ${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG} __proginstall  ${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG} __proginstall
 .if !defined(BUILD) && !make(all) && !make(${PROG})  .if !defined(BUILD) && !make(all) && !make(${PROG})
 .endif  .endif
   .if defined(_PROGDEBUG)
   ${DESTDIR}${DEBUGDIR}${BINDIR}/${_PROGDEBUG}: ${_PROGDEBUG} __progdebuginstall
   .if !defined(BUILD) && !make(all) && !make(${PROG})
 .endif  .endif
 .endif  .endif  #  defined(_PROGDEBUG)
   .endif  # MKUPDATE != no
   .endif  # defined(PROG) && !target(proginstall)                         # }
 .if !target(proginstall)  .if !target(proginstall)
 proginstall::  proginstall::
 .endif  .endif
 .PHONY:         proginstall  .PHONY:         proginstall
 .if defined(SCRIPTS) && !target(scriptsinstall)  .if defined(SCRIPTS) && !target(scriptsinstall)                         # {
 .endif  .endif
 .endif  .endif
 .endfor  .endfor
 .endif  .endif                                                                  # }
 .if !target(scriptsinstall)  .if !target(scriptsinstall)
 scriptsinstall::  scriptsinstall::

Removed from v.1.214  
changed lines
  Added in v.1.215

CVSweb <webmaster@jp.NetBSD.org>