[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

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

CVSweb <webmaster@jp.NetBSD.org>