version 1.279, 2008/05/02 11:45:19 |
version 1.280, 2008/05/03 14:36:06 |
|
|
# Pull in <bsd.sys.mk> here so we can override its .c.o rule |
# Pull in <bsd.sys.mk> here so we can override its .c.o rule |
.include <bsd.sys.mk> |
.include <bsd.sys.mk> |
|
|
|
.if ${MKPRIVATELIB} != "no" |
|
MKDEBUGLIB:= no |
|
MKLINT:= no |
|
MKPIC:= no |
|
MKPROFILE:= no |
|
.endif |
|
|
##### Basic targets |
##### Basic targets |
.PHONY: checkver libinstall |
.PHONY: checkver libinstall |
realinstall: checkver libinstall |
realinstall: checkver libinstall |
Line 333 OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
|
Line 340 OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
|
|
|
STOBJS+=${OBJS} |
STOBJS+=${OBJS} |
|
|
|
LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} |
|
|
.if ${MKPRIVATELIB} != "no" |
.if ${MKPRIVATELIB} != "no" |
# No installation is required |
# No installation is required |
libinstall:: |
libinstall:: |
Line 371 _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION} |
|
Line 380 _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION} |
|
.endif |
.endif |
.endif # } |
.endif # } |
|
|
LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} |
|
.if ${MKLINT} != "no" && !empty(LOBJS) |
.if ${MKLINT} != "no" && !empty(LOBJS) |
_LIBS+=llib-l${LIB}.ln |
_LIBS+=llib-l${LIB}.ln |
.endif |
.endif |
Line 497 llib-l${LIB}.ln: ${LOBJS} |
|
Line 505 llib-l${LIB}.ln: ${LOBJS} |
|
.endif |
.endif |
.endif # } |
.endif # } |
|
|
|
lint: ${LOBJS} |
|
.if defined(LOBJS) && !empty(LOBJS) |
|
${LINT} ${LINTFLAGS} ${LOBJS} |
|
.endif |
|
|
cleanlib: .PHONY |
cleanlib: .PHONY |
rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES} |
rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES} |
rm -f lib${LIB}.a ${STOBJS} |
rm -f lib${LIB}.a ${STOBJS} |