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

1.289.2.1! snj         1: #      $NetBSD: bsd.lib.mk,v 1.289 2008/10/19 22:05:21 apb Exp $
1.92      mikel       2: #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
1.1       cgd         3:
1.188     tv          4: .include <bsd.init.mk>
1.207     thorpej     5: .include <bsd.shlib.mk>
1.219     thorpej     6: .include <bsd.gcc.mk>
1.227     lukem       7: # Pull in <bsd.sys.mk> here so we can override its .c.o rule
                      8: .include <bsd.sys.mk>
1.97      mycroft     9:
1.282     lukem      10: LIBISMODULE?=  no
1.281     lukem      11: LIBISPRIVATE?= no
                     12:
1.282     lukem      13: _LIB_PREFIX=   lib
                     14:
                     15: .if ${LIBISMODULE} != "no"
                     16: _LIB_PREFIX=   # empty
                     17: MKDEBUGLIB:=   no
                     18: MKLINT:=       no
                     19: MKPICINSTALL:= no
                     20: MKPROFILE:=    no
                     21: MKSTATICLIB:=  no
                     22: .endif
                     23:
1.281     lukem      24: .if ${LIBISPRIVATE} != "no"
1.280     lukem      25: MKDEBUGLIB:=   no
                     26: MKLINT:=       no
1.289.2.1! snj        27: MKPICINSTALL:= no
        !            28: . if defined(NOSTATICLIB) && ${MKPICLIB} != "no"
        !            29: MKSTATICLIB:=  no
        !            30: . else
1.280     lukem      31: MKPIC:=                no
1.289.2.1! snj        32: . endif
1.280     lukem      33: MKPROFILE:=    no
                     34: .endif
                     35:
1.188     tv         36: ##### Basic targets
1.246     lukem      37: .PHONY:                checkver libinstall
1.143     erh        38: realinstall:   checkver libinstall
1.183     tv         39: clean:         cleanlib
1.232     erh        40:
                     41: ##### LIB specific flags.
1.287     christos   42: # XXX: This is needed for programs that link with .a libraries
                     43: # Perhaps a more correct solution is to always generate _pic.a
                     44: # files or always have a shared library.
                     45: .if defined(MKPIE) && (${MKPIE} != "no")
                     46: CFLAGS+=        ${PIE_CFLAGS}
1.288     christos   47: AFLAGS+=        ${PIE_AFLAGS}
1.287     christos   48: .endif
1.267     mrg        49: COPTS+=     ${COPTS.lib${LIB}}
1.232     erh        50: CPPFLAGS+=  ${CPPFLAGS.lib${LIB}}
                     51: CXXFLAGS+=  ${CXXFLAGS.lib${LIB}}
1.267     mrg        52: OBJCOPTS+=  ${OBJCOPTS.lib${LIB}}
1.232     erh        53: LDADD+=     ${LDADD.lib${LIB}}
1.233     erh        54: LDFLAGS+=   ${LDFLAGS.lib${LIB}}
                     55: LDSTATIC+=  ${LDSTATIC.lib${LIB}}
1.1       cgd        56:
1.256     lukem      57: ##### Libraries that this may depend upon.
                     58: .if defined(LIBDPLIBS) && ${MKPIC} != "no"                             # {
                     59: .for _lib _dir in ${LIBDPLIBS}
                     60: .if !defined(LIBDO.${_lib})
                     61: LIBDO.${_lib}!=        cd ${_dir} && ${PRINTOBJDIR}
                     62: .MAKEOVERRIDES+=LIBDO.${_lib}
                     63: .endif
                     64: LDADD+=                -L${LIBDO.${_lib}} -l${_lib}
                     65: DPADD+=                ${LIBDO.${_lib}}/lib${_lib}.so
                     66: .endfor
                     67: .endif                                                                 # }
                     68:
1.188     tv         69: ##### Build and install rules
1.285     christos   70: MKDEP_SUFFIXES?=       .o .po .so .go .ln
1.192     thorpej    71: CPPFLAGS+=     ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}
1.225     mrg        72: CXXFLAGS+=     ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++}
1.190     tv         73:
1.252     lukem      74: .if !defined(SHLIB_MAJOR) && exists(${SHLIB_VERSION_FILE})             # {
1.154     simonb     75: SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major
                     76: SHLIB_MINOR != . ${SHLIB_VERSION_FILE} ; echo $$minor
1.171     christos   77: SHLIB_TEENY != . ${SHLIB_VERSION_FILE} ; echo $$teeny
1.143     erh        78:
                     79: # Check for higher installed library versions.
