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

This commit is contained in:
pooka 2009-09-04 18:25:56 +00:00
parent 4f4e18947d
commit 573d907442
2 changed files with 24 additions and 19 deletions

View File

@ -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 WARNS?= 3 # XXX: sign-compare issues
.include <bsd.own.mk> .include <bsd.own.mk>
PROG= mount_smbfs 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 MAN= mount_smbfs.8
SRCS= mount_smbfs.c
SMBDIST=${NETBSDSRCDIR}/dist/smbfs
CPPFLAGS+= -I${SMBDIST}/include
.PATH: ${SMBDIST}/mount_smbfs ${SMBDIST}/lib/smb
DPADD+=${LIBUTIL}
LDADD+=-lutil
.if ${MKSHARE} != "no" .if ${MKSHARE} != "no"
.PATH: ${SMBDIST}/examples .PATH: ${SMBDIST}/examples
@ -25,10 +14,6 @@ FILESDIR= /usr/share/examples/smbfs
FILES= dot.nsmbrc FILES= dot.nsmbrc
.endif .endif
.include <bsd.prog.mk> .include "Makefile.inc"
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) .include <bsd.prog.mk>
.for f in ctx mbuf nb_name nbns_rq
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif

View File

@ -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