xref: /freebsd/lib/liby/Makefile (revision a220d00e74dd245b4fca59c5eca0c53963686325)
1# $FreeBSD$
2
3LIB=		y
4SHLIB_MAJOR=	2
5SHLIB_MINOR=	0
6
7SRCS=	main.c yyerror.c
8
9.if ${OBJFORMAT} != aout
10NOPIC=	true
11.endif
12
13#
14# Before complaining about this, please *double-check* that you have
15# updated the ldconfig path in /etc/rc to include /usr/lib/compat that
16# was added in src/etc/rc rev 1.98.
17# This is so that `ld' will not continue to generate binaries linked
18# shared against liby, so that in a future release we can move this
19# off to a compat dist (like compat22).
20#
21beforeinstall:
22	-rm -f ${DESTDIR}/usr/lib/compat/lib${LIB}.so \
23	 ${DESTDIR}${ORIG_SHLIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
24	 ${DESTDIR}/usr/lib/compat/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
25	 ${DESTDIR}/usr/lib/compat/lib${LIB}.so.${SHLIB_MAJOR}
26
27.include <bsd.lib.mk>
28
29# This must follow the .include in case SHLIBDIR is defined there.
30ORIG_SHLIBDIR:=	${SHLIBDIR}
31
32.if ${OBJFORMAT} == aout
33# The ldconfig line in/etc/rc doesn't depend on ${LIBDIR} or ${SHLIBDIR},
34# so neither does this.
35SHLIBDIR=	/usr/lib/compat/aout
36.endif
37