1.145     erh        80: .if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \
1.201     lukem      81:        exists(${NETBSDSRCDIR}/lib/checkver)
1.143     erh        82: checkver:
1.144     erh        83:        @(cd ${.CURDIR} && \
1.289     apb        84:            HOST_SH=${HOST_SH:Q} AWK=${TOOL_AWK:Q} \
1.239     lukem      85:            ${HOST_SH} ${NETBSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
1.195     lukem      86:                    -d ${DESTDIR}${_LIBSODIR} ${LIB})
1.173     christos   87: .endif
1.252     lukem      88: .endif                                                                 # }
1.173     christos   89:
                     90: .if !target(checkver)
1.143     erh        91: checkver:
                     92: .endif
1.173     christos   93:
1.169     thorpej    94: print-shlib-major:
1.185     tv         95: .if defined(SHLIB_MAJOR) && ${MKPIC} != "no"
1.169     thorpej    96:        @echo ${SHLIB_MAJOR}
1.173     christos   97: .else
                     98:        @false
                     99: .endif
1.169     thorpej   100:
                    101: print-shlib-minor:
1.185     tv        102: .if defined(SHLIB_MINOR) && ${MKPIC} != "no"
1.169     thorpej   103:        @echo ${SHLIB_MINOR}
1.173     christos  104: .else
                    105:        @false
                    106: .endif
1.171     christos  107:
                    108: print-shlib-teeny:
1.185     tv        109: .if defined(SHLIB_TEENY) && ${MKPIC} != "no"
1.171     christos  110:        @echo ${SHLIB_TEENY}
1.143     erh       111: .else
1.169     thorpej   112:        @false
1.173     christos  113: .endif
1.169     thorpej   114:
1.252     lukem     115: .if defined(SHLIB_MAJOR) && !empty(SHLIB_MAJOR)                                # {
1.173     christos  116: .if defined(SHLIB_MINOR) && !empty(SHLIB_MINOR)
                    117: .if defined(SHLIB_TEENY) && !empty(SHLIB_TEENY)
                    118: SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
                    119: .else
                    120: SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
                    121: .endif
                    122: .else
                    123: SHLIB_FULLVERSION=${SHLIB_MAJOR}
                    124: .endif
1.252     lukem     125: .endif                                                                 # }
1.1       cgd       126:
1.101     mycroft   127: # add additional suffixes not exported.
                    128: # .po is used for profiling object files.
                    129: # .so is used for PIC object files.
1.266     christos  130: .SUFFIXES: .out .a .ln .so .po .go .o .s .S .c .cc .cpp .cxx .C .m .F .f .r .y .l .cl .p .h
1.118     lukem     131: .SUFFIXES: .sh .m4 .m
1.82      mikel     132:
1.86      jonathan  133:
                    134: # Set PICFLAGS to cc flags for producing position-independent code,
                    135: # if not already set.  Includes -DPIC, if required.
                    136:
1.164     simonb    137: # Data-driven table using make variables to control how shared libraries
1.86      jonathan  138: # are built for different platforms and object formats.
1.125     jonathan  139: # OBJECT_FMT:          currently either "ELF" or "a.out", from <bsd.own.mk>
1.164     simonb    140: # SHLIB_SOVERSION:     version number to be compiled into a shared library
                    141: #                      via -soname. Usualy ${SHLIB_MAJOR} on ELF.
1.173     christos  142: #                      NetBSD/pmax used to use ${SHLIB_MAJOR}[.${SHLIB_MINOR}
                    143: #                      [.${SHLIB_TEENY}]]
1.164     simonb    144: # SHLIB_SHFLAGS:       Flags to tell ${LD} to emit shared library.
1.123     jonathan  145: #                      with ELF, also set shared-lib version for ld.so.
                    146: # SHLIB_LDSTARTFILE:   support .o file, call C++ file-level constructors
                    147: # SHLIB_LDENDFILE:     support .o file, call C++ file-level destructors
1.179     dmcmahil  148: # FPICFLAGS:           flags for ${FC} to compile .[fF] files to .so objects.
1.271     tsutsui   149: # CPPPICFLAGS:         flags for ${CPP} to preprocess .[sS] files for ${AS}
1.205     yamt      150: # CPICFLAGS:           flags for ${CC} to compile .[cC] files to pic objects.
                    151: # CSHLIBFLAGS:         flags for ${CC} to compile .[cC] files to .so objects.
                    152: #                      (usually includes ${CPICFLAGS})
                    153: # CAPICFLAGS:          flags for ${CC} to compiling .[Ss] files
1.107     jonathan  154: #                      (usually just ${CPPPICFLAGS} ${CPICFLAGS})
1.164     simonb    155: # APICFLAGS:           flags for ${AS} to assemble .[sS] to .so objects.
1.86      jonathan  156:
1.252     lukem     157: .if ${MACHINE_ARCH} == "alpha"                                         # {
1.209     thorpej   158:
1.179     dmcmahil  159: FPICFLAGS ?= -fPIC
1.165     dmcmahil  160: CPICFLAGS ?= -fPIC -DPIC
1.222     lukem     161: CPPPICFLAGS?= -DPIC
1.107     jonathan  162: CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
                    163: APICFLAGS ?=
1.209     thorpej   164:
1.175     mrg       165: .elif (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") && \
1.252     lukem     166:        ${OBJECT_FMT} == "ELF"                                          # } {
1.209     thorpej   167:
1.222     lukem     168: # If you use -fPIC you need to define BIGPIC to turn on 32-bit
1.202     eeh       169: # relocations in asm code
1.179     dmcmahil  170: FPICFLAGS ?= -fPIC
1.165     dmcmahil  171: CPICFLAGS ?= -fPIC -DPIC
1.202     eeh       172: CPPPICFLAGS?= -DPIC -DBIGPIC
1.150     christos  173: CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
1.203     eeh       174: APICFLAGS ?= -KPIC
1.204     fredette  175:
1.252     lukem     176: .else                                                                  # } {
1.86      jonathan  177:
1.244     skrll     178: # Platform-independent flags for NetBSD shared libraries
1.171     christos  179: SHLIB_SOVERSION=${SHLIB_FULLVERSION}
1.125     jonathan  180: SHLIB_SHFLAGS=
1.179     dmcmahil  181: FPICFLAGS ?= -fPIC
1.165     dmcmahil  182: CPICFLAGS?= -fPIC -DPIC
1.222     lukem     183: CPPPICFLAGS?= -DPIC
1.107     jonathan  184: CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
                    185: APICFLAGS?= -k
1.86      jonathan  186:
1.252     lukem     187: .endif                                                                 # }
1.160     simonb    188:
1.205     yamt      189: .if ${MKPICLIB} != "no"
                    190: CSHLIBFLAGS+= ${CPICFLAGS}
                    191: .endif
                    192:
                    193: .if defined(CSHLIBFLAGS) && !empty(CSHLIBFLAGS)
                    194: MKSHLIBOBJS= yes
                    195: .else
                    196: MKSHLIBOBJS= no
                    197: .endif
                    198:
1.123     jonathan  199: # Platform-independent linker flags for ELF shared libraries
1.148     lukem     200: .if ${OBJECT_FMT} == "ELF"
1.182     mrg       201: SHLIB_SOVERSION=       ${SHLIB_MAJOR}
1.282     lukem     202: SHLIB_SHFLAGS=         -Wl,-soname,${_LIB_PREFIX}${LIB}.so.${SHLIB_SOVERSION}
1.272     christos  203: SHLIB_SHFLAGS+=                -Wl,--warn-shared-textrel
1.219     thorpej   204: SHLIB_LDSTARTFILE?=    ${DESTDIR}/usr/lib/crti.o ${_GCC_CRTBEGINS}
                    205: SHLIB_LDENDFILE?=      ${_GCC_CRTENDS} ${DESTDIR}/usr/lib/crtn.o
1.123     jonathan  206: .endif
1.86      jonathan  207:
1.82      mikel     208: CFLAGS+=       ${COPTS}
1.267     mrg       209: OBJCFLAGS+=    ${OBJCOPTS}
1.257     simonb    210: AFLAGS+=       ${COPTS}
1.179     dmcmahil  211: FFLAGS+=       ${FOPTS}
1.1       cgd       212:
                    213: .c.o:
1.238     lukem     214:        ${_MKTARGET_COMPILE}
1.263     dsl       215:        ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
1.270     martin    216: .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
1.263     dsl       217:        ${OBJCOPY} -x ${.TARGET}
1.153     christos  218: .endif
1.1       cgd       219:
                    220: .c.po:
1.238     lukem     221:        ${_MKTARGET_COMPILE}
1.263     dsl       222:        ${COMPILE.c} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}
1.270     martin    223: .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
1.263     dsl       224:        ${OBJCOPY} -X ${.TARGET}
1.153     christos  225: .endif
1.17      mycroft   226:
1.266     christos  227: .c.go:
                    228:        ${_MKTARGET_COMPILE}
                    229:        ${COMPILE.c} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -g ${.IMPSRC} -o ${.TARGET}
                    230:
1.27      pk        231: .c.so:
1.238     lukem     232:        ${_MKTARGET_COMPILE}
1.263     dsl       233:        ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
1.270     martin    234: .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
1.263     dsl       235:        ${OBJCOPY} -x ${.TARGET}
1.153     christos  236: .endif
1.27      pk        237:
1.223     lukem     238: .cc.o .cpp.o .cxx.o .C.o:
1.238     lukem     239:        ${_MKTARGET_COMPILE}
1.263     dsl       240:        ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
1.270     martin    241: .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
1.263     dsl       242:        ${OBJCOPY} -x ${.TARGET}
1.153     christos  243: .endif
1.17      mycroft   244:
1.266     christos  245: .cc.po .cpp.po .cxx.po .C.po:
1.238     lukem     246:        ${_MKTARGET_COMPILE}
1.263     dsl       247:        ${COMPILE.cc} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET}
1.270     martin    248: .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
1.263     dsl       249:        ${OBJCOPY} -X ${.TARGET}
1.153     christos  250: .endif
1.28      cgd       251:
1.266     christos  252: .cc.go .cpp.go .cxx.go .C.go:
                    253:        ${_MKTARGET_COMPILE}
                    254:        ${COMPILE.cc} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -g ${.IMPSRC} -o ${.TARGET}
                    255:
