195267Ssheldonh# $Id: Makefile.inc,v 1.11 2002/04/16 02:57:46 bp Exp $
287866Ssheldonh
387866Ssheldonh.ifmake !clean && !cleandepend
487866Ssheldonh.if !defined(PREFIX)
587866Ssheldonh.include "config.int"
687866Ssheldonh.endif
787866Ssheldonh.endif
887866Ssheldonh
987866SsheldonhBINDIR?=${PREFIX}/bin
1087866SsheldonhSMBSBINDIR=${PREFIX}/sbin
1187866SsheldonhMANDIR=${PREFIX}/man/man
1287866Ssheldonh
1387866SsheldonhCFLAGS	+= -Wall -I../kernel/mysys
1487866Ssheldonh
1587866Ssheldonh.include <bsd.libnames.mk>
1687866Ssheldonh
1787866Ssheldonh.if !defined(LIBSMB) || defined(COMPLETEBUILD)
1887866SsheldonhCFLAGS	+= -L../lib/smb -L../lib/nb
1987866SsheldonhCFLAGS	+= -I../include
2087866SsheldonhLIBSMB	= ../lib/smb/libsmb.a
2187866Ssheldonh.endif
2287866Ssheldonh
2387866Ssheldonh.if !exists(${SYSDIR}/netsmb/smb.h)
2487866SsheldonhCFLAGS	+= -I../kernel
2588282Ssheldonh.else
2688282SsheldonhCFLAGS	+= -I${SYSDIR}
2787866Ssheldonh.endif
2887866Ssheldonh
2995267SsheldonhCFLAGS += -I../include
3095267Ssheldonh
3187866Ssheldonh.if defined(SMBGDB)
3287866SsheldonhCFLAGS+= -ggdb
3387866Ssheldonh.endif
3487866Ssheldonh
3587866Ssheldonhdeinstall:
3687866Ssheldonh	@(if test -f ${BINDIR}/${PROG}; then \
3787866Ssheldonh		echo removing ${BINDIR}/${PROG}; \
3887866Ssheldonh		rm -f ${BINDIR}/${PROG}; \
3987866Ssheldonh	fi;)
4087866Ssheldonh	@(if test -f ${MANDIR}1/${MAN1}.gz ; then \
4187866Ssheldonh		echo removing ${MANDIR}1/${MAN1}.gz; \
4287866Ssheldonh		rm -f ${MANDIR}1/${MAN1}.gz; \
4387866Ssheldonh	fi;)
4487866Ssheldonh	@(if test -f ${MANDIR}8/${MAN8}.gz ; then \
4587866Ssheldonh		echo removing ${MANDIR}8/${MAN8}.gz; \
4687866Ssheldonh		rm -f ${MANDIR}8/${MAN8}.gz; \
4787866Ssheldonh	fi;)
48