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