[BACK]Return to bsd.lib.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Annotation of src/share/mk/bsd.lib.mk, Revision 1.152.2.3

1.152.2.3! he          1: #      $NetBSD: bsd.lib.mk,v 1.152.2.2 2000/07/05 20:48:04 he Exp $
1.92      mikel       2: #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
1.1       cgd         3:
1.117     mycroft     4: .if !target(__initialized__)
                      5: __initialized__:
1.1       cgd         6: .if exists(${.CURDIR}/../Makefile.inc)
                      7: .include "${.CURDIR}/../Makefile.inc"
                      8: .endif
1.97      mycroft     9: .include <bsd.own.mk>
1.117     mycroft    10: .include <bsd.obj.mk>
                     11: .MAIN:         all
                     12: .endif
1.97      mycroft    13:
1.143     erh        14: .PHONY:                checkver cleanlib libinstall
                     15: realinstall:   checkver libinstall
1.137     lukem      16: clean cleandir distclean: cleanlib
1.1       cgd        17:
1.35      pk         18: .if exists(${.CURDIR}/shlib_version)
1.37      cgd        19: SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major
                     20: SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor
1.152.2.2  he         21: SHLIB_TEENY != . ${.CURDIR}/shlib_version ; echo $$teeny
                     22: .if !empty(SHLIB_TEENY)
                     23: SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
                     24: .else
                     25: SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
                     26: .endif
1.143     erh        27:
                     28: # Check for higher installed library versions.
1.145     erh        29: .if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \
                     30:        exists(${BSDSRCDIR}/lib/checkver)
1.143     erh        31: checkver:
1.144     erh        32:        @(cd ${.CURDIR} && \
                     33:                ${BSDSRCDIR}/lib/checkver -d ${DESTDIR}${LIBDIR} ${LIB})
1.143     erh        34: .else
                     35: checkver:
                     36: .endif
                     37: .else
                     38: checkver:
1.35      pk         39: .endif
1.1       cgd        40:
1.101     mycroft    41: # add additional suffixes not exported.
                     42: # .po is used for profiling object files.
                     43: # .so is used for PIC object files.
1.118     lukem      44: .SUFFIXES: .out .a .ln .so .po .o .s .S .c .cc .C .m .F .f .r .y .l .cl .p .h
                     45: .SUFFIXES: .sh .m4 .m
1.82      mikel      46:
1.86      jonathan   47:
                     48: # Set PICFLAGS to cc flags for producing position-independent code,
                     49: # if not already set.  Includes -DPIC, if required.
                     50:
                     51: # Data-driven table using make variables to control  how shared libraries
                     52: # are built for different platforms and object formats.
1.125     jonathan   53: # OBJECT_FMT:          currently either "ELF" or "a.out", from <bsd.own.mk>
1.86      jonathan   54: # SHLIB_SOVERSION:     version number to be compiled into a shared library
                     55: #                      via -soname. Usualy ${SHLIB_MAJOR} on ELF.
1.152.2.2  he         56: #                      NetBSD/pmax used to use ${SHLIB_MAJOR}.${SHLIB-MINOR}.
1.123     jonathan   57: # SHLIB_SHFLAGS:       Flags to tell ${LD} to emit  shared library.
                     58: #                      with ELF, also set shared-lib version for ld.so.
                     59: # SHLIB_LDSTARTFILE:   support .o file, call C++ file-level constructors
                     60: # SHLIB_LDENDFILE:     support .o file, call C++ file-level destructors
1.107     jonathan   61: # CPPICFLAGS:  flags for ${CPP} to preprocess  .[sS]  files for ${AS}
                     62: # CPICFLAGS:   flags for ${CC} to compile  .[cC] files to .so objects.
                     63: # CAPICFLAGS   flags for {$CC} to compiling .[Ss] files
                     64: #                      (usually just ${CPPPICFLAGS} ${CPICFLAGS})
                     65: # APICFLAGS:   flags for ${AS} to assemble .[sS]  to .so objects.
