version 1.115, 1997/05/31 21:21:57 |
version 1.120, 1997/11/04 20:33:11 |
|
|
# $NetBSD$ |
# $NetBSD$ |
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 |
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 |
|
|
|
.if !target(__initialized__) |
|
__initialized__: |
.if exists(${.CURDIR}/../Makefile.inc) |
.if exists(${.CURDIR}/../Makefile.inc) |
.include "${.CURDIR}/../Makefile.inc" |
.include "${.CURDIR}/../Makefile.inc" |
.endif |
.endif |
|
|
.include <bsd.own.mk> |
.include <bsd.own.mk> |
|
.include <bsd.obj.mk> |
.MAIN: all |
.MAIN: all |
|
.endif |
|
|
.PHONY: cleanlib libinstall |
.PHONY: cleanlib libinstall |
realinstall: libinstall |
realinstall: libinstall |
clean cleandir: cleanlib |
clean cleandir: cleanlib |
Line 20 SHLIB_MINOR != . ${.CURDIR}/shlib_versio |
|
Line 23 SHLIB_MINOR != . ${.CURDIR}/shlib_versio |
|
# add additional suffixes not exported. |
# add additional suffixes not exported. |
# .po is used for profiling object files. |
# .po is used for profiling object files. |
# .so is used for PIC object files. |
# .so is used for PIC object files. |
.SUFFIXES: .out .a .ln .so .po .o .s .S .c .cc .C .F .f .r .y .l .cl .p .h .sh .m4 |
.SUFFIXES: .out .a .ln .so .po .o .s .S .c .cc .C .m .F .f .r .y .l .cl .p .h |
|
.SUFFIXES: .sh .m4 .m |
|
|
|
|
# Set PICFLAGS to cc flags for producing position-independent code, |
# Set PICFLAGS to cc flags for producing position-independent code, |
|
|
SHLIB_LDSTARTFILE= |
SHLIB_LDSTARTFILE= |
SHLIB_LDENDFILE= |
SHLIB_LDENDFILE= |
SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} |
SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} |
CPICFLAGS?= -fpic |
CPICFLAGS?= -fpic -DPIC |
CPPPICFLAGS?= -DPIC |
CPPPICFLAGS?= -DPIC |
CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} |
APICFLAGS?= -k |
APICFLAGS?= -k |
Line 126 CFLAGS+= ${COPTS} |
|
Line 130 CFLAGS+= ${COPTS} |
|
@${LD} -x -r ${.TARGET}.o -o ${.TARGET} |
@${LD} -x -r ${.TARGET}.o -o ${.TARGET} |
@rm -f ${.TARGET}.o |
@rm -f ${.TARGET}.o |
|
|
|
.m.o: |
|
@echo ${COMPILE.m:Q} ${.IMPSRC} |
|
@${COMPILE.m} ${.IMPSRC} -o ${.TARGET}.o |
|
@${LD} -x -r ${.TARGET}.o -o ${.TARGET} |
|
@rm -f ${.TARGET}.o |
|
|
|
.m.po: |
|
@echo ${COMPILE.m:Q} -pg ${.IMPSRC} -o ${.TARGET} |
|
@${COMPILE.m} -pg ${.IMPSRC} -o ${.TARGET}.o |
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET} |
|
@rm -f ${.TARGET}.o |
|
|
|
.m.so: |
|
@echo ${COMPILE.m:Q} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET} |
|
@${COMPILE.m} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o |
|
@${LD} -x -r ${.TARGET}.o -o ${.TARGET} |
|
@rm -f ${.TARGET}.o |
|
|
.S.o .s.o: |
.S.o .s.o: |
@echo ${COMPILE.S:Q} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} |
@echo ${COMPILE.S:Q} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} |
@${COMPILE.S} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o |
@${COMPILE.S} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o |
Line 166 all: ${SRCS} ${_LIBS} |
|
Line 188 all: ${SRCS} ${_LIBS} |
|
|
|
__archivebuild: .USE |
__archivebuild: .USE |
@rm -f ${.TARGET} |
@rm -f ${.TARGET} |
@${AR} cq ${.TARGET} `NM=${NM} lorder ${.ALLSRC} | tsort -q` |
@${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC} | ${TSORT}` |
${RANLIB} ${.TARGET} |
${RANLIB} ${.TARGET} |
|
|
__archiveinstall: .USE |
__archiveinstall: .USE |
Line 303 ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: |
|
Line 325 ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: |
|
.endif |
.endif |
.endif |
.endif |
|
|
.if !defined(NOMAN) |
|
.include <bsd.man.mk> |
.include <bsd.man.mk> |
.endif |
|
|
|
.if !defined(NONLS) |
|
.include <bsd.nls.mk> |
.include <bsd.nls.mk> |
.endif |
|
|
|
.include <bsd.obj.mk> |
|
.include <bsd.files.mk> |
.include <bsd.files.mk> |
.include <bsd.inc.mk> |
.include <bsd.inc.mk> |
.include <bsd.links.mk> |
.include <bsd.links.mk> |
.include <bsd.dep.mk> |
.include <bsd.dep.mk> |
.include <bsd.subdir.mk> |
|
.include <bsd.sys.mk> |
.include <bsd.sys.mk> |
|
|
|
# Make sure all of the standard targets are defined, even if they do nothing. |
|
lint regress: |