Home | History | Annotate | Line # | Download | only in make
Makefile revision 1.46
      1 #	$NetBSD: Makefile,v 1.46 2009/01/24 11:59:39 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+=  make_malloc.c
      9 SRCS+=	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
     14 SRCS += lstPrev.c
     15 
     16 .PATH:	${.CURDIR}/lst.lib
     17 WARNS=4
     18 .if make(install)
     19 SUBDIR=	PSD.doc
     20 .endif
     21 .if make(obj) || make(clean)
     22 SUBDIR+= unit-tests
     23 .endif
     24 
     25 .include <bsd.prog.mk>
     26 .include <bsd.subdir.mk>
     27 
     28 # provide a clue as to what we are using
     29 BUILD_DATE!= date +%Y%m%d
     30 MAKE_VERSION:= netbsd-${BUILD_DATE}
     31 CPPFLAGS_main.o:= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
     32 CPPFLAGS+= ${CPPFLAGS_${.TARGET}} -DMAKE_NATIVE
     33 main.o:	${OBJS:Nmain.o} ${MAKEFILE}
     34 COPTS.var.c+= -Wno-cast-qual
     35 
     36 .ifdef TOOLDIR
     37 # this is a native netbsd build, 
     38 # use libutil rather than the local emalloc etc.
     39 CPPFLAGS+= -DUSE_EMALLOC
     40 LDADD+=-lutil
     41 DPADD+=${LIBUTIL}
     42 .endif
     43 
     44 # A simple unit-test driver to help catch regressions
     45 accept test:
     46 	cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
     47