[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.151

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

CVSweb <webmaster@jp.NetBSD.org>