187866Ssheldonh# $Id: Makefile,v 1.12 2001/04/16 14:27:35 bp Exp $
287866Ssheldonh
387866SsheldonhLIB=		smb
487866Ssheldonh
587866SsheldonhNOPROFILE=	yes
687866Ssheldonh
787866Ssheldonh#SHLIB_MAJOR=	1
887866Ssheldonh#SHLIB_MINOR=	0
987866Ssheldonh
1087866SsheldonhNOMAN=
1187866Ssheldonh
1287866SsheldonhSRCS=	rcfile.c ctx.c cfopt.c subr.c nls.c rap.c mbuf.c rq.c file.c \
1387866Ssheldonh	print.c \
1487866Ssheldonh	kiconv.c \
1587866Ssheldonh	nb.c nb_name.c nb_net.c nbns_rq.c
1687866Ssheldonh
1787866Ssheldonh.ifmake !clean && !cleandepend
1887866Ssheldonh.if !defined(PREFIX)
1987866Ssheldonh.include "../../config.int"
2087866Ssheldonh.endif
2187866Ssheldonh.endif
2287866Ssheldonh
2387866SsheldonhDESTDIR=${PREFIX}/
2487866SsheldonhLIBDIR=lib
2587866Ssheldonh
2687866Ssheldonh.if !defined(USE_SHAREDLIBS)
2787866SsheldonhNOPIC=		yes
2887866Ssheldonh.endif
2987866Ssheldonh
3087866Ssheldonhinstall-src: install-lib
3187866Ssheldonh
3287866Ssheldonhdeinstall-src: deinstall-lib
3387866Ssheldonh
3487866Ssheldonh.include <bsd.lib.mk>
3587866Ssheldonh
3687866Ssheldonhinstall-lib: afterinstall _SUBDIR
3787866Ssheldonh.if !defined(NOMAN)
3887866Ssheldonhafterinstall: realinstall maninstall
3987866Ssheldonh.else
4087866Ssheldonhafterinstall: realinstall
4187866Ssheldonh.endif
4287866Ssheldonh
4387866Ssheldonhdeinstall-lib:
4487866Ssheldonh	rm -f ${DESTDIR}/${LIBDIR}/lib${LIB}.a 
4587866Ssheldonh.if defined(SHLIB_NAME)
4687866Ssheldonh	rm -f ${DESTDIR}/${SHLIBDIR}/${SHLIB_NAME}
4787866Ssheldonh.endif
4887866Ssheldonh.if defined(SHLIB_LINK)
4987866Ssheldonh	rm -f ${DESTDIR}/${SHLIBDIR}/${SHLIB_LINK}
5087866Ssheldonh.endif
51