1.223     lukem     256: .cc.so .cpp.so .cxx.so .C.so:
1.238     lukem     257:        ${_MKTARGET_COMPILE}
1.263     dsl       258:        ${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}
1.270     martin    259: .if !defined(CFLAGS) || empty(CFLAGS:M*-g*)
1.263     dsl       260:        ${OBJCOPY} -x ${.TARGET}
1.153     christos  261: .endif
1.118     lukem     262:
1.179     dmcmahil  263: .f.o:
1.238     lukem     264:        ${_MKTARGET_COMPILE}
1.263     dsl       265:        ${COMPILE.f} ${.IMPSRC} -o ${.TARGET}
                    266: .if !defined(FOPTS) || empty(FOPTS:M*-g*)
                    267:        ${OBJCOPY} -x ${.TARGET}
1.179     dmcmahil  268: .endif
                    269:
                    270: .f.po:
1.238     lukem     271:        ${_MKTARGET_COMPILE}
1.263     dsl       272:        ${COMPILE.f} ${PROFFLAGS} -pg ${.IMPSRC} -o ${.TARGET}
                    273: .if !defined(FOPTS) || empty(FOPTS:M*-g*)
                    274:        ${OBJCOPY} -X ${.TARGET}
1.179     dmcmahil  275: .endif
                    276:
