[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.161 and 1.167

version 1.161, 2002/11/12 14:33:49 version 1.167, 2003/05/31 20:33:16
Line 1 
Line 1 
 #       $NetBSD$  #       $NetBSD$
 #       @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94  #       @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
   
   .ifndef HOSTPROG
   
 .include <bsd.init.mk>  .include <bsd.init.mk>
 .include <bsd.shlib.mk>  .include <bsd.shlib.mk>
   .include <bsd.gcc.mk>
   
 ##### Basic targets  ##### Basic targets
 .PHONY:         cleanextra cleanobjs cleanprog proginstall scriptsinstall  .PHONY:         cleanextra cleanobjs cleanprog proginstall scriptsinstall
Line 17  CFLAGS+= ${COPTS}
Line 20  CFLAGS+= ${COPTS}
 CFLAGS+=        -mcmodel=medlow  CFLAGS+=        -mcmodel=medlow
 .endif  .endif
   
 # ELF platforms depend on crtbegin.o and crtend.o  # ELF platforms depend on crti.o, crtbegin.o, crtend.o, and crtn.o
 .if ${OBJECT_FMT} == "ELF"  .if ${OBJECT_FMT} == "ELF"
 .ifndef LIBCRTBEGIN  .ifndef LIBCRTBEGIN
 LIBCRTBEGIN=    ${DESTDIR}/usr/lib/crtbegin.o  LIBCRTBEGIN=    ${DESTDIR}/usr/lib/crti.o ${_GCC_CRTBEGIN}
 .MADE: ${LIBCRTBEGIN}  .MADE: ${LIBCRTBEGIN}
 .endif  .endif
 .ifndef LIBCRTEND  .ifndef LIBCRTEND
 LIBCRTEND=      ${DESTDIR}/usr/lib/crtend.o  LIBCRTEND=      ${_GCC_CRTEND} ${DESTDIR}/usr/lib/crtn.o
 .MADE: ${LIBCRTEND}  .MADE: ${LIBCRTEND}
 .endif  .endif
 _SHLINKER=      ${SHLINKDIR}/ld.elf_so  _SHLINKER=      ${SHLINKDIR}/ld.elf_so
Line 48  __bsd_prog_mk_system_libs?= \
Line 51  __bsd_prog_mk_system_libs?= \
         CRYPTO_RC5 \          CRYPTO_RC5 \
         CURSES DBM DES EDIT FORM GCC GNUMALLOC GSSAPI HDB INTL IPSEC \          CURSES DBM DES EDIT FORM GCC GNUMALLOC GSSAPI HDB INTL IPSEC \
         KADM KADM5CLNT KADM5SRV KAFS KDB KRB KRB5 KSTREAM KVM L M MENU \          KADM KADM5CLNT KADM5SRV KAFS KDB KRB KRB5 KSTREAM KVM L M MENU \
         OBJC OSSAUDIO PCAP PCI PMC POSIX RESOLV RMT ROKEN RPCSVC SKEY SS SSL \          OBJC OSSAUDIO PCAP PCI PMC POSIX PTHREAD PTHREAD_DBG RESOLV RMT \
         SL TERMCAP TELNET USBHID UTIL WRAP Y Z          ROKEN RPCSVC RT SKEY SS SSL SL TERMCAP TELNET USBHID UTIL WRAP Y Z
   
 .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 expanded in the following rule  # XXX - note that ${DESTDIR} will be expanded in the following rule
 .MADE: ${LIB${_n}}  .MADE: ${LIB${_n}}
 .endif  .endif
 .endfor  .endfor
Line 143  _CCLINK= ${CC}
Line 146  _CCLINK= ${CC}
   
 ${PROG}: .gdbinit ${LIBCRT0} ${DPSRCS} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}  ${PROG}: .gdbinit ${LIBCRT0} ${DPSRCS} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
 .if !commands(${PROG})  .if !commands(${PROG})
         ${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib ${_PROGLDOPTS} ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -L${DESTDIR}/usr/lib ${_SUPCXX} -lgcc -lc -lgcc ${LIBCRTEND}          ${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib ${_PROGLDOPTS} ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -L${_GCC_LIBGCCDIR} -L${DESTDIR}/usr/lib ${_SUPCXX} -lgcc -lc -lgcc ${LIBCRTEND}
 .endif  .endif
   
 .else  .else
Line 261  lint: ${LOBJS}
Line 264  lint: ${LOBJS}
 .include <bsd.sys.mk>  .include <bsd.sys.mk>
   
 ${TARGETS}:     # ensure existence  ${TARGETS}:     # ensure existence
   
   .endif  # HOSTPROG

Legend:
Removed from v.1.161  
changed lines
  Added in v.1.167

CVSweb <webmaster@jp.NetBSD.org>