1 # $NetBSD: Makefile,v 1.48 2009/03/24 13:54:37 perry Exp $
2 # @(#)Makefile 5.2 (Berkeley) 12/28/90
5 SRCS
= arch.c buf.c compat.c cond.c
dir.c for.c hash.c job.c main.c \
6 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 \
10 lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
11 lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.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
16 .PATH
: ${.CURDIR
}/lst.lib
20 .if make
(obj
) || make
(clean)
24 .
include <bsd.prog.mk
>
25 .
include <bsd.subdir.mk
>
27 CPPFLAGS
+= -DMAKE_NATIVE
28 COPTS.var.c
+= -Wno-cast-qual
31 # this is a native netbsd build,
32 # use libutil rather than the local emalloc etc.
33 CPPFLAGS
+= -DUSE_EMALLOC
38 # A simple unit-test driver to help catch regressions
40 cd
${.CURDIR
}/unit-tests
&& ${.MAKE
:S
,^.
/,${.CURDIR
}/,} TEST_MAKE
=${TEST_MAKE
:U
${.OBJDIR
}/${PROG
:T
}} ${.TARGET
}