1.266     christos  277: .f.go:
                    278:        ${_MKTARGET_COMPILE}
                    279:        ${COMPILE.f} ${DEBUGFLAGS} -g ${.IMPSRC} -o ${.TARGET}
                    280:
1.179     dmcmahil  281: .f.so:
1.238     lukem     282:        ${_MKTARGET_COMPILE}
1.263     dsl       283:        ${COMPILE.f} ${FPICFLAGS} ${.IMPSRC} -o ${.TARGET}
                    284: .if !defined(FOPTS) || empty(FOPTS:M*-g*)
                    285:        ${OBJCOPY} -x ${.TARGET}
1.179     dmcmahil  286: .endif
                    287:
                    288: .f.ln:
1.238     lukem     289:        ${_MKTARGET_COMPILE}
1.217     wiz       290:        @echo Skipping lint for Fortran libraries.
1.179     dmcmahil  291:
1.118     lukem     292: .m.o:
1.238     lukem     293:        ${_MKTARGET_COMPILE}
1.267     mrg       294:        ${COMPILE.m} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
1.263     dsl       295: .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
                    296:        ${OBJCOPY} -x ${.TARGET}
1.153     christos  297: .endif
1.118     lukem     298:
                    299: .m.po:
1.238     lukem     300:        ${_MKTARGET_COMPILE}
1.267     mrg       301:        ${COMPILE.m} ${PROFFLAGS} -pg ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
1.263     dsl       302: .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
                    303:        ${OBJCOPY} -X ${.TARGET}
1.153     christos  304: .endif
1.118     lukem     305:
1.266     christos  306: .m.go:
                    307:        ${_MKTARGET_COMPILE}
1.267     mrg       308:        ${COMPILE.m} ${DEBUGFLAGS} -g ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
1.266     christos  309: .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
                    310:        ${OBJCOPY} -X ${.TARGET}
                    311: .endif
                    312:
1.118     lukem     313: .m.so:
1.238     lukem     314:        ${_MKTARGET_COMPILE}
1.267     mrg       315:        ${COMPILE.m} ${CSHLIBFLAGS} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
1.263     dsl       316: .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*)
                    317:        ${OBJCOPY} -x ${.TARGET}
