bsd.lib.mk (371f3da616598f7bcd14e26b54c7b2c96ec9bbd7) | bsd.lib.mk (697b271da935866850692f7e0cb76434c4e26b13) |
---|---|
1# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 2# $FreeBSD$ 3# 4 5.include <bsd.init.mk> 6.include <bsd.compiler.mk> 7.include <bsd.linker.mk> 8 --- 302 unchanged lines hidden (view full) --- 311.endif 312CLEANFILES+= ${SHLIB_LINK} 313.endif 314 315${SHLIB_NAME_FULL}: ${SOBJS} 316 @${ECHO} building shared library ${SHLIB_NAME} 317 @rm -f ${SHLIB_NAME} ${SHLIB_LINK} 318.if defined(SHLIB_LINK) && !commands(${SHLIB_LINK:R}.ld) && ${MK_DEBUG_FILES} == "no" | 1# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 2# $FreeBSD$ 3# 4 5.include <bsd.init.mk> 6.include <bsd.compiler.mk> 7.include <bsd.linker.mk> 8 --- 302 unchanged lines hidden (view full) --- 311.endif 312CLEANFILES+= ${SHLIB_LINK} 313.endif 314 315${SHLIB_NAME_FULL}: ${SOBJS} 316 @${ECHO} building shared library ${SHLIB_NAME} 317 @rm -f ${SHLIB_NAME} ${SHLIB_LINK} 318.if defined(SHLIB_LINK) && !commands(${SHLIB_LINK:R}.ld) && ${MK_DEBUG_FILES} == "no" |
319 @${INSTALL_LIBSYMLINK} ${TAG_ARGS:D${TAG_ARGS},development} ${SHLIB_NAME} ${SHLIB_LINK} | 319 @${INSTALL_LIBSYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ${SHLIB_NAME} ${SHLIB_LINK} |
320.endif 321 ${_LD:N${CCACHE_BIN}} ${LDFLAGS} ${SSP_CFLAGS} ${SOLINKOPTS} \ 322 -o ${.TARGET} -Wl,-soname,${SONAME} \ 323 `NM='${NM}' NMFLAGS='${NMFLAGS}' ${LORDER} ${SOBJS} | \ 324 ${TSORT} ${TSORTFLAGS}` ${LDADD} 325.if ${MK_CTF} != "no" 326 ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SOBJS} 327.endif 328 329.if ${MK_DEBUG_FILES} != "no" 330CLEANFILES+= ${SHLIB_NAME_FULL} ${SHLIB_NAME}.debug 331${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.debug 332 ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.debug \ 333 ${SHLIB_NAME_FULL} ${.TARGET} 334.if defined(SHLIB_LINK) && !commands(${SHLIB_LINK:R}.ld) | 320.endif 321 ${_LD:N${CCACHE_BIN}} ${LDFLAGS} ${SSP_CFLAGS} ${SOLINKOPTS} \ 322 -o ${.TARGET} -Wl,-soname,${SONAME} \ 323 `NM='${NM}' NMFLAGS='${NMFLAGS}' ${LORDER} ${SOBJS} | \ 324 ${TSORT} ${TSORTFLAGS}` ${LDADD} 325.if ${MK_CTF} != "no" 326 ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SOBJS} 327.endif 328 329.if ${MK_DEBUG_FILES} != "no" 330CLEANFILES+= ${SHLIB_NAME_FULL} ${SHLIB_NAME}.debug 331${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.debug 332 ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.debug \ 333 ${SHLIB_NAME_FULL} ${.TARGET} 334.if defined(SHLIB_LINK) && !commands(${SHLIB_LINK:R}.ld) |
335 @${INSTALL_LIBSYMLINK} ${TAG_ARGS:D${TAG_ARGS},development} ${SHLIB_NAME} ${SHLIB_LINK} | 335 @${INSTALL_LIBSYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ${SHLIB_NAME} ${SHLIB_LINK} |
336.endif 337 338${SHLIB_NAME}.debug: ${SHLIB_NAME_FULL} 339 ${OBJCOPY} --only-keep-debug ${SHLIB_NAME_FULL} ${.TARGET} 340.endif 341.endif #defined(SHLIB_NAME) 342 343.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" --- 79 unchanged lines hidden (view full) --- 423_SHLINSTALLFLAGS:= ${_SHLINSTALLFLAGS${ie}} 424.endfor 425 426.if !defined(INTERNALLIB) 427realinstall: _libinstall 428.ORDER: beforeinstall _libinstall 429_libinstall: 430.if defined(LIB) && !empty(LIB) && ${MK_INSTALLLIB} != "no" | 336.endif 337 338${SHLIB_NAME}.debug: ${SHLIB_NAME_FULL} 339 ${OBJCOPY} --only-keep-debug ${SHLIB_NAME_FULL} ${.TARGET} 340.endif 341.endif #defined(SHLIB_NAME) 342 343.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" --- 79 unchanged lines hidden (view full) --- 423_SHLINSTALLFLAGS:= ${_SHLINSTALLFLAGS${ie}} 424.endfor 425 426.if !defined(INTERNALLIB) 427realinstall: _libinstall 428.ORDER: beforeinstall _libinstall 429_libinstall: 430.if defined(LIB) && !empty(LIB) && ${MK_INSTALLLIB} != "no" |
431 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ | 431 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
432 ${_INSTALLFLAGS} lib${LIB_PRIVATE}${LIB}.a ${DESTDIR}${_LIBDIR}/ 433.endif 434.if ${MK_PROFILE} != "no" && defined(LIB) && !empty(LIB) | 432 ${_INSTALLFLAGS} lib${LIB_PRIVATE}${LIB}.a ${DESTDIR}${_LIBDIR}/ 433.endif 434.if ${MK_PROFILE} != "no" && defined(LIB) && !empty(LIB) |
435 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ | 435 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
436 ${_INSTALLFLAGS} lib${LIB_PRIVATE}${LIB}_p.a ${DESTDIR}${_LIBDIR}/ 437.endif 438.if defined(SHLIB_NAME) 439 ${INSTALL} ${TAG_ARGS} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 440 ${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \ 441 ${SHLIB_NAME} ${DESTDIR}${_SHLIBDIR}/ 442.if ${MK_DEBUG_FILES} != "no" 443.if defined(DEBUGMKDIR) | 436 ${_INSTALLFLAGS} lib${LIB_PRIVATE}${LIB}_p.a ${DESTDIR}${_LIBDIR}/ 437.endif 438.if defined(SHLIB_NAME) 439 ${INSTALL} ${TAG_ARGS} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 440 ${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \ 441 ${SHLIB_NAME} ${DESTDIR}${_SHLIBDIR}/ 442.if ${MK_DEBUG_FILES} != "no" 443.if defined(DEBUGMKDIR) |
444 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},debug} -d ${DESTDIR}${DEBUGFILEDIR}/ | 444 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dbg} -d ${DESTDIR}${DEBUGFILEDIR}/ |
445.endif | 445.endif |
446 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},debug} -o ${LIBOWN} -g ${LIBGRP} -m ${DEBUGMODE} \ | 446 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dbg} -o ${LIBOWN} -g ${LIBGRP} -m ${DEBUGMODE} \ |
447 ${_INSTALLFLAGS} \ 448 ${SHLIB_NAME}.debug ${DESTDIR}${DEBUGFILEDIR}/ 449.endif 450.if defined(SHLIB_LINK) 451.if commands(${SHLIB_LINK:R}.ld) | 447 ${_INSTALLFLAGS} \ 448 ${SHLIB_NAME}.debug ${DESTDIR}${DEBUGFILEDIR}/ 449.endif 450.if defined(SHLIB_LINK) 451.if commands(${SHLIB_LINK:R}.ld) |
452 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -S -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ | 452 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -S -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
453 ${_INSTALLFLAGS} ${SHLIB_LINK:R}.ld \ 454 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 455.for _SHLIB_LINK_LINK in ${SHLIB_LDSCRIPT_LINKS} 456 ${INSTALL_LIBSYMLINK} ${TAG_ARGS} ${SHLIB_LINK} ${DESTDIR}${_LIBDIR}/${_SHLIB_LINK_LINK} 457.endfor 458.else 459.if ${_SHLIBDIR} == ${_LIBDIR} 460.if ${SHLIB_LINK:Mlib*} | 453 ${_INSTALLFLAGS} ${SHLIB_LINK:R}.ld \ 454 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 455.for _SHLIB_LINK_LINK in ${SHLIB_LDSCRIPT_LINKS} 456 ${INSTALL_LIBSYMLINK} ${TAG_ARGS} ${SHLIB_LINK} ${DESTDIR}${_LIBDIR}/${_SHLIB_LINK_LINK} 457.endfor 458.else 459.if ${_SHLIBDIR} == ${_LIBDIR} 460.if ${SHLIB_LINK:Mlib*} |
461 ${INSTALL_RSYMLINK} ${TAG_ARGS:D${TAG_ARGS},development} ${SHLIB_NAME} ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} | 461 ${INSTALL_RSYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ${SHLIB_NAME} ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} |
462.else 463 ${INSTALL_RSYMLINK} ${TAG_ARGS} ${DESTDIR}${_SHLIBDIR}/${SHLIB_NAME} \ 464 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 465.endif 466.else 467.if ${SHLIB_LINK:Mlib*} | 462.else 463 ${INSTALL_RSYMLINK} ${TAG_ARGS} ${DESTDIR}${_SHLIBDIR}/${SHLIB_NAME} \ 464 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 465.endif 466.else 467.if ${SHLIB_LINK:Mlib*} |
468 ${INSTALL_RSYMLINK} ${TAG_ARGS:D${TAG_ARGS},development} ${DESTDIR}${_SHLIBDIR}/${SHLIB_NAME} \ | 468 ${INSTALL_RSYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ${DESTDIR}${_SHLIBDIR}/${SHLIB_NAME} \ |
469 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 470.else 471 ${INSTALL_RSYMLINK} ${TAG_ARGS} ${DESTDIR}${_SHLIBDIR}/${SHLIB_NAME} \ 472 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 473.endif 474.if exists(${DESTDIR}${_LIBDIR}/${SHLIB_NAME}) 475 -chflags noschg ${DESTDIR}${_LIBDIR}/${SHLIB_NAME} 476 rm -f ${DESTDIR}${_LIBDIR}/${SHLIB_NAME} 477.endif 478.endif 479.endif # SHLIB_LDSCRIPT 480.endif # SHLIB_LINK 481.endif # SHIB_NAME 482.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" | 469 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 470.else 471 ${INSTALL_RSYMLINK} ${TAG_ARGS} ${DESTDIR}${_SHLIBDIR}/${SHLIB_NAME} \ 472 ${DESTDIR}${_LIBDIR}/${SHLIB_LINK} 473.endif 474.if exists(${DESTDIR}${_LIBDIR}/${SHLIB_NAME}) 475 -chflags noschg ${DESTDIR}${_LIBDIR}/${SHLIB_NAME} 476 rm -f ${DESTDIR}${_LIBDIR}/${SHLIB_NAME} 477.endif 478.endif 479.endif # SHLIB_LDSCRIPT 480.endif # SHLIB_LINK 481.endif # SHIB_NAME 482.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" |
483 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ | 483 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |
484 ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${_LIBDIR}/ 485.endif 486.endif # !defined(INTERNALLIB) 487 488.if !defined(LIBRARIES_ONLY) 489.include <bsd.nls.mk> 490.include <bsd.confs.mk> 491.include <bsd.files.mk> --- 52 unchanged lines hidden --- | 484 ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${_LIBDIR}/ 485.endif 486.endif # !defined(INTERNALLIB) 487 488.if !defined(LIBRARIES_ONLY) 489.include <bsd.nls.mk> 490.include <bsd.confs.mk> 491.include <bsd.files.mk> --- 52 unchanged lines hidden --- |