Home | History | Annotate | Line # | Download | only in make
Makefile revision 1.40
      1  1.40       dsl #	$NetBSD: Makefile,v 1.40 2006/10/25 20:05:59 dsl Exp $
      2   1.8  christos #	@(#)Makefile	5.2 (Berkeley) 12/28/90
      3   1.1       cgd 
      4   1.1       cgd PROG=	make
      5   1.4       cgd SRCS=	arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
      6  1.22  sommerfe 	make.c parse.c str.c suff.c targ.c trace.c var.c util.c 
      7   1.1       cgd SRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
      8   1.1       cgd 	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
      9   1.1       cgd 	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
     10   1.1       cgd 	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
     11   1.1       cgd 	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
     12  1.40       dsl SRCS += lstPrev.c
     13  1.40       dsl 
     14  1.14       gwr .PATH:	${.CURDIR}/lst.lib
     15  1.27  christos WARNS=3
     16   1.6       cgd .if make(install)
     17  1.16   mycroft SUBDIR=	PSD.doc
     18   1.5       cgd .endif
     19  1.29       sjg .if make(obj) || make(clean)
     20  1.29       sjg SUBDIR+= unit-tests
     21  1.29       sjg .endif
     22  1.34  christos CFLAGS+=-g
     23   1.1       cgd 
     24   1.1       cgd .include <bsd.prog.mk>
     25  1.16   mycroft .include <bsd.subdir.mk>
     26  1.24       sjg 
     27  1.24       sjg # provide a clue as to what we are using
     28  1.24       sjg BUILD_DATE!= date +%Y%m%d
     29  1.24       sjg MAKE_VERSION:= netbsd-${BUILD_DATE}
     30  1.24       sjg CPPFLAGS_main.o:= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
     31  1.33      ross CPPFLAGS+= ${CPPFLAGS_${.TARGET}} -DMAKE_NATIVE
     32  1.25        tv main.o:	${OBJS:Nmain.o} ${MAKEFILE}
     33  1.28       mrg COPTS.var.c+= -Wno-cast-qual
     34  1.29       sjg 
     35  1.38  christos .ifndef HOSTPROG
     36  1.37  christos LDADD+=-lutil
     37  1.37  christos DPADD+=${LIBUTIL}
     38  1.38  christos .endif
     39  1.37  christos 
     40  1.29       sjg # A simple unit-test driver to help catch regressions
     41  1.29       sjg accept test:
     42  1.31       sjg 	cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
     43