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