1.153     christos  318: .endif
1.1       cgd       319:
1.251     lukem     320: .s.o:
1.238     lukem     321:        ${_MKTARGET_COMPILE}
1.263     dsl       322:        ${COMPILE.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    323:        ${OBJCOPY} -x ${.TARGET}
1.1       cgd       324:
1.251     lukem     325: .S.o:
                    326:        ${_MKTARGET_COMPILE}
1.263     dsl       327:        ${COMPILE.S} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    328:        ${OBJCOPY} -x ${.TARGET}
1.251     lukem     329:
                    330: .s.po:
                    331:        ${_MKTARGET_COMPILE}
1.263     dsl       332:        ${COMPILE.s} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    333:        ${OBJCOPY} -X ${.TARGET}
1.251     lukem     334:
                    335: .S.po:
1.238     lukem     336:        ${_MKTARGET_COMPILE}
1.263     dsl       337:        ${COMPILE.S} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    338:        ${OBJCOPY} -X ${.TARGET}
1.1       cgd       339:
1.266     christos  340: .s.go:
                    341:        ${_MKTARGET_COMPILE}
                    342:        ${COMPILE.s} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    343:
                    344: .S.go:
                    345:        ${_MKTARGET_COMPILE}
                    346:        ${COMPILE.S} ${DEBUGFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    347:
1.251     lukem     348: .s.so:
                    349:        ${_MKTARGET_COMPILE}
1.263     dsl       350:        ${COMPILE.s} ${CAPICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    351:        ${OBJCOPY} -x ${.TARGET}
1.251     lukem     352:
                    353: .S.so:
1.238     lukem     354:        ${_MKTARGET_COMPILE}
1.263     dsl       355:        ${COMPILE.S} ${CAPICFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET}
                    356:        ${OBJCOPY} -x ${.TARGET}
1.27      pk        357:
1.252     lukem     358: .if defined(LIB)                                                       # {
1.234     lukem     359: .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
                    360:        || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"
1.130     tv        361: _LIBS=lib${LIB}.a
                    362: .else
                    363: _LIBS=
                    364: .endif
1.58      cgd       365:
1.167     matt      366: OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}
1.158     christos  367:
1.255     thorpej   368: STOBJS+=${OBJS}
                    369:
1.280     lukem     370: LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
                    371:
1.281     lukem     372: .if ${LIBISPRIVATE} != "no"
1.252     lukem     373: # No installation is required
                    374: libinstall::
1.289.2.1! snj       375: .endif # ${LIBISPRIVATE} == "no"                                       # {
1.252     lukem     376:
1.268     lukem     377: .if ${MKDEBUGLIB} != "no"
1.266     christos  378: _LIBS+=lib${LIB}_g.a
                    379: GOBJS+=${OBJS:.o=.go}
                    380: DEBUGFLAGS?=-DDEBUG
                    381: .endif
                    382:
1.149     lukem     383: .if ${MKPROFILE} != "no"
1.130     tv        384: _LIBS+=lib${LIB}_p.a
1.167     matt      385: POBJS+=${OBJS:.o=.po}
1.262     christos  386: PROFFLAGS?=-DGPROF -DPROF
1.1       cgd       387: .endif
                    388:
1.252     lukem     389: .if ${MKPIC} != "no"                                                   # {
1.160     simonb    390: .if ${MKPICLIB} == "no"
1.205     yamt      391: .if ${MKSHLIBOBJS} != "no"
                    392: # make _pic.a, which isn't really pic,
                    393: # since it's needed for making shared lib.
                    394: # but don't install it.
                    395: SOLIB=lib${LIB}_pic.a
                    396: SOBJS+=${OBJS:.o=.so}
                    397: .else
1.160     simonb    398: SOLIB=lib${LIB}.a
1.205     yamt      399: .endif
1.160     simonb    400: .else
                    401: SOLIB=lib${LIB}_pic.a
                    402: _LIBS+=${SOLIB}
1.167     matt      403: SOBJS+=${OBJS:.o=.so}
1.160     simonb    404: .endif
1.171     christos  405: .if defined(SHLIB_FULLVERSION)
                    406: _LIBS+=lib${LIB}.so.${SHLIB_FULLVERSION}
1.27      pk        407: .endif
1.252     lukem     408: .endif                                                                 # }
1.27      pk        409:
1.279     lukem     410: .if ${MKLINT} != "no" && !empty(LOBJS)
1.58      cgd       411: _LIBS+=llib-l${LIB}.ln
1.215     christos  412: .endif
1.27      pk        413:
1.234     lukem     414: ALLOBJS=
                    415: .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
                    416:        || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"
1.255     thorpej   417: ALLOBJS+=${STOBJS}
1.179     dmcmahil  418: .endif
1.234     lukem     419: ALLOBJS+=${POBJS} ${SOBJS}
1.279     lukem     420: .if ${MKLINT} != "no" && !empty(LOBJS)
1.179     dmcmahil  421: ALLOBJS+=${LOBJS}
1.216     christos  422: .endif
1.252     lukem     423: .else  # !defined(LIB)                                                 # } {
1.216     christos  424: LOBJS=
                    425: SOBJS=
1.252     lukem     426: .endif # !defined(LIB)                                                 # }
1.186     tv        427:
1.254     lukem     428: _YLSRCS=       ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}
1.253     christos  429:
                    430: .NOPATH: ${ALLOBJS} ${_LIBS} ${_YLSRCS}
1.158     christos  431:
1.162     mycroft   432: realall: ${SRCS} ${ALLOBJS:O} ${_LIBS}
1.1       cgd       433:
1.243     rtr       434: .if !target(__archivebuild)
1.90      christos  435: __archivebuild: .USE
1.238     lukem     436:        ${_MKTARGET_BUILD}
1.236     lukem     437:        rm -f ${.TARGET}
1.228     lukem     438:        ${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
1.89      christos  439:        ${RANLIB} ${.TARGET}
1.243     rtr       440: .endif
1.89      christos  441:
1.243     rtr       442: .if !target(__archiveinstall)
1.89      christos  443: __archiveinstall: .USE
1.238     lukem     444:        ${_MKTARGET_INSTALL}
1.198     lukem     445:        ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
1.269     dbj       446:            ${empty(PRESERVE):?-a "${RANLIB} -t":} ${.ALLSRC} ${.TARGET}
1.243     rtr       447: .endif
1.89      christos  448:
1.197     mycroft   449: __archivesymlinkpic: .USE
1.238     lukem     450:        ${_MKTARGET_INSTALL}
1.264     jwise     451:        ${INSTALL_SYMLINK} ${.ALLSRC} ${.TARGET}
1.197     mycroft   452:
1.253     christos  453: DPSRCS+=       ${_YLSRCS}
                    454: CLEANFILES+=   ${_YLSRCS}
1.230     lukem     455:
1.266     christos  456: ${STOBJS} ${POBJS} ${GOBJS} ${SOBJS} ${LOBJS}: ${DPSRCS}
1.103     mycroft   457:
1.255     thorpej   458: lib${LIB}.a:: ${STOBJS} __archivebuild
1.1       cgd       459:
1.89      christos  460: lib${LIB}_p.a:: ${POBJS} __archivebuild
1.1       cgd       461:
1.89      christos  462: lib${LIB}_pic.a:: ${SOBJS} __archivebuild
1.27      pk        463:
1.266     christos  464: lib${LIB}_g.a:: ${GOBJS} __archivebuild
                    465:
1.235     lukem     466:
                    467: _LIBLDOPTS=
                    468: .if ${SHLIBDIR} != "/usr/lib"
                    469: _LIBLDOPTS+=   -Wl,-rpath-link,${DESTDIR}${SHLIBDIR}:${DESTDIR}/usr/lib \
                    470:                -R${SHLIBDIR} \
                    471:                -L${DESTDIR}${SHLIBDIR}
                    472: .elif ${SHLIBINSTALLDIR} != "/usr/lib"
                    473: _LIBLDOPTS+=   -Wl,-rpath-link,${DESTDIR}${SHLIBINSTALLDIR}:${DESTDIR}/usr/lib \
                    474:                -L${DESTDIR}${SHLIBINSTALLDIR}
                    475: .endif
                    476:
1.277     christos  477: # gcc -shared now adds -lc automatically. For libraries other than libc and
                    478: # libgcc* we add as a dependency the installed shared libc. For libc and
                    479: # libgcc* we avoid adding libc as a dependency by using -nostdlib. Note that
                    480: # -Xl,-nostdlib is not enough because we want to tell the compiler-driver not
                    481: # to add standard libraries, not the linker.
1.276     christos  482: .if !defined(LIB)
1.274     christos  483: DPLIBC ?= ${DESTDIR}${LIBC_SO}
1.276     christos  484: .else
1.278     simonb    485: .if ${LIB} != "c" && ${LIB:Mgcc*} == ""
1.276     christos  486: DPLIBC ?= ${DESTDIR}${LIBC_SO}
1.277     christos  487: .else
1.278     simonb    488: LDLIBC ?= -nodefaultlibs
                    489: .if ${LIB} == "c"
                    490: LDADD+= -lgcc_pic
                    491: .endif
1.276     christos  492: .endif
1.274     christos  493: .endif
                    494:
                    495: lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOLIB} ${DPADD} ${DPLIBC} \
1.88      cgd       496:     ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
1.238     lukem     497:        ${_MKTARGET_BUILD}
1.236     lukem     498:        rm -f lib${LIB}.so.${SHLIB_FULLVERSION}
1.152     fair      499: .if defined(DESTDIR)
1.277     christos  500:        ${CC} ${LDLIBC} -Wl,-nostdlib -B${_GCC_CRTDIR}/ -B${DESTDIR}/usr/lib/ \
1.235     lukem     501:            ${_LIBLDOPTS} \
1.231     lukem     502:            -Wl,-x -shared ${SHLIB_SHFLAGS} ${LDFLAGS} -o ${.TARGET} \
1.221     drochner  503:            -Wl,--whole-archive ${SOLIB} \
                    504:            -Wl,--no-whole-archive ${LDADD} \
1.277     christos  505:            -L${_GCC_LIBGCCDIR}
1.221     drochner  506: .else
1.277     christos  507:        ${CC} ${LDLIBC} -Wl,-x -shared ${SHLIB_SHFLAGS} ${LDFLAGS} \
                    508:            -o ${.TARGET} ${_LIBLDOPTS} \
                    509:            -Wl,--whole-archive ${SOLIB} -Wl,--no-whole-archive ${LDADD}
1.152     fair      510: .endif
1.148     lukem     511: .if ${OBJECT_FMT} == "ELF"
1.196     lukem     512: #  We don't use INSTALL_SYMLINK here because this is just
                    513: #  happening inside the build directory/objdir. XXX Why does
                    514: #  this spend so much effort on libraries that aren't live??? XXX
1.284     lukem     515: .if defined(SHLIB_FULLVERSION) && defined(SHLIB_MAJOR) && \
                    516:     "${SHLIB_FULLVERSION}" != "${SHLIB_MAJOR}"
1.241     matt      517:        ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp
1.177     mycroft   518:        mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR}
1.283     lukem     519: .endif
1.241     matt      520:        ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp
1.177     mycroft   521:        mv -f lib${LIB}.so.tmp lib${LIB}.so
1.133     tv        522: .endif
1.286     joerg     523: .if ${MKSTRIPIDENT} != "no"
                    524:        ${OBJCOPY} -R .ident ${.TARGET}
                    525: .endif
