Module Name:    src
Committed By:   pooka
Date:           Fri Sep  4 18:25:56 UTC 2009

Modified Files:
        src/sbin/mount_smbfs: Makefile
Added Files:
        src/sbin/mount_smbfs: Makefile.inc

Log Message:
Provide Makefile.inc which contains source module names and paths.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sbin/mount_smbfs/Makefile
cvs rdiff -u -r0 -r1.1 src/sbin/mount_smbfs/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/mount_smbfs/Makefile
diff -u src/sbin/mount_smbfs/Makefile:1.7 src/sbin/mount_smbfs/Makefile:1.8
--- src/sbin/mount_smbfs/Makefile:1.7	Thu Sep  3 12:04:50 2009
+++ src/sbin/mount_smbfs/Makefile	Fri Sep  4 18:25:56 2009
@@ -1,23 +1,12 @@
-#	$NetBSD: Makefile,v 1.7 2009/09/03 12:04:50 pooka Exp $
+#	$NetBSD: Makefile,v 1.8 2009/09/04 18:25:56 pooka Exp $
 
 WARNS?=	3	# XXX: sign-compare issues
 
 .include <bsd.own.mk>
 
 PROG=	mount_smbfs
-SRCS=	mount_smbfs.c
-SRCS+=	rcfile.c ctx.c cfopt.c subr.c nls.c rap.c mbuf.c rq.c file.c \
-	print.c kiconv.c nb.c nb_name.c nb_net.c nbns_rq.c
 MAN=	mount_smbfs.8
-
-SMBDIST=${NETBSDSRCDIR}/dist/smbfs
-
-CPPFLAGS+= -I${SMBDIST}/include
-
-.PATH:	${SMBDIST}/mount_smbfs ${SMBDIST}/lib/smb
-
-DPADD+=${LIBUTIL}
-LDADD+=-lutil
+SRCS=	mount_smbfs.c
 
 .if ${MKSHARE} != "no"
 .PATH:	${SMBDIST}/examples
@@ -25,10 +14,6 @@
 FILES=		dot.nsmbrc
 .endif
 
-.include <bsd.prog.mk>
+.include "Makefile.inc"
 
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
-.for f in ctx mbuf nb_name nbns_rq
-COPTS.${f}.c+=       -Wno-pointer-sign
-.endfor
-.endif
+.include <bsd.prog.mk>

Added files:

Index: src/sbin/mount_smbfs/Makefile.inc
diff -u /dev/null src/sbin/mount_smbfs/Makefile.inc:1.1
--- /dev/null	Fri Sep  4 18:25:56 2009
+++ src/sbin/mount_smbfs/Makefile.inc	Fri Sep  4 18:25:56 2009
@@ -0,0 +1,20 @@
+#	$NetBSD: Makefile.inc,v 1.1 2009/09/04 18:25:56 pooka Exp $
+#
+
+SRCS+=	rcfile.c ctx.c cfopt.c subr.c nls.c rap.c mbuf.c rq.c file.c \
+	print.c kiconv.c nb.c nb_name.c nb_net.c nbns_rq.c
+
+SMBDIST=${NETBSDSRCDIR}/dist/smbfs
+
+CPPFLAGS+= -I${SMBDIST}/include -I${SMBDIST}/mount_smbfs
+
+.PATH:	${SMBDIST}/mount_smbfs ${SMBDIST}/lib/smb
+
+DPADD+=${LIBUTIL}
+LDADD+=-lutil
+
+.if ${HAVE_GCC} == 4
+.for f in ctx mbuf nb_name nbns_rq
+COPTS.${f}.c+=       -Wno-pointer-sign
+.endfor
+.endif

Reply via email to