Makefile revision 1.44
11.44Sjoerg# $NetBSD: Makefile,v 1.44 2008/10/06 22:09:21 joerg 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.1ScgdSRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \ 81.1Scgd lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \ 91.1Scgd lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \ 101.1Scgd lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \ 111.1Scgd lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c 121.40SdslSRCS += lstPrev.c 131.40Sdsl 141.14Sgwr.PATH: ${.CURDIR}/lst.lib 151.43SchristosWARNS=4 161.6Scgd.if make(install) 171.16SmycroftSUBDIR= PSD.doc 181.5Scgd.endif 191.29Ssjg.if make(obj) || make(clean) 201.29SsjgSUBDIR+= unit-tests 211.29Ssjg.endif 221.1Scgd 231.1Scgd.include <bsd.prog.mk> 241.16Smycroft.include <bsd.subdir.mk> 251.24Ssjg 261.24Ssjg# provide a clue as to what we are using 271.24SsjgBUILD_DATE!= date +%Y%m%d 281.24SsjgMAKE_VERSION:= netbsd-${BUILD_DATE} 291.24SsjgCPPFLAGS_main.o:= "-DMAKE_VERSION=\"${MAKE_VERSION}\"" 301.33SrossCPPFLAGS+= ${CPPFLAGS_${.TARGET}} -DMAKE_NATIVE 311.25Stvmain.o: ${OBJS:Nmain.o} ${MAKEFILE} 321.28SmrgCOPTS.var.c+= -Wno-cast-qual 331.29Ssjg 341.41Ssjg.ifdef TOOLDIR 351.41Ssjg# this is a native netbsd build, 361.41Ssjg# use libutil rather than the local emalloc etc. 371.44SjoergCPPFLAGS+= -DUSE_EMALLOC 381.37SchristosLDADD+=-lutil 391.37SchristosDPADD+=${LIBUTIL} 401.38Schristos.endif 411.37Schristos 421.29Ssjg# A simple unit-test driver to help catch regressions 431.29Ssjgaccept test: 441.31Ssjg cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} 45