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