1.35      pk        526:
1.252     lukem     527: .if !empty(LOBJS)                                                      # {
1.103     mycroft   528: LLIBS?=                -lc
1.58      cgd       529: llib-l${LIB}.ln: ${LOBJS}
1.238     lukem     530:        ${_MKTARGET_COMPILE}
1.236     lukem     531:        rm -f llib-l${LIB}.ln
1.206     thorpej   532: .if defined(DESTDIR)
1.228     lukem     533:        ${LINT} -C${LIB} ${.ALLSRC} -L${DESTDIR}/usr/libdata ${LLIBS}
1.206     thorpej   534: .else
1.228     lukem     535:        ${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}
1.206     thorpej   536: .endif
1.252     lukem     537: .endif                                                                 # }
1.1       cgd       538:
1.280     lukem     539: lint: ${LOBJS}
                    540: .if defined(LOBJS) && !empty(LOBJS)
                    541:        ${LINT} ${LINTFLAGS} ${LOBJS}
                    542: .endif
                    543:
1.246     lukem     544: cleanlib: .PHONY
1.48      mycroft   545:        rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}
1.255     thorpej   546:        rm -f lib${LIB}.a ${STOBJS}
1.59      cgd       547:        rm -f lib${LIB}_p.a ${POBJS}
1.266     christos  548:        rm -f lib${LIB}_g.a ${GOBJS}
1.133     tv        549:        rm -f lib${LIB}_pic.a lib${LIB}.so.* lib${LIB}.so ${SOBJS}
1.266     christos  550:        rm -f ${STOBJS:=.tmp} ${POBJS:=.tmp} ${SOBJS:=.tmp} ${GOBJS:=.tmp}
1.59      cgd       551:        rm -f llib-l${LIB}.ln ${LOBJS}
1.1       cgd       552:
1.252     lukem     553:
                    554: .if !target(libinstall)                                                        # {
