bsd.lib.mk (96453) | bsd.lib.mk (96462) |
---|---|
1# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 | 1# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 |
2# $FreeBSD: head/share/mk/bsd.lib.mk 96453 2002-05-12 13:48:53Z obrien $ | 2# $FreeBSD: head/share/mk/bsd.lib.mk 96462 2002-05-12 16:01:00Z ru $ |
3# 4 5.include <bsd.init.mk> 6 7.if exists(${.CURDIR}/shlib_version) 8SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major 9.if ${OBJFORMAT} == aout 10SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor --- 255 unchanged lines hidden (view full) --- 266.else 267.if defined(DPADD) && !empty(DPADD) 268 echo ${SHLIB_NAME}: ${DPADD} >> ${DEPENDFILE} 269.endif 270.endif 271.endif 272 273.if !target(install) | 3# 4 5.include <bsd.init.mk> 6 7.if exists(${.CURDIR}/shlib_version) 8SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major 9.if ${OBJFORMAT} == aout 10SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor --- 255 unchanged lines hidden (view full) --- 266.else 267.if defined(DPADD) && !empty(DPADD) 268 echo ${SHLIB_NAME}: ${DPADD} >> ${DEPENDFILE} 269.endif 270.endif 271.endif 272 273.if !target(install) |
274.if !target(beforeinstall) 275beforeinstall: _includeinstall 276.endif | |
277 | 274 |
278_includeinstall: 279.if defined(INCS) 280.for header in ${INCS} 281 cd ${.CURDIR} && \ 282 ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \ 283 ${header} ${DESTDIR}${INCDIR} 284.endfor 285.endif 286 | |
287.if defined(PRECIOUSLIB) && !defined(NOFSCHG) 288SHLINSTALLFLAGS+= -fschg 289.endif 290 291_INSTALLFLAGS:= ${INSTALLFLAGS} 292.for ie in ${INSTALLFLAGS_EDIT} 293_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} 294.endfor 295_SHLINSTALLFLAGS:= ${SHLINSTALLFLAGS} 296.for ie in ${INSTALLFLAGS_EDIT} 297_SHLINSTALLFLAGS:= ${_SHLINSTALLFLAGS${ie}} 298.endfor 299 | 275.if defined(PRECIOUSLIB) && !defined(NOFSCHG) 276SHLINSTALLFLAGS+= -fschg 277.endif 278 279_INSTALLFLAGS:= ${INSTALLFLAGS} 280.for ie in ${INSTALLFLAGS_EDIT} 281_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} 282.endfor 283_SHLINSTALLFLAGS:= ${SHLINSTALLFLAGS} 284.for ie in ${INSTALLFLAGS_EDIT} 285_SHLINSTALLFLAGS:= ${_SHLINSTALLFLAGS${ie}} 286.endfor 287 |
300realinstall: beforeinstall | |
301realinstall: _libinstall 302_libinstall: 303.if !defined(INTERNALLIB) 304 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 305 ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} 306.if !defined(NOPROFILE) 307 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 308 ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} --- 6 unchanged lines hidden (view full) --- 315.if defined(SHLIB_LINK) 316 ln -sf ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}/${SHLIB_LINK} 317.endif 318.endif 319.if defined(INSTALL_PIC_ARCHIVE) 320 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 321 ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${LIBDIR} 322.endif | 288realinstall: _libinstall 289_libinstall: 290.if !defined(INTERNALLIB) 291 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 292 ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} 293.if !defined(NOPROFILE) 294 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 295 ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} --- 6 unchanged lines hidden (view full) --- 302.if defined(SHLIB_LINK) 303 ln -sf ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}/${SHLIB_LINK} 304.endif 305.endif 306.if defined(INSTALL_PIC_ARCHIVE) 307 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 308 ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${LIBDIR} 309.endif |
310.if defined(WANT_LINT) && defined(LIB) && defined(LINTOBJS) && !empty(LINTOBJS) 311 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 312 ${_INSTALLFLAGS} ${LINTLIB} ${DESTDIR}${LINTLIBDIR} 313.endif 314 315realinstall: |
|
323.if defined(LINKS) && !empty(LINKS) 324 @set ${LINKS}; \ 325 while test $$# -ge 2; do \ 326 l=${DESTDIR}$$1; \ 327 shift; \ 328 t=${DESTDIR}$$1; \ 329 shift; \ 330 ${ECHO} $$t -\> $$l; \ --- 6 unchanged lines hidden (view full) --- 337 l=$$1; \ 338 shift; \ 339 t=${DESTDIR}$$1; \ 340 shift; \ 341 ${ECHO} $$t -\> $$l; \ 342 ln -fs $$l $$t; \ 343 done; true 344.endif | 316.if defined(LINKS) && !empty(LINKS) 317 @set ${LINKS}; \ 318 while test $$# -ge 2; do \ 319 l=${DESTDIR}$$1; \ 320 shift; \ 321 t=${DESTDIR}$$1; \ 322 shift; \ 323 ${ECHO} $$t -\> $$l; \ --- 6 unchanged lines hidden (view full) --- 330 l=$$1; \ 331 shift; \ 332 t=${DESTDIR}$$1; \ 333 shift; \ 334 ${ECHO} $$t -\> $$l; \ 335 ln -fs $$l $$t; \ 336 done; true 337.endif |
345.if defined(WANT_LINT) && defined(LIB) && defined(LINTOBJS) && !empty(LINTOBJS) 346 ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 347 ${_INSTALLFLAGS} ${LINTLIB} ${DESTDIR}${LINTLIBDIR} 348.endif | |
349 | 338 |
339realinstall: _incsinstall 340 |
|
350.if !defined(NOMAN) 351realinstall: _maninstall 352.endif 353 | 341.if !defined(NOMAN) 342realinstall: _maninstall 343.endif 344 |
354install: afterinstall 355afterinstall: realinstall | |
356.endif 357 358.if !target(lint) 359lint: ${SRCS:M*.c} 360 ${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} 361.endif 362 | 345.endif 346 347.if !target(lint) 348lint: ${SRCS:M*.c} 349 ${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} 350.endif 351 |
352.include <bsd.incs.mk> 353 |
|
363.if !defined(NOMAN) 364.include <bsd.man.mk> 365.endif 366 367.include <bsd.dep.mk> 368 369.if !exists(${.OBJDIR}/${DEPENDFILE}) 370${OBJS} ${STATICOBJS} ${POBJS} ${SOBJS}: ${SRCS:M*.h} 371.endif 372 373.include <bsd.obj.mk> 374 375.include <bsd.sys.mk> | 354.if !defined(NOMAN) 355.include <bsd.man.mk> 356.endif 357 358.include <bsd.dep.mk> 359 360.if !exists(${.OBJDIR}/${DEPENDFILE}) 361${OBJS} ${STATICOBJS} ${POBJS} ${SOBJS}: ${SRCS:M*.h} 362.endif 363 364.include <bsd.obj.mk> 365 366.include <bsd.sys.mk> |