Cross Reference: Makefile
xref: /src/usr.bin/make/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/usr.bin/make/
Makefile revision 1.47
1#	$NetBSD: Makefile,v 1.47 2009/03/20 20:48:00 perry Exp $
2#	@(#)Makefile	5.2 (Berkeley) 12/28/90
3
4PROG=	make
5SRCS=	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 
7SRCS+=  strlist.c
8SRCS+=  make_malloc.c
9SRCS+=	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
14SRCS += lstPrev.c
15
16.PATH:	${.CURDIR}/lst.lib
17WARNS=4
18.if make(install)
19SUBDIR=	PSD.doc
20.endif
21.if make(obj) || make(clean)
22SUBDIR+= unit-tests
23.endif
24
25.include <bsd.prog.mk>
26.include <bsd.subdir.mk>
27
28CPPFLAGS+= -DMAKE_NATIVE
29# XXX is this special rule for main.o actually needed?
30main.o:	${OBJS:Nmain.o} ${MAKEFILE}
31COPTS.var.c+= -Wno-cast-qual
32
33.ifdef TOOLDIR
34# this is a native netbsd build, 
35# use libutil rather than the local emalloc etc.
36CPPFLAGS+= -DUSE_EMALLOC
37LDADD+=-lutil
38DPADD+=${LIBUTIL}
39.endif
40
41# A simple unit-test driver to help catch regressions
42accept test:
43	cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
44

Indexes created Sun Dec 21 23:09:34 GMT 2025