]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/smbfs/Makefile.inc
This commit was generated by cvs2svn to compensate for changes in r94562,
[FreeBSD/FreeBSD.git] / contrib / smbfs / Makefile.inc
1 # $Id: Makefile.inc,v 1.10 2001/05/03 10:05:47 bp Exp $
2
3 .ifmake !clean && !cleandepend
4 .if !defined(PREFIX)
5 .include "config.int"
6 .endif
7 .endif
8
9 BINDIR?=${PREFIX}/bin
10 SMBSBINDIR=${PREFIX}/sbin
11 MANDIR=${PREFIX}/man/man
12
13 CFLAGS  += -Wall -I../kernel/mysys
14
15 .include <bsd.libnames.mk>
16
17 .if !defined(LIBSMB) || defined(COMPLETEBUILD)
18 CFLAGS  += -L../lib/smb -L../lib/nb
19 CFLAGS  += -I../include
20 LIBSMB  = ../lib/smb/libsmb.a
21 .endif
22
23 .if !exists(${SYSDIR}/netsmb/smb.h)
24 CFLAGS  += -I../kernel
25 .else
26 CFLAGS  += -I${SYSDIR}
27 .endif
28
29 .if defined(SMBGDB)
30 CFLAGS+= -ggdb
31 .endif
32
33 deinstall:
34         @(if test -f ${BINDIR}/${PROG}; then \
35                 echo removing ${BINDIR}/${PROG}; \
36                 rm -f ${BINDIR}/${PROG}; \
37         fi;)
38         @(if test -f ${MANDIR}1/${MAN1}.gz ; then \
39                 echo removing ${MANDIR}1/${MAN1}.gz; \
40                 rm -f ${MANDIR}1/${MAN1}.gz; \
41         fi;)
42         @(if test -f ${MANDIR}8/${MAN8}.gz ; then \
43                 echo removing ${MANDIR}8/${MAN8}.gz; \
44                 rm -f ${MANDIR}8/${MAN8}.gz; \
45         fi;)