1.86      jonathan   66:
1.148     lukem      67: .if ${MACHINE_ARCH} == "alpha"
1.123     jonathan   68:                # Alpha-specific shared library flags
1.86      jonathan   69: CPICFLAGS ?= -fpic -DPIC
1.107     jonathan   70: CPPPICFLAGS?= -DPIC
                     71: CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
                     72: APICFLAGS ?=
1.151     drochner   73: .elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
1.123     jonathan   74:                # mips-specific shared library flags
1.86      jonathan   75:
                     76: # On mips, all libs need to be compiled with ABIcalls, not just sharedlibs.
                     77: CPICFLAGS?=
                     78: APICFLAGS?=
                     79: #CPICFLAGS?= -fpic -DPIC
                     80: #APICFLAGS?= -DPIC
                     81:
                     82: # so turn shlib PIC flags on for ${CPP}, ${CC}, and ${AS} as follows:
                     83: AINC+=-DPIC -DABICALLS
                     84: COPTS+=        -fPIC ${AINC}
                     85: AFLAGS+= -fPIC
                     86: AS+=   -KPIC
1.150     christos   87:
                     88: .elif ${MACHINE_ARCH} == "sparc" && ${OBJECT_FMT} == "ELF"
                     89:
                     90: CPICFLAGS ?= -fpic -DPIC
                     91: CPPPICFLAGS?= -DPIC
                     92: CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
                     93: APICFLAGS ?= -KPIC
1.86      jonathan   94:
                     95: .else
                     96:
1.125     jonathan   97: # Platform-independent flags for NetBSD a.out shared libraries (and PowerPC)
1.88      cgd        98: SHLIB_LDSTARTFILE=
                     99: SHLIB_LDENDFILE=
1.125     jonathan  100: SHLIB_SHFLAGS=
1.152.2.2  he        101: SHLIB_SOVERSION=${SHLIB_FULLVERSION}
1.116     pk        102: CPICFLAGS?= -fpic -DPIC
1.107     jonathan  103: CPPPICFLAGS?= -DPIC
                    104: CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
                    105: APICFLAGS?= -k
1.86      jonathan  106:
                    107: .endif
                    108:
1.123     jonathan  109: # Platform-independent linker flags for ELF shared libraries
1.148     lukem     110: .if ${OBJECT_FMT} == "ELF"
1.123     jonathan  111: SHLIB_SOVERSION=${SHLIB_MAJOR}
1.125     jonathan  112: SHLIB_SHFLAGS=-soname lib${LIB}.so.${SHLIB_SOVERSION}
1.142     jonathan  113: SHLIB_LDSTARTFILE= ${DESTDIR}/usr/lib/crtbeginS.o
                    114: SHLIB_LDENDFILE= ${DESTDIR}/usr/lib/crtendS.o
1.123     jonathan  115: .endif
1.86      jonathan  116:
1.82      mikel     117: CFLAGS+=       ${COPTS}
1.1       cgd       118:
                    119: .c.o:
1.80      christos  120:        @echo ${COMPILE.c:Q} ${.IMPSRC}
1.122     cgd       121:        @${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  122:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    123:        @rm -f ${.TARGET}.o
1.1       cgd       124:
                    125: .c.po:
1.80      christos  126:        @echo ${COMPILE.c:Q} -pg ${.IMPSRC} -o ${.TARGET}
1.68      cgd       127:        @${COMPILE.c} -pg ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  128:        @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
                    129:        @rm -f ${.TARGET}.o
1.17      mycroft   130:
1.27      pk        131: .c.so:
1.86      jonathan  132:        @echo ${COMPILE.c:Q} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}
                    133:        @${COMPILE.c} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  134:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    135:        @rm -f ${.TARGET}.o
