bsd.lib.mk (96162) | bsd.lib.mk (96164) |
---|---|
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 96162 2002-05-07 15:27:56Z ru $ | 2# $FreeBSD: head/share/mk/bsd.lib.mk 96164 2002-05-07 15:42:56Z 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 --- 168 unchanged lines hidden (view full) --- 179.if defined(WANT_LINT) && defined(LIB) && defined(LINTOBJS) && !empty(LINTOBJS) 180LINTLIB=llib-l${LIB}.ln 181_LIBS+=${LINTLIB} 182.endif 183 184all: objwarn ${_LIBS} 185 186.if !defined(NOMAN) | 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 --- 168 unchanged lines hidden (view full) --- 179.if defined(WANT_LINT) && defined(LIB) && defined(LINTOBJS) && !empty(LINTOBJS) 180LINTLIB=llib-l${LIB}.ln 181_LIBS+=${LINTLIB} 182.endif 183 184all: objwarn ${_LIBS} 185 186.if !defined(NOMAN) |
187all: all-man | 187all: _manpages |
188.endif 189 190OBJS+= ${SRCS:N*.h:R:S/$/.o/g} 191 192lib${LIB}.a:: ${OBJS} ${STATICOBJS} 193 @${ECHO} building static ${LIB} library 194 @rm -f lib${LIB}.a 195 @${AR} cq lib${LIB}.a `lorder ${OBJS} ${STATICOBJS} | tsort -q` ${ARADD} --- 147 unchanged lines hidden (view full) --- 343 done; true 344.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 350.if !defined(NOMAN) | 188.endif 189 190OBJS+= ${SRCS:N*.h:R:S/$/.o/g} 191 192lib${LIB}.a:: ${OBJS} ${STATICOBJS} 193 @${ECHO} building static ${LIB} library 194 @rm -f lib${LIB}.a 195 @${AR} cq lib${LIB}.a `lorder ${OBJS} ${STATICOBJS} | tsort -q` ${ARADD} --- 147 unchanged lines hidden (view full) --- 343 done; true 344.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 350.if !defined(NOMAN) |
351realinstall: maninstall | 351realinstall: _maninstall |
352.endif 353 354install: afterinstall 355afterinstall: realinstall 356.endif 357 358.if !target(lint) 359lint: ${SRCS:M*.c} --- 16 unchanged lines hidden --- | 352.endif 353 354install: afterinstall 355afterinstall: realinstall 356.endif 357 358.if !target(lint) 359lint: ${SRCS:M*.c} --- 16 unchanged lines hidden --- |