Home | History | Annotate | Line # | Download | only in make
Makefile revision 1.45
      1 #	$NetBSD: Makefile,v 1.45 2008/12/20 22:41:53 dsl Exp $
      2 #	@(#)Makefile	5.2 (Berkeley) 12/28/90
      3 
      4 PROG=	make
      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 
      7 SRCS+=  strlist.c
      8 SRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
      9 	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
     10 	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
     11 	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
     12 	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
     13 SRCS += lstPrev.c
     14 
     15 .PATH:	${.CURDIR}/lst.lib
     16 WARNS=4
     17 .if make(install)
     18 SUBDIR=	PSD.doc
     19 .endif
     20 .if make(obj) || make(clean)
     21 SUBDIR+= unit-tests
     22 .endif
     23 
     24 .include <bsd.prog.mk>
     25 .include <bsd.subdir.mk>
     26 
     27 # provide a clue as to what we are using
     28 BUILD_DATE!= date +%Y%m%d
     29 MAKE_VERSION:= netbsd-${BUILD_DATE}
     30 CPPFLAGS_main.o:= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
     31 CPPFLAGS+= ${CPPFLAGS_${.TARGET}} -DMAKE_NATIVE
     32 main.o:	${OBJS:Nmain.o} ${MAKEFILE}
     33 COPTS.var.c+= -Wno-cast-qual
     34 
     35 .ifdef TOOLDIR
     36 # this is a native netbsd build, 
     37 # use libutil rather than the local emalloc etc.
     38 CPPFLAGS+= -DUSE_EMALLOC
     39 LDADD+=-lutil
     40 DPADD+=${LIBUTIL}
     41 .endif
     42 
     43 # A simple unit-test driver to help catch regressions
     44 accept test:
     45 	cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
     46