1.27      pk        136:
1.58      cgd       137: .c.ln:
1.121     thorpej   138:        ${LINT} ${LINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i ${.IMPSRC}
1.58      cgd       139:
1.18      mycroft   140: .cc.o .C.o:
1.80      christos  141:        @echo ${COMPILE.cc:Q} ${.IMPSRC}
1.62      christos  142:        @${COMPILE.cc} ${.IMPSRC} -o ${.TARGET}.o
1.63      jtc       143:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
1.62      christos  144:        @rm -f ${.TARGET}.o
1.17      mycroft   145:
1.18      mycroft   146: .cc.po .C.po:
1.80      christos  147:        @echo ${COMPILE.cc:Q} -pg ${.IMPSRC} -o ${.TARGET}
1.68      cgd       148:        @${COMPILE.cc} -pg ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  149:        @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
                    150:        @rm -f ${.TARGET}.o
1.28      cgd       151:
                    152: .cc.so .C.so:
1.86      jonathan  153:        @echo ${COMPILE.cc:Q} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}
                    154:        @${COMPILE.cc} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  155:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    156:        @rm -f ${.TARGET}.o
1.118     lukem     157:
                    158: .m.o:
                    159:        @echo ${COMPILE.m:Q} ${.IMPSRC}
1.122     cgd       160:        @${COMPILE.m} ${.IMPSRC} -o ${.TARGET}.o
1.118     lukem     161:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    162:        @rm -f ${.TARGET}.o
                    163:
                    164: .m.po:
                    165:        @echo ${COMPILE.m:Q} -pg ${.IMPSRC} -o ${.TARGET}
                    166:        @${COMPILE.m} -pg ${.IMPSRC} -o ${.TARGET}.o
                    167:        @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
                    168:        @rm -f ${.TARGET}.o
                    169:
                    170: .m.so:
                    171:        @echo ${COMPILE.m:Q} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}
                    172:        @${COMPILE.m} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o
                    173:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    174:        @rm -f ${.TARGET}.o
1.1       cgd       175:
1.40      cgd       176: .S.o .s.o:
1.80      christos  177:        @echo ${COMPILE.S:Q} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC}
1.69      jtc       178:        @${COMPILE.S} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  179:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    180:        @rm -f ${.TARGET}.o
1.1       cgd       181:
1.40      cgd       182: .S.po .s.po:
1.80      christos  183:        @echo ${COMPILE.S:Q} -DGPROF -DPROF ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}
1.75      jtc       184:        @${COMPILE.S} -DGPROF -DPROF ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  185:        @${LD} -X -r ${.TARGET}.o -o ${.TARGET}
                    186:        @rm -f ${.TARGET}.o
1.1       cgd       187:
1.40      cgd       188: .S.so .s.so:
1.107     jonathan  189:        @echo ${COMPILE.S:Q} ${CAPICFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}
                    190:        @${COMPILE.S} ${CAPICFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o
1.62      christos  191:        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
                    192:        @rm -f ${.TARGET}.o
1.27      pk        193:
1.148     lukem     194: .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
                    195:        || ${MKLINKLIB} != "no"
1.130     tv        196: _LIBS=lib${LIB}.a
                    197: .else
                    198: _LIBS=
                    199: .endif
1.58      cgd       200:
1.149     lukem     201: .if ${MKPROFILE} != "no"
1.130     tv        202: _LIBS+=lib${LIB}_p.a
1.1       cgd       203: .endif
                    204:
1.148     lukem     205: .if ${MKPIC} != "no"
1.27      pk        206: _LIBS+=lib${LIB}_pic.a
1.37      cgd       207: .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
1.152.2.2  he        208: _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION}
1.27      pk        209: .endif
1.35      pk        210: .endif
1.27      pk        211:
1.148     lukem     212: .if ${MKLINT} != "no" && ${MKLINKLIB} != "no"
1.58      cgd       213: _LIBS+=llib-l${LIB}.ln
1.27      pk        214: .endif
                    215:
