version 1.155.2.1, 1999/08/10 00:43:36 |
version 1.158, 1999/09/12 00:31:34 |
Line 229 _LIBS=lib${LIB}.a |
|
Line 229 _LIBS=lib${LIB}.a |
|
_LIBS= |
_LIBS= |
.endif |
.endif |
|
|
|
OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
|
|
.if ${MKPROFILE} != "no" |
.if ${MKPROFILE} != "no" |
_LIBS+=lib${LIB}_p.a |
_LIBS+=lib${LIB}_p.a |
|
POBJS+=${OBJS:.o=.po} |
.endif |
.endif |
|
|
.if ${MKPIC} != "no" |
.if ${MKPIC} != "no" |
_LIBS+=lib${LIB}_pic.a |
_LIBS+=lib${LIB}_pic.a |
|
SOBJS+=${OBJS:.o=.so} |
.if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) |
.if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) |
_LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
_LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
.endif |
.endif |
Line 242 _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHL |
|
Line 246 _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHL |
|
|
|
.if ${MKLINT} != "no" && ${MKLINKLIB} != "no" |
.if ${MKLINT} != "no" && ${MKLINKLIB} != "no" |
_LIBS+=llib-l${LIB}.ln |
_LIBS+=llib-l${LIB}.ln |
|
LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} |
.endif |
.endif |
|
|
all: ${SRCS} ${_LIBS} |
ALLOBJS=${OBJS} ${POBJS} ${SOBJS} ${LOBJS} |
|
|
|
all: ${SRCS} ${ALLOBJS:O} ${_LIBS} |
|
|
__archivebuild: .USE |
__archivebuild: .USE |
@rm -f ${.TARGET} |
@rm -f ${.TARGET} |
Line 252 __archivebuild: .USE |
|
Line 259 __archivebuild: .USE |
|
${RANLIB} ${.TARGET} |
${RANLIB} ${.TARGET} |
|
|
__archiveinstall: .USE |
__archiveinstall: .USE |
.if ${MORTALINSTALL} != "no" |
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \ |
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \ |
-g ${LIBGRP} -m 600 ${.ALLSRC} ${.TARGET} |
-m 600 ${.ALLSRC} ${.TARGET} |
|
.else |
|
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \ |
|
-m 600 ${.ALLSRC} ${.TARGET} |
|
.endif |
|
${RANLIB} -t ${.TARGET} |
${RANLIB} -t ${.TARGET} |
chmod ${LIBMODE} ${.TARGET} |
chmod ${LIBMODE} ${.TARGET} |
|
|
Line 272 OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
|
Line 274 OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} |
|
lib${LIB}.a:: ${OBJS} __archivebuild |
lib${LIB}.a:: ${OBJS} __archivebuild |
@echo building standard ${LIB} library |
@echo building standard ${LIB} library |
|
|
POBJS+= ${OBJS:.o=.po} |
|
lib${LIB}_p.a:: ${POBJS} __archivebuild |
lib${LIB}_p.a:: ${POBJS} __archivebuild |
@echo building profiled ${LIB} library |
@echo building profiled ${LIB} library |
|
|
SOBJS+= ${OBJS:.o=.so} |
|
lib${LIB}_pic.a:: ${SOBJS} __archivebuild |
lib${LIB}_pic.a:: ${SOBJS} __archivebuild |
@echo building shared object ${LIB} library |
@echo building shared object ${LIB} library |
|
|
Line 306 lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO |
|
Line 306 lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINO |
|
lib${LIB}.so |
lib${LIB}.so |
.endif |
.endif |
|
|
LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} |
|
LLIBS?= -lc |
LLIBS?= -lc |
llib-l${LIB}.ln: ${LOBJS} |
llib-l${LIB}.ln: ${LOBJS} |
@echo building llib-l${LIB}.ln |
@echo building llib-l${LIB}.ln |
Line 337 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
Line 336 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
.if !defined(UPDATE) |
.if !defined(UPDATE) |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a |
.endif |
.endif |
.if !defined(BUILD) |
.if !defined(BUILD) && !make(all) && !make(lib${LIB}.a) |
${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE |
${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE |
.endif |
.endif |
|
|
Line 350 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
Line 349 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
.if !defined(UPDATE) |
.if !defined(UPDATE) |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a |
.endif |
.endif |
.if !defined(BUILD) |
.if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a) |
${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE |
${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE |
.endif |
.endif |
|
|
Line 363 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
Line 362 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
.if !defined(UPDATE) |
.if !defined(UPDATE) |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a |
.endif |
.endif |
.if !defined(BUILD) |
.if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a) |
${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: .MADE |
${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: .MADE |
.endif |
.endif |
|
|
Line 376 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
Line 375 libinstall:: ${DESTDIR}${LIBDIR}/lib${LI |
|
.if !defined(UPDATE) |
.if !defined(UPDATE) |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
.endif |
.endif |
.if !defined(BUILD) |
.if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}) |
${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: .MADE |
${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: .MADE |
.endif |
.endif |
|
|
.PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
.PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} |
.if ${MORTALINSTALL} != "no" |
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \ |
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \ |
-g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${.TARGET} |
-m ${LIBMODE} ${.ALLSRC} ${.TARGET} |
|
.else |
|
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \ |
|
-m ${LIBMODE} ${.ALLSRC} ${.TARGET} |
|
.endif |
|
.if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR) |
.if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR) |
/sbin/ldconfig -m ${LIBDIR} |
/sbin/ldconfig -m ${LIBDIR} |
.endif |
.endif |
Line 409 libinstall:: ${DESTDIR}${LINTLIBDIR}/lli |
|
Line 403 libinstall:: ${DESTDIR}${LINTLIBDIR}/lli |
|
.if !defined(UPDATE) |
.if !defined(UPDATE) |
.PHONY: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln |
.PHONY: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln |
.endif |
.endif |
.if !defined(BUILD) |
.if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln) |
${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE |
${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE |
.endif |
.endif |
|
|
.PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln |
.PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln |
${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln |
${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln |
.if ${MORTALINSTALL} != "no" |
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} -o ${LIBOWN} \ |
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \ |
-g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR} |
-m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR} |
|
.else |
|
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \ |
|
-m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR} |
|
.endif |
|
.endif |
.endif |
.endif |
.endif |
|
|