Makefile revision 1.47
11.47Sperry#	$NetBSD: Makefile,v 1.47 2009/03/20 20:48:00 perry Exp $
21.8Schristos#	@(#)Makefile	5.2 (Berkeley) 12/28/90
31.1Scgd
41.1ScgdPROG=	make
51.4ScgdSRCS=	arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
61.22Ssommerfe	make.c parse.c str.c suff.c targ.c trace.c var.c util.c 
71.45SdslSRCS+=  strlist.c
81.46SdslSRCS+=  make_malloc.c
91.1ScgdSRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
101.1Scgd	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
111.1Scgd	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
121.1Scgd	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
131.1Scgd	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
141.40SdslSRCS += lstPrev.c
151.40Sdsl
161.14Sgwr.PATH:	${.CURDIR}/lst.lib
171.43SchristosWARNS=4
181.6Scgd.if make(install)
191.16SmycroftSUBDIR=	PSD.doc
201.5Scgd.endif
211.29Ssjg.if make(obj) || make(clean)
221.29SsjgSUBDIR+= unit-tests
231.29Ssjg.endif
241.1Scgd
251.1Scgd.include <bsd.prog.mk>
261.16Smycroft.include <bsd.subdir.mk>
271.24Ssjg
281.47SperryCPPFLAGS+= -DMAKE_NATIVE
291.47Sperry# XXX is this special rule for main.o actually needed?
301.25Stvmain.o:	${OBJS:Nmain.o} ${MAKEFILE}
311.28SmrgCOPTS.var.c+= -Wno-cast-qual
321.29Ssjg
331.41Ssjg.ifdef TOOLDIR
341.41Ssjg# this is a native netbsd build, 
351.41Ssjg# use libutil rather than the local emalloc etc.
361.44SjoergCPPFLAGS+= -DUSE_EMALLOC
371.37SchristosLDADD+=-lutil
381.37SchristosDPADD+=${LIBUTIL}
391.38Schristos.endif
401.37Schristos
411.29Ssjg# A simple unit-test driver to help catch regressions
421.29Ssjgaccept test:
431.31Ssjg	cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
44