1 1.108 cjs # $NetBSD: bsd.lib.mk,v 1.108 1997/05/26 03:58:18 cjs Exp $ 2 1.92 mikel # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 3 1.1 cgd 4 1.1 cgd .if exists(${.CURDIR}/../Makefile.inc) 5 1.1 cgd .include "${.CURDIR}/../Makefile.inc" 6 1.1 cgd .endif 7 1.54 cgd 8 1.97 mycroft .include <bsd.own.mk> 9 1.97 mycroft 10 1.94 mycroft .MAIN: all 11 1.96 mycroft .PHONY: cleanlib libinstall 12 1.103 mycroft realinstall: libinstall 13 1.98 mycroft clean cleandir: cleanlib 14 1.1 cgd 15 1.35 pk .if exists(${.CURDIR}/shlib_version) 16 1.37 cgd SHLIB_MAJOR != . ${.CURDIR}/shlib_version ; echo $$major 17 1.37 cgd SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor 18 1.35 pk .endif 19 1.1 cgd 20 1.101 mycroft # add additional suffixes not exported. 21 1.101 mycroft # .po is used for profiling object files. 22 1.101 mycroft # .so is used for PIC object files. 23 1.105 mycroft .SUFFIXES: .out .a .ln .so .po .o .s .S .c .cc .C .F .f .r .y .l .cl .p .h .sh .m4 24 1.82 mikel 25 1.86 jonathan 26 1.86 jonathan # Set PICFLAGS to cc flags for producing position-independent code, 27 1.86 jonathan # if not already set. Includes -DPIC, if required. 28 1.86 jonathan 29 1.86 jonathan # Data-driven table using make variables to control how shared libraries 30 1.86 jonathan # are built for different platforms and object formats. 31 1.86 jonathan # SHLIB_TYPE: currently either "ELF" or "a.out". 32 1.86 jonathan # SHLIB_SOVERSION: version number to be compiled into a shared library 33 1.86 jonathan # via -soname. Usualy ${SHLIB_MAJOR} on ELF. 34 1.86 jonathan # NetBSD/pmax used to use ${SHLIB_MAJOR}.{SHLIB-MINOR}. 35 1.86 jonathan # SHLIB_LDSTARTFILE: ??? 36 1.86 jonathan # SHLIB_LDENDTILE: ?? 37 1.107 jonathan # CPPICFLAGS: flags for ${CPP} to preprocess .[sS] files for ${AS} 38 1.107 jonathan # CPICFLAGS: flags for ${CC} to compile .[cC] files to .so objects. 39 1.107 jonathan # CAPICFLAGS flags for {$CC} to compiling .[Ss] files 40 1.107 jonathan # (usually just ${CPPPICFLAGS} ${CPICFLAGS}) 41 1.107 jonathan # APICFLAGS: flags for ${AS} to assemble .[sS] to .so objects. 42 1.86 jonathan 43 1.86 jonathan .if (${MACHINE_ARCH} == "alpha") 44 1.86 jonathan 45 1.86 jonathan SHLIB_TYPE=ELF 46 1.108 cjs SHLIB_LDSTARTFILE= ${BUILDDIR}${LIBDIR}/crtbeginS.o 47 1.108 cjs SHLIB_LDENDFILE= ${BUILDDIR}${LIBDIR}/crtendS.o 48 1.86 jonathan SHLIB_SOVERSION=${SHLIB_MAJOR} 49 1.86 jonathan CPICFLAGS ?= -fpic -DPIC 50 1.107 jonathan CPPPICFLAGS?= -DPIC 51 1.107 jonathan CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} 52 1.107 jonathan APICFLAGS ?= 53 1.86 jonathan 54 1.86 jonathan .elif (${MACHINE_ARCH} == "mips") 55 1.86 jonathan 56 1.86 jonathan SHLIB_TYPE=ELF 57 1.86 jonathan # still use gnu-derived ld.so on pmax; don't have or need lib<>.so support. 58 1.86 jonathan SHLIB_LDSTARTFILE= 59 1.86 jonathan SHLIB_LDENDFILE= 60 1.86 jonathan SHLIB_SOVERSION=${SHLIB_MAJOR} 61 1.86 jonathan 62 1.86 jonathan # On mips, all libs need to be compiled with ABIcalls, not just sharedlibs. 63 1.86 jonathan CPICFLAGS?= 64 1.86 jonathan APICFLAGS?= 65 1.86 jonathan #CPICFLAGS?= -fpic -DPIC 66 1.86 jonathan #APICFLAGS?= -DPIC 67 1.86 jonathan 68 1.86 jonathan # so turn shlib PIC flags on for ${CPP}, ${CC}, and ${AS} as follows: 69 1.86 jonathan AINC+=-DPIC -DABICALLS 70 1.86 jonathan COPTS+= -fPIC ${AINC} 71 1.86 jonathan AFLAGS+= -fPIC 72 1.86 jonathan AS+= -KPIC 73 1.86 jonathan 74 1.86 jonathan .else 75 1.86 jonathan 76 1.86 jonathan SHLIB_TYPE=a.out 77 1.88 cgd SHLIB_LDSTARTFILE= 78 1.88 cgd SHLIB_LDENDFILE= 79 1.86 jonathan SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} 80 1.107 jonathan CPICFLAGS?= -fpic 81 1.107 jonathan CPPPICFLAGS?= -DPIC 82 1.107 jonathan CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} 83 1.107 jonathan APICFLAGS?= -k 84 1.86 jonathan 85 1.86 jonathan .endif 86 1.86 jonathan 87 1.86 jonathan 88 1.82 mikel CFLAGS+= ${COPTS} 89 1.1 cgd 90 1.1 cgd .c.o: 91 1.80 christos @echo ${COMPILE.c:Q} ${.IMPSRC} 92 1.62 christos @${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o 93 1.62 christos @${LD} -x -r ${.TARGET}.o -o ${.TARGET} 94 1.62 christos @rm -f ${.TARGET}.o 95 1.1 cgd 96 1.1 cgd .c.po: 97 1.80 christos @echo ${COMPILE.c:Q} -pg ${.IMPSRC} -o ${.TARGET} 98 1.68 cgd @${COMPILE.c} -pg ${.IMPSRC} -o ${.TARGET}.o 99 1.62 christos @${LD} -X -r ${.TARGET}.o -o ${.TARGET} 100 1.62 christos @rm -f ${.TARGET}.o 101 1.17 mycroft 102 1.27 pk .c.so: 103 1.86 jonathan @echo ${COMPILE.c:Q} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET} 104 1.86 jonathan @${COMPILE.c} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o 105 1.62 christos @${LD} -x -r ${.TARGET}.o -o ${.TARGET} 106 1.62 christos @rm -f ${.TARGET}.o 107 1.27 pk 108 1.58 cgd .c.ln: 109 1.58 cgd ${LINT} ${LINTFLAGS} ${CFLAGS:M-[IDU]*} -i ${.IMPSRC} 110 1.58 cgd 111 1.18 mycroft .cc.o .C.o: 112 1.80 christos @echo ${COMPILE.cc:Q} ${.IMPSRC} 113 1.62 christos @${COMPILE.cc} ${.IMPSRC} -o ${.TARGET}.o 114 1.63 jtc @${LD} -x -r ${.TARGET}.o -o ${.TARGET} 115 1.62 christos @rm -f ${.TARGET}.o 116 1.17 mycroft 117 1.18 mycroft .cc.po .C.po: 118 1.80 christos @echo ${COMPILE.cc:Q} -pg ${.IMPSRC} -o ${.TARGET} 119 1.68 cgd @${COMPILE.cc} -pg ${.IMPSRC} -o ${.TARGET}.o 120 1.62 christos @${LD} -X -r ${.TARGET}.o -o ${.TARGET} 121 1.62 christos @rm -f ${.TARGET}.o 122 1.28 cgd 123 1.28 cgd .cc.so .C.so: 124 1.86 jonathan @echo ${COMPILE.cc:Q} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET} 125 1.86 jonathan @${COMPILE.cc} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}.o 126 1.62 christos @${LD} -x -r ${.TARGET}.o -o ${.TARGET} 127 1.62 christos @rm -f ${.TARGET}.o 128 1.1 cgd 129 1.40 cgd .S.o .s.o: 130 1.80 christos @echo ${COMPILE.S:Q} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} 131 1.69 jtc @${COMPILE.S} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o 132 1.62 christos @${LD} -x -r ${.TARGET}.o -o ${.TARGET} 133 1.62 christos @rm -f ${.TARGET}.o 134 1.1 cgd 135 1.40 cgd .S.po .s.po: 136 1.80 christos @echo ${COMPILE.S:Q} -DGPROF -DPROF ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET} 137 1.75 jtc @${COMPILE.S} -DGPROF -DPROF ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o 138 1.62 christos @${LD} -X -r ${.TARGET}.o -o ${.TARGET} 139 1.62 christos @rm -f ${.TARGET}.o 140 1.1 cgd 141 1.40 cgd .S.so .s.so: 142 1.107 jonathan @echo ${COMPILE.S:Q} ${CAPICFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET} 143 1.107 jonathan @${COMPILE.S} ${CAPICFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} -o ${.TARGET}.o 144 1.62 christos @${LD} -x -r ${.TARGET}.o -o ${.TARGET} 145 1.62 christos @rm -f ${.TARGET}.o 146 1.27 pk 147 1.58 cgd 148 1.1 cgd .if !defined(NOPROFILE) 149 1.1 cgd _LIBS=lib${LIB}.a lib${LIB}_p.a 150 1.1 cgd .else 151 1.1 cgd _LIBS=lib${LIB}.a 152 1.1 cgd .endif 153 1.1 cgd 154 1.27 pk .if !defined(NOPIC) 155 1.27 pk _LIBS+=lib${LIB}_pic.a 156 1.37 cgd .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) 157 1.37 cgd _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 158 1.27 pk .endif 159 1.35 pk .endif 160 1.27 pk 161 1.58 cgd .if !defined(NOLINT) 162 1.58 cgd _LIBS+=llib-l${LIB}.ln 163 1.27 pk .endif 164 1.27 pk 165 1.102 mycroft all: ${SRCS} ${_LIBS} 166 1.1 cgd 167 1.90 christos __archivebuild: .USE 168 1.89 christos @rm -f ${.TARGET} 169 1.93 thorpej @${AR} cq ${.TARGET} `NM=${NM} lorder ${.ALLSRC} | tsort -q` 170 1.89 christos ${RANLIB} ${.TARGET} 171 1.89 christos 172 1.89 christos __archiveinstall: .USE 173 1.89 christos ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 ${.ALLSRC} \ 174 1.89 christos ${.TARGET} 175 1.89 christos ${RANLIB} -t ${.TARGET} 176 1.89 christos chmod ${LIBMODE} ${.TARGET} 177 1.89 christos 178 1.104 mycroft DPSRCS+= ${SRCS:M*.l:.l=.c} ${SRCS:M*.y:.y=.c} 179 1.103 mycroft CLEANFILES+= ${DPSRCS} 180 1.103 mycroft 181 1.103 mycroft OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g} 182 1.89 christos lib${LIB}.a:: ${OBJS} __archivebuild 183 1.1 cgd @echo building standard ${LIB} library 184 1.108 cjs .if defined(OBJDIR) 185 1.108 cjs @echo install -d ${BUILDDIR}${LIBDIR} 186 1.108 cjs @install -d ${BUILDDIR}${LIBDIR} 187 1.108 cjs @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET}; 188 1.108 cjs @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET}; 189 1.108 cjs @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET}; 190 1.108 cjs .endif 191 1.1 cgd 192 1.103 mycroft POBJS+= ${OBJS:.o=.po} 193 1.89 christos lib${LIB}_p.a:: ${POBJS} __archivebuild 194 1.1 cgd @echo building profiled ${LIB} library 195 1.108 cjs .if defined(OBJDIR) 196 1.108 cjs @echo install -d ${BUILDDIR}${LIBDIR} 197 1.108 cjs @install -d ${BUILDDIR}${LIBDIR} 198 1.108 cjs @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET}; 199 1.108 cjs @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET}; 200 1.108 cjs @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET}; 201 1.108 cjs .endif 202 1.1 cgd 203 1.103 mycroft SOBJS+= ${OBJS:.o=.so} 204 1.89 christos lib${LIB}_pic.a:: ${SOBJS} __archivebuild 205 1.27 pk @echo building shared object ${LIB} library 206 1.108 cjs .if defined(OBJDIR) 207 1.108 cjs @echo install -d ${BUILDDIR}${LIBDIR} 208 1.108 cjs @install -d ${BUILDDIR}${LIBDIR} 209 1.108 cjs @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET}; 210 1.108 cjs @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET}; 211 1.108 cjs @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET}; 212 1.108 cjs .endif 213 1.27 pk 214 1.88 cgd lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD} \ 215 1.88 cgd ${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE} 216 1.38 cgd @echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\) 217 1.37 cgd @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 218 1.86 jonathan .if (${SHLIB_TYPE} == "a.out") 219 1.53 pk $(LD) -x -Bshareable -Bforcearchive \ 220 1.89 christos -o ${.TARGET} lib${LIB}_pic.a ${LDADD} 221 1.86 jonathan .elif (${SHLIB_TYPE} == "ELF") 222 1.89 christos $(LD) -x -shared -o ${.TARGET} \ 223 1.86 jonathan -soname lib${LIB}.so.${SHLIB_SOVERSION} ${SHLIB_LDSTARTFILE} \ 224 1.77 cgd --whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \ 225 1.86 jonathan ${SHLIB_LDENDFILE} 226 1.72 cgd .endif 227 1.108 cjs .if defined(OBJDIR) 228 1.108 cjs @echo install -d ${BUILDDIR}${LIBDIR} 229 1.108 cjs @install -d ${BUILDDIR}${LIBDIR} 230 1.108 cjs @echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET}; 231 1.108 cjs @rm -f ${BUILDDIR}${LIBDIR}/${.TARGET}; 232 1.108 cjs @ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET}; 233 1.108 cjs .if (${SHLIB_TYPE} == "ELF") 234 1.108 cjs rm -f ${BUILDDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR} 235 1.108 cjs ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 236 1.108 cjs ${BUILDDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR} 237 1.108 cjs rm -f ${BUILDDIR}${LIBDIR}/lib${LIB}.so 238 1.108 cjs ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 239 1.108 cjs ${BUILDDIR}${LIBDIR}/lib${LIB}.so 240 1.108 cjs .endif # SHLIB_TYPE == ELF 241 1.108 cjs .endif # defined(OBJDIR) 242 1.35 pk 243 1.103 mycroft LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln} 244 1.103 mycroft LLIBS?= -lc 245 1.58 cgd llib-l${LIB}.ln: ${LOBJS} 246 1.58 cgd @echo building llib-l${LIB}.ln 247 1.58 cgd @rm -f llib-l${LIB}.ln 248 1.58 cgd @${LINT} -C${LIB} ${LOBJS} ${LLIBS} 249 1.1 cgd 250 1.81 cgd cleanlib: 251 1.48 mycroft rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES} 252 1.59 cgd rm -f lib${LIB}.a ${OBJS} 253 1.59 cgd rm -f lib${LIB}_p.a ${POBJS} 254 1.61 cgd rm -f lib${LIB}_pic.a lib${LIB}.so.*.* ${SOBJS} 255 1.59 cgd rm -f llib-l${LIB}.ln ${LOBJS} 256 1.1 cgd 257 1.26 mycroft .if defined(SRCS) 258 1.64 christos afterdepend: .depend 259 1.1 cgd @(TMP=/tmp/_depend$$$$; \ 260 1.79 cgd sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so \1.ln:/' \ 261 1.58 cgd < .depend > $$TMP; \ 262 1.1 cgd mv $$TMP .depend) 263 1.26 mycroft .endif 264 1.1 cgd 265 1.97 mycroft .if !target(libinstall) 266 1.89 christos libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a 267 1.89 christos .if !defined(UPDATE) 268 1.89 christos .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.a 269 1.89 christos .endif 270 1.89 christos .if !defined(BUILD) 271 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE 272 1.89 christos .endif 273 1.89 christos 274 1.95 mycroft .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a 275 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall 276 1.89 christos 277 1.12 cgd .if !defined(NOPROFILE) 278 1.89 christos libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a 279 1.89 christos .if !defined(UPDATE) 280 1.89 christos .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a 281 1.32 pk .endif 282 1.89 christos .if !defined(BUILD) 283 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE 284 1.89 christos .endif 285 1.89 christos 286 1.95 mycroft .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a 287 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall 288 1.89 christos .endif 289 1.89 christos 290 1.39 pk .if !defined(NOPIC) 291 1.89 christos libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a 292 1.89 christos .if !defined(UPDATE) 293 1.89 christos .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a 294 1.89 christos .endif 295 1.89 christos .if !defined(BUILD) 296 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: .MADE 297 1.33 pk .endif 298 1.89 christos 299 1.95 mycroft .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a 300 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a: lib${LIB}_pic.a __archiveinstall 301 1.89 christos .endif 302 1.89 christos 303 1.37 cgd .if !defined(NOPIC) && defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) 304 1.89 christos libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 305 1.89 christos .if !defined(UPDATE) 306 1.89 christos .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 307 1.89 christos .endif 308 1.89 christos .if !defined(BUILD) 309 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: .MADE 310 1.89 christos .endif 311 1.92 mikel 312 1.95 mycroft .PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 313 1.89 christos ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} 314 1.89 christos ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} \ 315 1.89 christos ${.TARGET} 316 1.86 jonathan .if (${SHLIB_TYPE} == "ELF") 317 1.83 cgd rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR} 318 1.83 cgd ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 319 1.83 cgd ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR} 320 1.83 cgd rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so 321 1.83 cgd ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 322 1.83 cgd ${DESTDIR}${LIBDIR}/lib${LIB}.so 323 1.83 cgd .endif 324 1.12 cgd .endif 325 1.89 christos 326 1.58 cgd .if !defined(NOLINT) 327 1.89 christos libinstall:: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln 328 1.89 christos .if !defined(UPDATE) 329 1.89 christos .PHONY: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln 330 1.89 christos .endif 331 1.89 christos .if !defined(BUILD) 332 1.89 christos ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE 333 1.89 christos .endif 334 1.89 christos 335 1.95 mycroft .PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln 336 1.95 mycroft ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln 337 1.73 thorpej ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 338 1.58 cgd llib-l${LIB}.ln ${DESTDIR}${LINTLIBDIR} 339 1.58 cgd .endif 340 1.1 cgd .endif 341 1.1 cgd 342 1.10 mycroft .if !defined(NOMAN) 343 1.1 cgd .include <bsd.man.mk> 344 1.57 jtc .endif 345 1.57 jtc 346 1.57 jtc .if !defined(NONLS) 347 1.57 jtc .include <bsd.nls.mk> 348 1.10 mycroft .endif 349 1.10 mycroft 350 1.22 mycroft .include <bsd.obj.mk> 351 1.108 cjs .include <bsd.links.mk> 352 1.91 christos .include <bsd.files.mk> 353 1.89 christos .include <bsd.inc.mk> 354 1.24 mycroft .include <bsd.dep.mk> 355 1.49 cgd .include <bsd.subdir.mk> 356 1.66 christos .include <bsd.sys.mk> 357