1.148     lukem     555: # Make sure it gets defined, in case MKPIC==no && MKLINKLIB==no
1.139     tv        556: libinstall::
                    557:
1.234     lukem     558: .if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no"
1.89      christos  559: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
1.168     mycroft   560: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a
1.197     mycroft   561:
1.269     dbj       562: .if ${MKUPDATE} == "no"
1.197     mycroft   563: .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)
                    564: ${DESTDIR}${LIBDIR}/lib${LIB}.a! .MADE
1.89      christos  565: .endif
1.197     mycroft   566: ${DESTDIR}${LIBDIR}/lib${LIB}.a! lib${LIB}.a __archiveinstall
                    567: .else
1.157     fredb     568: .if !defined(BUILD) && !make(all) && !make(lib${LIB}.a)
1.89      christos  569: ${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE
                    570: .endif
                    571: ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall
1.130     tv        572: .endif
1.197     mycroft   573: .endif
1.89      christos  574:
1.149     lukem     575: .if ${MKPROFILE} != "no"
1.89      christos  576: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
1.168     mycroft   577: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
1.197     mycroft   578:
1.269     dbj       579: .if ${MKUPDATE} == "no"
1.197     mycroft   580: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)
                    581: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a! .MADE
1.32      pk        582: .endif
1.197     mycroft   583: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a! lib${LIB}_p.a __archiveinstall
                    584: .else
1.157     fredb     585: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_p.a)
1.89      christos  586: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE
                    587: .endif
                    588: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall
                    589: .endif
1.197     mycroft   590: .endif
1.89      christos  591:
1.268     lukem     592: .if ${MKDEBUGLIB} != "no"
1.266     christos  593: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a
                    594: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a
                    595:
1.269     dbj       596: .if ${MKUPDATE} == "no"
1.266     christos  597: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_g.a)
                    598: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a! .MADE
                    599: .endif
                    600: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a! lib${LIB}_g.a __archiveinstall
                    601: .else
                    602: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_g.a)
                    603: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a: .MADE
                    604: .endif
                    605: ${DESTDIR}${LIBDIR}/lib${LIB}_g.a: lib${LIB}_g.a __archiveinstall
                    606: .endif
                    607: .endif
                    608:
1.149     lukem     609: .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"
1.168     mycroft   610: libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
1.160     simonb    611: .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
1.197     mycroft   612:
1.269     dbj       613: .if ${MKUPDATE} == "no"
1.197     mycroft   614: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)
                    615: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! .MADE
1.89      christos  616: .endif
1.197     mycroft   617: .if ${MKPICLIB} == "no"
                    618: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! lib${LIB}.a __archivesymlinkpic
                    619: .else
                    620: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a! lib${LIB}_pic.a __archiveinstall
                    621: .endif
                    622: .else
1.157     fredb     623: .if !defined(BUILD) && !make(all) && !make(lib${LIB}_pic.a)
1.89      christos  624: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: .MADE
1.33      pk        625: .endif
1.160     simonb    626: .if ${MKPICLIB} == "no"
1.197     mycroft   627: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}.a __archivesymlinkpic
1.160     simonb    628: .else
1.89      christos  629: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}_pic.a __archiveinstall
1.160     simonb    630: .endif
1.89      christos  631: .endif
1.197     mycroft   632: .endif
1.89      christos  633:
1.171     christos  634: .if ${MKPIC} != "no" && defined(SHLIB_FULLVERSION)
1.282     lukem     635: _LIB_SO_TGT=           ${DESTDIR}${_LIBSODIR}/${_LIB_PREFIX}${LIB}.so
                    636: _LIB_SO_TGTLIBDIR=        ${DESTDIR}${LIBDIR}/${_LIB_PREFIX}${LIB}.so
                    637:
                    638: libinstall:: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}
                    639: .PRECIOUS: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}
