Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount_smbfs Provide Makefile.inc which contains source ...



details:   https://anonhg.NetBSD.org/src/rev/c76dded7b341
branches:  trunk
changeset: 747173:c76dded7b341
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Sep 04 18:25:56 2009 +0000

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

diffstat:

 sbin/mount_smbfs/Makefile     |  23 ++++-------------------
 sbin/mount_smbfs/Makefile.inc |  20 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 19 deletions(-)

diffs (66 lines):

diff -r a1296449d3f4 -r c76dded7b341 sbin/mount_smbfs/Makefile
--- a/sbin/mount_smbfs/Makefile Fri Sep 04 18:22:37 2009 +0000
+++ b/sbin/mount_smbfs/Makefile Fri Sep 04 18:25:56 2009 +0000
@@ -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
+MAN=   mount_smbfs.8
 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
 
 .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>
diff -r a1296449d3f4 -r c76dded7b341 sbin/mount_smbfs/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/mount_smbfs/Makefile.inc     Fri Sep 04 18:25:56 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index