[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.270 and 1.271

version 1.270, 2011/11/05 22:56:31 version 1.271, 2012/02/19 23:19:37
Line 362  PROGS=  ${PROG}
Line 362  PROGS=  ${PROG}
 # Per-program definitions and targets.  # Per-program definitions and targets.
 #  #
 # 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
   _CPPFLAGS.${_P}=        ${CPPFLAGS}
   _COPTS.${_P}=   ${COPTS}
 .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
 ##### Build and install rules  ##### Build and install rules
 .if !empty(_APPEND_SRCS:M[Yy][Ee][Ss])  .if !empty(_APPEND_SRCS:M[Yy][Ee][Ss])
 SRCS+=          ${SRCS.${_P}} # For bsd.dep.mk  SRCS+=          ${SRCS.${_P}}   # For bsd.dep.mk
 .endif  .endif
 _YPSRCS.${_P}=  ${SRCS.${_P}:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS.${_P}:M*.y:.y=.h}}  _YPSRCS.${_P}=  ${SRCS.${_P}:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS.${_P}:M*.y:.y=.h}}
Line 412  LOBJS.${_P}+= ${LSRCS:.c=.ln} ${SRCS.${_
Line 417  LOBJS.${_P}+= ${LSRCS:.c=.ln} ${SRCS.${_
 .if defined(OBJS.${_P}) && !empty(OBJS.${_P})                   # {  .if defined(OBJS.${_P}) && !empty(OBJS.${_P})                   # {
 .NOPATH: ${OBJS.${_P}} ${_P} ${_YPSRCS.${_P}}  .NOPATH: ${OBJS.${_P}} ${_P} ${_YPSRCS.${_P}}
   .if (defined(USE_COMBINE) && ${USE_COMBINE} != "no" && !commands(${_P}) \
      && (${_CCLINK.${_P}} == ${_CCLINK.CDEFAULT} \
          || ${_CCLINK.${_P}} == ${_CCLINK.CXXDEFAULT}) \
      && !defined(NOCOMBINE.${_P}) && !defined(NOCOMBINE))
   .for f in ${SRCS.${_P}:N*.h:N*.sh:N*.fth:C/\.[yl]$/.c/g}
   #_XFLAGS.$f := ${CPPFLAGS.$f:D1} ${CPUFLAGS.$f:D2} \
   #     ${COPTS.$f:D3} ${OBJCOPTS.$f:D4} ${CXXFLAGS.$f:D5}
   .if (${CPPFLAGS.$f:D1} == "1" || ${CPUFLAGS.$f:D2} == "2" \
        || ${COPTS.$f:D3} == "3" || ${OBJCOPTS.$f:D4} == "4" \
        || ${CXXFLAGS.$f:D5} == "5") \
       || ("${f:M*.[cyl]}" == "" || commands(${f:R:S/$/.o/}))
   XOBJS.${_P}+=   ${f:R:S/$/.o/}
   XSRCS.${_P}+=   ${f}
   NODPSRCS+=      ${f}
   ${_P}: .gdbinit ${LIBCRT0} ${XOBJS.${_P}} ${SRCS.${_P}} ${DPSRCS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
   .if defined(DESTDIR)
           ${_CCLINK.${_P}} -Wl,-nostdlib \
               ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} ${_PROGLDOPTS} \
               -B${_GCC_CRTDIR}/ -B${DESTDIR}/usr/lib/ \
               -MD --combine ${_CPPFLAGS.${_P}} ${_CFLAGS.${_P}} ${_COPTS.${_P}} \
               ${XSRCS.${_P}:@.SRC.@${.ALLSRC:M*.c:M*${.SRC.}}@:O:u} ${XOBJS.${_P}} \
               ${_LDADD.${_P}} -L${_GCC_LIBGCCDIR} -L${DESTDIR}/usr/lib
           ${_CCLINK.${_P}} ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} ${_PROGLDOPTS} \
               -MD --combine ${_CPPFLAGS.${_P}} ${_COPTS.${_P}}
               ${XSRCS.${_P}:@.SRC.@${.ALLSRC:M*.c:M*${.SRC.}}@:O:u} ${XOBJS.${_P}} \
   .endif  # defined(DESTDIR)
           @${SIZE} ${_P}
   .if defined(CTFMERGE)
           ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${OBJS.${_P}}
   .if defined(PAXCTL_FLAGS.${_P})
           ${PAXCTL} ${PAXCTL_FLAGS.${_P}} ${.TARGET}
   .if ${MKSTRIPIDENT} != "no"
           ${OBJCOPY} -R .ident ${.TARGET}
   CLEANFILES+=    ${_P}.d
   .if exists(${_P}.d)
   .include "${_P}.d"              # include -MD depend for program.
   .else   # USE_COMBINE
 ${OBJS.${_P}} ${LOBJS.${_P}}: ${DPSRCS}  ${OBJS.${_P}} ${LOBJS.${_P}}: ${DPSRCS}
 ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
Line 421  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
Line 476  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
             ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} \              ${_LDFLAGS.${_P}} ${_LDSTATIC.${_P}} -o ${.TARGET} \
             ${OBJS.${_P}} ${_LDADD.${_P}} \              ${OBJS.${_P}} ${_LDADD.${_P}} \
             ${_PROGLDOPTS}              ${_PROGLDOPTS}
           @${SIZE} ${_P}
 .if defined(CTFMERGE)  .if defined(CTFMERGE)
         ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${OBJS.${_P}}          ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${OBJS.${_P}}
 .endif  .endif
Line 431  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
Line 487  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
         ${OBJCOPY} -R .ident ${.TARGET}          ${OBJCOPY} -R .ident ${.TARGET}
 .endif  .endif
 .endif  # !commands(${_P})  .endif  # !commands(${_P})
   .endif  # USE_COMBINE
 ${_P}.ro: ${OBJS.${_P}} ${DPADD}  ${_P}.ro: ${OBJS.${_P}} ${DPADD}
         ${_MKTARGET_LINK}          ${_MKTARGET_LINK}

Removed from v.1.270  
changed lines
  Added in v.1.271

CVSweb <webmaster@jp.NetBSD.org>