1.197     mycroft   640:
1.269     dbj       641: .if ${MKUPDATE} == "no"
1.197     mycroft   642: .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
1.282     lukem     643: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}! .MADE
1.89      christos  644: .endif
1.282     lukem     645: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}! lib${LIB}.so.${SHLIB_FULLVERSION}
1.197     mycroft   646: .else
1.171     christos  647: .if !defined(BUILD) && !make(all) && !make(lib${LIB}.so.${SHLIB_FULLVERSION})
1.282     lukem     648: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}: .MADE
1.89      christos  649: .endif
1.282     lukem     650: ${_LIB_SO_TGT}.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_FULLVERSION}
1.197     mycroft   651: .endif
1.238     lukem     652:        ${_MKTARGET_INSTALL}
1.188     tv        653:        ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
1.264     jwise     654:                ${.ALLSRC} ${.TARGET}
1.195     lukem     655: .if ${_LIBSODIR} != ${LIBDIR}
1.282     lukem     656:        ${INSTALL_SYMLINK} -l r \
                    657:                ${_LIB_SO_TGT}.${SHLIB_FULLVERSION} \
                    658:                ${_LIB_SO_TGTLIBDIR}.${SHLIB_FULLVERSION}
1.195     lukem     659: .endif
1.148     lukem     660: .if ${OBJECT_FMT} == "a.out" && !defined(DESTDIR)
1.195     lukem     661:        /sbin/ldconfig -m ${_LIBSODIR} ${LIBDIR}
1.146     thorpej   662: .endif
1.148     lukem     663: .if ${OBJECT_FMT} == "ELF"
1.284     lukem     664: .if defined(SHLIB_FULLVERSION) && defined(SHLIB_MAJOR) && \
                    665:     "${SHLIB_FULLVERSION}" != "${SHLIB_MAJOR}"
1.264     jwise     666:        ${INSTALL_SYMLINK} \
1.284     lukem     667:                ${_LIB_PREFIX}${LIB}.so.${SHLIB_FULLVERSION} \
1.282     lukem     668:                ${_LIB_SO_TGT}.${SHLIB_MAJOR}
1.195     lukem     669: .if ${_LIBSODIR} != ${LIBDIR}
1.282     lukem     670:        ${INSTALL_SYMLINK} -l r \
                    671:                ${_LIB_SO_TGT}.${SHLIB_FULLVERSION} \
                    672:                ${_LIB_SO_TGTLIBDIR}.${SHLIB_MAJOR}
1.195     lukem     673: .endif
1.284     lukem     674: .endif
1.148     lukem     675: .if ${MKLINKLIB} != "no"
1.264     jwise     676:        ${INSTALL_SYMLINK} \
1.284     lukem     677:                ${_LIB_PREFIX}${LIB}.so.${SHLIB_FULLVERSION} \
1.282     lukem     678:                ${_LIB_SO_TGT}
1.195     lukem     679: .if ${_LIBSODIR} != ${LIBDIR}
1.282     lukem     680:        ${INSTALL_SYMLINK} -l r \
                    681:                ${_LIB_SO_TGT}.${SHLIB_FULLVERSION} \
                    682:                ${_LIB_SO_TGTLIBDIR}
1.195     lukem     683: .endif
1.83      cgd       684: .endif
1.12      cgd       685: .endif
1.139     tv        686: .endif
1.89      christos  687:
1.279     lukem     688: .if ${MKLINT} != "no" && !empty(LOBJS)
1.89      christos  689: libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
1.168     mycroft   690: .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
1.197     mycroft   691:
1.269     dbj       692: .if ${MKUPDATE} == "no"
1.197     mycroft   693: .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)
                    694: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln! .MADE
1.89      christos  695: .endif
1.197     mycroft   696: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln! llib-l${LIB}.ln
                    697: .else
1.157     fredb     698: .if !defined(BUILD) && !make(all) && !make(llib-l${LIB}.ln)
1.89      christos  699: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE
                    700: .endif
1.95      mycroft   701: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln
1.197     mycroft   702: .endif
1.238     lukem     703:        ${_MKTARGET_INSTALL}
1.188     tv        704:        ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
1.264     jwise     705:                ${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
1.58      cgd       706: .endif
1.252     lukem     707: .endif # !target(libinstall)                                           # }
1.1       cgd       708:
1.188     tv        709: ##### Pull in related .mk logic
1.1       cgd       710: .include <bsd.man.mk>
1.57      jtc       711: .include <bsd.nls.mk>
1.91      christos  712: .include <bsd.files.mk>
1.89      christos  713: .include <bsd.inc.mk>
1.109     cjs       714: .include <bsd.links.mk>
1.24      mycroft   715: .include <bsd.dep.mk>
1.117     mycroft   716:
1.188     tv        717: ${TARGETS}:    # ensure existence

CVSweb <webmaster@jp.NetBSD.org>