1 # $Id: Makefile,v 1.12 2001/04/16 04:34:26 bp Exp $
4 # install installs binaries and man pages
5 # deinstall undo install (except man pages)
6 # install-src copy .h files in /usr/local/include
7 # install-lib copy lib files in /usr/lib
9 # deinstall-src undo corresponding install-* target
10 # clean cleanup source tree
12 .if ${MACHINE_ARCH} != "i386"
13 . error "only IA32 machines supported"
16 CONFIG_INT?= config.int
21 .ifmake !configure && !clean
22 . if !exists(${CONFIG_INT})
23 . error "Run 'make configure' before build"
25 . include "${CONFIG_INT}"
28 . if exists(${CONFIG_MK})
29 CFGDEPEND= ${CONFIG_MK}
31 ${CONFIG_MK}: config.mk.in
32 @echo Your ${CONFIG_MK} file is older than the config.mk.in file
33 @echo Please check for possible changes
36 . include "${CONFIG_MK}"
45 .if ${CFGDEPEND} == ${CONFIG_MK}
46 @echo Using ${CFGDEPEND} file...
48 echo PREFIX= ${PREFIX} > ${CONFIG_INT}
49 echo SYSDIR=${SYSDIR} >> ${CONFIG_INT}
50 echo KMODDIR=${KMODDIR} >> ${CONFIG_INT}
51 echo SINGLEKLD=yes >> ${CONFIG_INT}
52 .if !defined(WITHOUT_CRYPT)
53 echo ENCRYPTED_PASSWD=yes >> ${CONFIG_INT}
55 .if defined(SMP_SUPPORT) || defined(SMP)
56 echo SMP=yes >> ${CONFIG_INT}
61 .if defined(COMPLETEBUILD) || (${BUILDKLD} == yes && !exists(${SYSDIR}/netsmb/smb.h))
62 SUBDIR+= kernel/modules
67 SUBDIR+= mount_smbfs smbutil
69 install-src install-lib deinstall-lib deinstall-src:
70 cd kernel && make ${.TARGET}
71 cd lib && make ${.TARGET}
75 @-( if [ `mount -t devfs | wc -l` = 0 ]; then \
76 cd /dev && && rm -f nsmb* && mknod nsmb0 c 144 0; \
78 echo This operation is not required with devfs; \
82 cleandepend deinstall: _SUBDIRUSE
87 .include <bsd.subdir.mk>