Initial import from FreeBSD RELENG_4:
[dragonfly.git] / lib / liby / Makefile
1 # $FreeBSD: src/lib/liby/Makefile,v 1.7 1999/08/28 00:05:59 peter Exp $
2
3 LIB=            y
4 SHLIB_MAJOR=    2
5 SHLIB_MINOR=    0
6
7 SRCS=   main.c yyerror.c
8
9 .if ${OBJFORMAT} != aout
10 NOPIC=  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 #
21 beforeinstall:
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.
30 ORIG_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.
35 SHLIBDIR=       /usr/lib/compat/aout
36 .endif