| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile.in,v 1.7 2008/03/11 17:20:05 joerg Exp $ | | 1 | # $NetBSD: Makefile.in,v 1.8 2008/04/26 22:06:27 tnn Exp $ |
2 | # @(#)Makefile 5.2 (Berkeley) 12/28/90 | | 2 | # @(#)Makefile 5.2 (Berkeley) 12/28/90 |
3 | | | 3 | |
4 | # $Id: Makefile.in,v 1.7 2008/03/11 17:20:05 joerg Exp $ | | 4 | # $Id: Makefile.in,v 1.8 2008/04/26 22:06:27 tnn Exp $ |
5 | | | 5 | |
6 | PROG= bmake | | 6 | PROG= bmake |
7 | SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \ | | 7 | SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \ |
8 | make.c parse.c str.c suff.c targ.c trace.c var.c util.c | | 8 | make.c parse.c str.c suff.c targ.c trace.c var.c util.c |
9 | SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \ | | 9 | SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \ |
10 | lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \ | | 10 | lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \ |
11 | lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \ | | 11 | lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \ |
12 | lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \ | | 12 | lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \ |
13 | lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c | | 13 | lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c |
14 | SRCS += lstPrev.c | | 14 | SRCS += lstPrev.c |
15 | | | 15 | |
16 | .if !empty(LIBOBJS) | | 16 | .if !empty(LIBOBJS) |
17 | SRCS+= ${LIBOBJS:.o=.c} | | 17 | SRCS+= ${LIBOBJS:.o=.c} |
| @@ -123,14 +123,18 @@ install-mk: | | | @@ -123,14 +123,18 @@ install-mk: |
123 | @echo need to unpack mk.tar.gz under ${srcdir} or set MKSRC; false | | 123 | @echo need to unpack mk.tar.gz under ${srcdir} or set MKSRC; false |
124 | .endif | | 124 | .endif |
125 | | | 125 | |
126 | .ifdef TOOLDIR | | 126 | .ifdef TOOLDIR |
127 | # this is a native netbsd build, | | 127 | # this is a native netbsd build, |
128 | # use libutil rather than the local emalloc etc. | | 128 | # use libutil rather than the local emalloc etc. |
129 | CPPFLAGS+= -DHAVE_EMALLOC | | 129 | CPPFLAGS+= -DHAVE_EMALLOC |
130 | LDADD+=-lutil | | 130 | LDADD+=-lutil |
131 | DPADD+=${LIBUTIL} | | 131 | DPADD+=${LIBUTIL} |
132 | .endif | | 132 | .endif |
133 | | | 133 | |
134 | # A simple unit-test driver to help catch regressions | | 134 | # A simple unit-test driver to help catch regressions |
135 | accept test: | | 135 | accept test: |
| | | 136 | .if ${OS} != "SunOS" && ${OS} != "IRIX" |
136 | cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} | | 137 | cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} |
| | | 138 | .else |
| | | 139 | true |
| | | 140 | .endif |