[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.182 and 1.185

version 1.182, 2003/08/01 17:04:01 version 1.185, 2003/09/13 02:52:05
Line 7 
Line 7 
 .include <bsd.shlib.mk>  .include <bsd.shlib.mk>
 .include <bsd.gcc.mk>  .include <bsd.gcc.mk>
   
   .if defined(PROG_CXX)
   PROG=   ${PROG_CXX}
   .endif
   
 ##### Basic targets  ##### Basic targets
 .PHONY:         cleanextra cleanobjs cleanprog proginstall scriptsinstall  .PHONY:         cleanextra cleanobjs cleanprog proginstall scriptsinstall
 realinstall:    proginstall scriptsinstall  realinstall:    proginstall scriptsinstall
 clean:          cleanprog  clean:          cleanprog
   
   ##### PROG specific flags.
   COPTS+=    ${COPTS.${PROG}}
   CPPFLAGS+=  ${CPPFLAGS.${PROG}}
   CXXFLAGS+=  ${CXXFLAGS.${PROG}}
   LDADD+=     ${LDADD.${PROG}}
   
 ##### Default values  ##### Default values
 CPPFLAGS+=      ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}  CPPFLAGS+=      ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}
 CXXFLAGS+=      ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++}  CXXFLAGS+=      ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++}
Line 57  __bsd_prog_mk_system_libs?= \
Line 67  __bsd_prog_mk_system_libs?= \
 .for _n in ${__bsd_prog_mk_system_libs}  .for _n in ${__bsd_prog_mk_system_libs}
 .ifndef LIB${_n}  .ifndef LIB${_n}
 LIB${_n}= ${DESTDIR}/usr/lib/lib${_n:tl}.a  LIB${_n}= ${DESTDIR}/usr/lib/lib${_n:tl}.a
 # XXX - note that ${DESTDIR} will be expanded in the following rule  # Note: ${DESTDIR} will be expanded in the following rule
 .MADE: ${LIB${_n}}  .MADE: ${LIB${_n}}
 .endif  .endif
 .endfor  .endfor
 .undef __bsd_prog_mk_system_libs  .undef __bsd_prog_mk_system_libs
   
   ##### Installed X11R6 library definitions
   #     E.g. LIBX11?=${DESTDIR}/usr/X11R6/lib/libX11.a
   #     etc..
   #
   __bsd_prog_mk_x11r6_libs?= \
           dps expat fntstubs fontcache fontconfig fontenc freetype FS \
           GL GLU ICE lbxutil SM X11 Xau Xaw Xdmcp Xext Xfont Xft \
           Xi Xinerama xkbfile Xmu Xmuu Xpm Xrandr Xrender Xss Xt \
           XTrap Xtst Xv Xxf86dga Xxf86misc Xxf86vm
   
   .for _n in ${__bsd_prog_mk_x11r6_libs}
   .ifndef LIB${_n:tu}
   LIB${_n:tu}= ${DESTDIR}/usr/X11R6/lib/lib${_n}.a
   # Note: ${DESTDIR} will be expanded in the following rule
   .MADE: ${LIB${_n:tu}}
   .endif
   .endfor
   .undef __bsd_prog_mk_x11r6_libs
   
 ##### Build and install rules  ##### Build and install rules
 .if defined(SHAREDSTRINGS)  .if defined(SHAREDSTRINGS)
 CLEANFILES+=strings  CLEANFILES+=strings
Line 78  CLEANFILES+=strings
Line 107  CLEANFILES+=strings
         @rm -f x.cc          @rm -f x.cc
 .endif  .endif
   
 .if defined(PROG_CXX)  
 PROG=   ${PROG_CXX}  
 .endif  
   
 .if defined(PROG)  .if defined(PROG)
 .if defined(PROG_CXX)  .if defined(PROG_CXX)
 SRCS?=          ${PROG}.cc  SRCS?=          ${PROG}.cc
Line 153  ${PROG}: .gdbinit ${LIBCRT0} ${OBJS} ${L
Line 178  ${PROG}: .gdbinit ${LIBCRT0} ${OBJS} ${L
 .endif  # defined(DESTDIR)  .endif  # defined(DESTDIR)
 .endif  # !commands(${PROG})  .endif  # !commands(${PROG})
   
   ${PROG}.ro: ${OBJS} ${DPADD}
           ${LD} -r -dc -o ${.TARGET} ${OBJS}
   
 .endif  # defined(OBJS) && !empty(OBJS)  .endif  # defined(OBJS) && !empty(OBJS)
   
 .if !defined(MAN)  .if !defined(MAN)

Legend:
Removed from v.1.182  
changed lines
  Added in v.1.185

CVSweb <webmaster@jp.NetBSD.org>