xref: /freebsd/contrib/smbfs/Makefile.inc (revision 2be1a816b9ff69588e55be0a84cbe2a31efc0f2f)
1# $Id: Makefile.inc,v 1.11 2002/04/16 02:57:46 bp Exp $
2
3.ifmake !clean && !cleandepend
4.if !defined(PREFIX)
5.include "config.int"
6.endif
7.endif
8
9BINDIR?=${PREFIX}/bin
10SMBSBINDIR=${PREFIX}/sbin
11MANDIR=${PREFIX}/man/man
12
13CFLAGS	+= -Wall -I../kernel/mysys
14
15.include <bsd.libnames.mk>
16
17.if !defined(LIBSMB) || defined(COMPLETEBUILD)
18CFLAGS	+= -L../lib/smb -L../lib/nb
19CFLAGS	+= -I../include
20LIBSMB	= ../lib/smb/libsmb.a
21.endif
22
23.if !exists(${SYSDIR}/netsmb/smb.h)
24CFLAGS	+= -I../kernel
25.else
26CFLAGS	+= -I${SYSDIR}
27.endif
28
29CFLAGS += -I../include
30
31.if defined(SMBGDB)
32CFLAGS+= -ggdb
33.endif
34
35deinstall:
36	@(if test -f ${BINDIR}/${PROG}; then \
37		echo removing ${BINDIR}/${PROG}; \
38		rm -f ${BINDIR}/${PROG}; \
39	fi;)
40	@(if test -f ${MANDIR}1/${MAN1}.gz ; then \
41		echo removing ${MANDIR}1/${MAN1}.gz; \
42		rm -f ${MANDIR}1/${MAN1}.gz; \
43	fi;)
44	@(if test -f ${MANDIR}8/${MAN8}.gz ; then \
45		echo removing ${MANDIR}8/${MAN8}.gz; \
46		rm -f ${MANDIR}8/${MAN8}.gz; \
47	fi;)
48