aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/smbfs/Makefile.inc
blob: d83356e7a0c7faceff753eb1b9916c1c4cf9dfc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: Makefile.inc,v 1.10 2001/05/03 10:05:47 bp Exp $

.ifmake !clean && !cleandepend
.if !defined(PREFIX)
.include "config.int"
.endif
.endif

BINDIR?=${PREFIX}/bin
SMBSBINDIR=${PREFIX}/sbin
MANDIR=${PREFIX}/man/man

CFLAGS	+= -Wall -I../kernel/mysys

.include <bsd.libnames.mk>

.if !defined(LIBSMB) || defined(COMPLETEBUILD)
CFLAGS	+= -L../lib/smb -L../lib/nb
CFLAGS	+= -I../include
LIBSMB	= ../lib/smb/libsmb.a
.endif

.if !exists(${SYSDIR}/netsmb/smb.h)
CFLAGS	+= -I../kernel
.else
CFLAGS	+= -I${SYSDIR}
.endif

.if defined(SMBGDB)
CFLAGS+= -ggdb
.endif

deinstall:
	@(if test -f ${BINDIR}/${PROG}; then \
		echo removing ${BINDIR}/${PROG}; \
		rm -f ${BINDIR}/${PROG}; \
	fi;)
	@(if test -f ${MANDIR}1/${MAN1}.gz ; then \
		echo removing ${MANDIR}1/${MAN1}.gz; \
		rm -f ${MANDIR}1/${MAN1}.gz; \
	fi;)
	@(if test -f ${MANDIR}8/${MAN8}.gz ; then \
		echo removing ${MANDIR}8/${MAN8}.gz; \
		rm -f ${MANDIR}8/${MAN8}.gz; \
	fi;)