[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.273 and 1.281

version 1.273, 2012/02/21 01:41:09 version 1.281, 2013/02/14 01:58:00
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 107  LIBCRT0= ${DESTDIR}/usr/lib/crt0.o
Line 116  LIBCRT0= ${DESTDIR}/usr/lib/crt0.o
         dns \          dns \
         edit \          edit \
         event \          event \
           expat \
         fetch \          fetch \
         fl \          fl \
         form \          form \
Line 246  PAM_STATIC_DPADD=
Line 256  PAM_STATIC_DPADD=
         Xxf86misc \          Xxf86misc \
         Xxf86vm \          Xxf86vm \
         dps \          dps \
         expat \  
         fntstubs \          fntstubs \
         fontcache \          fontcache \
         fontconfig \          fontconfig \
Line 310  _CCLINK= ${CXX} ${_CCLINKFLAGS}
Line 319  _CCLINK= ${CXX} ${_CCLINKFLAGS}
   
 .if defined(RUMPPRG)  .if defined(RUMPPRG)
 PROG=                   ${RUMPPRG}  PROG=                   ${RUMPPRG}
 .ifndef CRUNCHEDPROG  . ifndef CRUNCHEDPROG
   .  if (${MKRUMP} != "no")
 PROGS=                  ${RUMPPRG} rump.${RUMPPRG}  PROGS=                  ${RUMPPRG} rump.${RUMPPRG}
 . if defined(SRCS)  .  else
   PROGS=                  ${RUMPPRG}
   .  endif
   .  if defined(SRCS)
   .   if (${MKRUMP} != "no")
 SRCS.rump.${PROG}:=     ${SRCS} ${PROG}_rumpops.c ${RUMPSRCS}  SRCS.rump.${PROG}:=     ${SRCS} ${PROG}_rumpops.c ${RUMPSRCS}
   .   endif
 SRCS+=                  ${PROG}_hostops.c  SRCS+=                  ${PROG}_hostops.c
 . else  .  else
 SRCS=                   ${PROG}.c ${PROG}_hostops.c  SRCS=                   ${PROG}.c ${PROG}_hostops.c
   .   if (${MKRUMP} != "no")
 SRCS.rump.${PROG}=      ${PROG}.c ${PROG}_rumpops.c ${RUMPSRCS}  SRCS.rump.${PROG}=      ${PROG}.c ${PROG}_rumpops.c ${RUMPSRCS}
 . endif  .   endif
   .  endif
   .   if (${MKRUMP} != "no")
 DPSRCS+=                ${PROG}_rumpops.c ${RUMPSRCS}  DPSRCS+=                ${PROG}_rumpops.c ${RUMPSRCS}
 LDADD.rump.${PROG}+=    -lrumpclient  LDADD.rump.${PROG}+=    -lrumpclient
 DPADD.rump.${PROG}+=    ${LIBRUMPCLIENT}  DPADD.rump.${PROG}+=    ${LIBRUMPCLIENT}
 MAN.rump.${PROG}=       # defined but feeling empty  MAN.rump.${PROG}=       # defined but feeling empty
 _RUMPINSTALL.rump.${PROG}=# defined  _RUMPINSTALL.rump.${PROG}=# defined
 .else # CRUNCHEDPROG  .   endif
   . else # CRUNCHEDPROG
 PROGS=                  ${PROG}  PROGS=                  ${PROG}
 CPPFLAGS+=              -DCRUNCHOPS  CPPFLAGS+=              -DCRUNCHOPS
 .endif  . endif
 .endif  .endif
   
 .if defined(PROG)  .if defined(PROG)
Line 358  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})
   BINDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}
   .MAKEOVERRIDES+=BINDO.${_lib}
   .endif
   LDADD+=         -L${BINDO.${_lib}} -l${_lib}
   .if ${MKPICLIB} != "no"
   DPADD+=         ${BINDO.${_lib}}/libamu_pic.a
   .elif ${MKPIC} != "no"
   DPADD+=         ${BINDO.${_lib}}/libamu.so
   .else
   DPADD+=         ${BINDO.${_lib}}/libamu.a
   .endif
   .endfor
   .endif                                                                  # }
 #  #
 # Per-program definitions and targets.  # Per-program definitions and targets.
 #  #
Line 395  PAXCTL_FLAGS.${_P}?= ${PAXCTL_FLAGS}
Line 431  PAXCTL_FLAGS.${_P}?= ${PAXCTL_FLAGS}
   
 ##### PROG specific flags.  ##### PROG specific flags.
   
   _DPADD.${_P}=           ${DPADD}    ${DPADD.${_P}}
 _LDADD.${_P}=           ${LDADD}    ${LDADD.${_P}}  _LDADD.${_P}=           ${LDADD}    ${LDADD.${_P}}
 _LDFLAGS.${_P}=         ${LDFLAGS}  ${LDFLAGS.${_P}}  _LDFLAGS.${_P}=         ${LDFLAGS}  ${LDFLAGS.${_P}}
 _LDSTATIC.${_P}=        ${LDSTATIC} ${LDSTATIC.${_P}}  _LDSTATIC.${_P}=        ${LDSTATIC} ${LDSTATIC.${_P}}
Line 435  NODPSRCS+= ${f}
Line 472  NODPSRCS+= ${f}
 .endif  .endif
 .endfor  .endfor
   
 ${_P}: .gdbinit ${LIBCRT0} ${XOBJS.${_P}} ${SRCS.${_P}} ${DPSRCS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}  ${_P}: .gdbinit ${LIBCRT0} ${XOBJS.${_P}} ${SRCS.${_P}} ${DPSRCS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${_DPADD.${_P}}
         ${_MKTARGET_LINK}          ${_MKTARGET_LINK}
 .if defined(DESTDIR)  .if defined(DESTDIR)
         ${_CCLINK.${_P}} -Wl,-nostdlib \          ${_CCLINK.${_P}} -Wl,-nostdlib \
Line 468  CLEANFILES+= ${_P}.d
Line 505  CLEANFILES+= ${_P}.d
   
 ${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.${_P}}
 .if !commands(${_P})  .if !commands(${_P})
         ${_MKTARGET_LINK}          ${_MKTARGET_LINK}
         ${_CCLINK.${_P}} \          ${_CCLINK.${_P}} \
Line 487  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
Line 524  ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
 .endif  # !commands(${_P})  .endif  # !commands(${_P})
 .endif  # USE_COMBINE  .endif  # USE_COMBINE
   
 ${_P}.ro: ${OBJS.${_P}} ${DPADD}  ${_P}.ro: ${OBJS.${_P}} ${_DPADD.${_P}}
         ${_MKTARGET_LINK}          ${_MKTARGET_LINK}
         ${CC} ${LDFLAGS} -nostdlib -r -Wl,-dc -o ${.TARGET} ${OBJS.${_P}}          ${CC} ${LDFLAGS} -nostdlib -r -Wl,-dc -o ${.TARGET} ${OBJS.${_P}}
   

Legend:
Removed from v.1.273  
changed lines
  Added in v.1.281

CVSweb <webmaster@jp.NetBSD.org>