1.102     mycroft   216: all: ${SRCS} ${_LIBS}
1.1       cgd       217:
1.90      christos  218: __archivebuild: .USE
1.89      christos  219:        @rm -f ${.TARGET}
1.138     tv        220:        @${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
1.89      christos  221:        ${RANLIB} ${.TARGET}
                    222:
                    223: __archiveinstall: .USE
1.147     christos  224:        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \
                    225:                -m 600 ${.ALLSRC} ${.TARGET}
1.89      christos  226:        ${RANLIB} -t ${.TARGET}
                    227:        chmod ${LIBMODE} ${.TARGET}
                    228:
1.104     mycroft   229: DPSRCS+=       ${SRCS:M*.l:.l=.c} ${SRCS:M*.y:.y=.c}
1.128     tv        230: CLEANFILES+=   ${DPSRCS}
1.129     tv        231: .if defined(YHEADER)
                    232: CLEANFILES+=   ${SRCS:M*.y:.y=.h}
                    233: .endif
1.103     mycroft   234:
                    235: OBJS+=         ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
1.89      christos  236: lib${LIB}.a:: ${OBJS} __archivebuild
1.1       cgd       237:        @echo building standard ${LIB} library
                    238:
1.103     mycroft   239: POBJS+=                ${OBJS:.o=.po}
1.89      christos  240: lib${LIB}_p.a:: ${POBJS} __archivebuild
1.1       cgd       241:        @echo building profiled ${LIB} library
                    242:
1.103     mycroft   243: SOBJS+=                ${OBJS:.o=.so}
1.89      christos  244: lib${LIB}_pic.a:: ${SOBJS} __archivebuild
1.27      pk        245:        @echo building shared object ${LIB} library
                    246:
1.152.2.2  he        247: lib${LIB}.so.${SHLIB_FULLVERSION}: lib${LIB}_pic.a ${DPADD} \
1.88      cgd       248:     ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
1.152.2.3! he        249:        @echo building shared ${LIB} library \(version ${SHLIB_FULLVERSION}\)
1.152.2.2  he        250:        @rm -f lib${LIB}.so.${SHLIB_FULLVERSION}
1.152     fair      251: .if defined(DESTDIR)
                    252:        $(LD) -x -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \
                    253:            ${SHLIB_LDSTARTFILE} \
                    254:            --whole-archive lib${LIB}_pic.a \
                    255:            -nostdlib -L${DESTDIR}${LIBDIR} -R${LIBDIR} \
                    256:            --no-whole-archive ${LDADD} \
                    257:            ${SHLIB_LDENDFILE}
                    258: .else
1.126     jonathan  259:        $(LD) -x -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \
1.123     jonathan  260:            ${SHLIB_LDSTARTFILE} \
1.126     jonathan  261:            --whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \
1.115     cjs       262:            ${SHLIB_LDENDFILE}
1.152     fair      263: .endif
1.148     lukem     264: .if ${OBJECT_FMT} == "ELF"
1.135     tv        265:        rm -f lib${LIB}.so.${SHLIB_MAJOR}
1.152.2.2  he        266:        ln -s lib${LIB}.so.${SHLIB_FULLVERSION} \
1.135     tv        267:            lib${LIB}.so.${SHLIB_MAJOR}
                    268:        rm -f lib${LIB}.so
1.152.2.2  he        269:        ln -s lib${LIB}.so.${SHLIB_FULLVERSION} \
1.135     tv        270:            lib${LIB}.so
1.133     tv        271: .endif
1.35      pk        272:
1.103     mycroft   273: LOBJS+=                ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
                    274: LLIBS?=                -lc
1.58      cgd       275: llib-l${LIB}.ln: ${LOBJS}
                    276:        @echo building llib-l${LIB}.ln
                    277:        @rm -f llib-l${LIB}.ln
1.141     wrstuden  278:        @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}
1.1       cgd       279:
1.81      cgd       280: cleanlib:
1.48      mycroft   281:        rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}
1.59      cgd       282:        rm -f lib${LIB}.a ${OBJS}
                    283:        rm -f lib${LIB}_p.a ${POBJS}
