[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.278 and 1.278.2.1

version 1.278, 2012/08/24 20:26:24 version 1.278.2.1, 2013/02/25 00:28:17
Line 33  CLEANFILES+=strings
Line 33  CLEANFILES+=strings
 .c.o:  .c.o:
         ${CC} -E ${CPPFLAGS} ${CFLAGS} ${.IMPSRC} | xstr -c -          ${CC} -E ${CPPFLAGS} ${CFLAGS} ${.IMPSRC} | xstr -c -
         @${CC} ${CPPFLAGS} ${CFLAGS} -c x.c -o ${.TARGET}          @${CC} ${CPPFLAGS} ${CFLAGS} -c x.c -o ${.TARGET}
   .if defined(CTFCONVERT)
           ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
   .endif
         @rm -f x.c          @rm -f x.c
   
 .cc.o .cpp.o .cxx.o .C.o:  .cc.o .cpp.o .cxx.o .C.o:
         ${CXX} -E ${CPPFLAGS} ${CXXFLAGS} ${.IMPSRC} | xstr -c -          ${CXX} -E ${CPPFLAGS} ${CXXFLAGS} ${.IMPSRC} | xstr -c -
         @mv -f x.c x.cc          @mv -f x.c x.cc
         @${CXX} ${CPPFLAGS} ${CXXFLAGS} -c x.cc -o ${.TARGET}          @${CXX} ${CPPFLAGS} ${CXXFLAGS} -c x.cc -o ${.TARGET}
   .if defined(CTFCONVERT)
           ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
   .endif
         @rm -f x.cc          @rm -f x.cc
 .endif  .endif
   
Line 49  LDFLAGS+= ${PIE_LDFLAGS}
Line 55  LDFLAGS+= ${PIE_LDFLAGS}
 .endif  .endif
   
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
   .if defined(MKDEBUG) && (${MKDEBUG} != "no")
   CFLAGS+=        -g
   .endif
 OBJCFLAGS+=     ${OBJCOPTS}  OBJCFLAGS+=     ${OBJCOPTS}
 MKDEP_SUFFIXES?=        .o .ln  MKDEP_SUFFIXES?=        .o .ln
   
Line 368  PROGS=  ${PROG}
Line 377  PROGS=  ${PROG}
 .  endif  .  endif
 .endif  .endif
   
   ##### Libraries that this may depend upon.
   .if defined(PROGDPLIBS)                                                 # {
   .for _lib _dir in ${PROGDPLIBS}
   .if !defined(BINDO.${_lib})
   PROGDO.${_lib}!=        cd "${_dir}" && ${PRINTOBJDIR}
   .MAKEOVERRIDES+=PROGDO.${_lib}
   .endif
   LDADD+=         -L${PROGDO.${_lib}} -l${_lib}
   .if exists(${PROGDO.${_lib}}/lib${_lib}_pic.a)
   DPADD+=         ${PROGDO.${_lib}}/lib${_lib}_pic.a
   .elif exists(${PROGDO.${_lib}}/lib${_lib}.so)
   DPADD+=         ${PROGDO.${_lib}}/lib${_lib}.so
   .else
   DPADD+=         ${PROGDO.${_lib}}/lib${_lib}.a
   .endif
   .endfor
   .endif                                                                  # }
 #  #
 # Per-program definitions and targets.  # Per-program definitions and targets.
 #  #

Legend:
Removed from v.1.278  
changed lines
  Added in v.1.278.2.1

CVSweb <webmaster@jp.NetBSD.org>