1.133     tv        284:        rm -f lib${LIB}_pic.a lib${LIB}.so.* lib${LIB}.so ${SOBJS}
1.59      cgd       285:        rm -f llib-l${LIB}.ln ${LOBJS}
1.1       cgd       286:
1.26      mycroft   287: .if defined(SRCS)
1.64      christos  288: afterdepend: .depend
1.1       cgd       289:        @(TMP=/tmp/_depend$$$$; \
1.79      cgd       290:            sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so \1.ln:/' \
1.58      cgd       291:              < .depend > $$TMP; \
1.1       cgd       292:            mv $$TMP .depend)
1.26      mycroft   293: .endif
1.1       cgd       294:
1.97      mycroft   295: .if !target(libinstall)
1.148     lukem     296: # Make sure it gets defined, in case MKPIC==no && MKLINKLIB==no
1.139     tv        297: libinstall::
                    298:
1.148     lukem     299: .if ${MKLINKLIB} != "no"
1.89      christos  300: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
                    301: .if !defined(UPDATE)
                    302: .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a
                    303: .endif
1.152.2.1  he        304: .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)
1.89      christos  305: ${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE
                    306: .endif
                    307:
1.95      mycroft   308: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a
1.89      christos  309: ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall
1.130     tv        310: .endif
1.89      christos  311:
1.149     lukem     312: .if ${MKPROFILE} != "no"
1.89      christos  313: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
                    314: .if !defined(UPDATE)
                    315: .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
1.32      pk        316: .endif
1.152.2.1  he        317: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)
1.89      christos  318: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE
                    319: .endif
                    320:
1.95      mycroft   321: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
1.89      christos  322: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall
                    323: .endif
                    324:
1.149     lukem     325: .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"
1.89      christos  326: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
                    327: .if !defined(UPDATE)
                    328: .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
                    329: .endif
1.152.2.1  he        330: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)
1.89      christos  331: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: .MADE
1.33      pk        332: .endif
1.89      christos  333:
1.95      mycroft   334: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
1.89      christos  335: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}_pic.a __archiveinstall
                    336: .endif
                    337:
1.148     lukem     338: .if ${MKPIC} != "no" && defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
1.152.2.2  he        339: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
1.89      christos  340: .if !defined(UPDATE)
1.152.2.2  he        341: .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
1.89      christos  342: .endif
1.152.2.2  he        343: .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
                    344: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: .MADE
1.89      christos  345: .endif
1.92      mikel     346:
1.152.2.2  he        347: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}
                    348: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_FULLVERSION}
1.147     christos  349:        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \
                    350:                -m ${LIBMODE} ${.ALLSRC} ${.TARGET}
1.148     lukem     351: .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)
1.146     thorpej   352:        /sbin/ldconfig -m ${LIBDIR}
                    353: .endif
1.148     lukem     354: .if ${OBJECT_FMT} == "ELF"
1.83      cgd       355:        rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
1.152.2.2  he        356:        ln -s lib${LIB}.so.${SHLIB_FULLVERSION} \
1.83      cgd       357:            ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
                    358:        rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so
1.148     lukem     359: .if ${MKLINKLIB} != "no"
1.152.2.2  he        360:        ln -s lib${LIB}.so.${SHLIB_FULLVERSION} \
1.83      cgd       361:            ${DESTDIR}${LIBDIR}/lib${LIB}.so
                    362: .endif
1.12      cgd       363: .endif
1.139     tv        364: .endif
1.89      christos  365:
1.148     lukem     366: .if ${MKLINT} != "no" && ${MKLINKLIB} != "no"
1.89      christos  367: libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
                    368: .if !defined(UPDATE)
                    369: .PHONY: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
                    370: .endif
1.152.2.1  he        371: .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)
1.89      christos  372: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE
                    373: .endif
                    374:
1.95      mycroft   375: .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
                    376: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln
1.147     christos  377:        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} \
                    378:                -m ${LIBMODE} ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
1.58      cgd       379: .endif
1.1       cgd       380: .endif
                    381:
                    382: .include <bsd.man.mk>
1.57      jtc       383: .include <bsd.nls.mk>
1.91      christos  384: .include <bsd.files.mk>
1.89      christos  385: .include <bsd.inc.mk>
1.109     cjs       386: .include <bsd.links.mk>
1.24      mycroft   387: .include <bsd.dep.mk>
1.66      christos  388: .include <bsd.sys.mk>
1.117     mycroft   389:
                    390: # Make sure all of the standard targets are defined, even if they do nothing.
                    391: lint regress:

CVSweb <webmaster@jp.NetBSD.org>