Home | History | Annotate | Line # | Download | only in make
Makefile revision 1.55.2.1
      1  1.55.2.1      yamt #	$NetBSD: Makefile,v 1.55.2.1 2012/10/30 19:00:20 yamt 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.45       dsl SRCS+=  strlist.c
      8      1.46       dsl SRCS+=  make_malloc.c
      9       1.1       cgd SRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
     10       1.1       cgd 	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
     11       1.1       cgd 	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
     12       1.1       cgd 	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
     13       1.1       cgd 	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
     14      1.40       dsl SRCS += lstPrev.c
     15      1.40       dsl 
     16      1.51       sjg # let people experiment for a bit
     17      1.51       sjg USE_META ?= no
     18      1.51       sjg .if ${USE_META:tl} != "no"
     19      1.51       sjg SRCS+=	meta.c
     20      1.51       sjg CPPFLAGS+= -DUSE_META
     21      1.51       sjg FILEMON_H ?= ${.CURDIR:H:H}/sys/dev/filemon/filemon.h
     22      1.51       sjg .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
     23      1.51       sjg COPTS.meta.c += -DHAVE_FILEMON_H -I${FILEMON_H:H}
     24      1.51       sjg .endif
     25      1.51       sjg .endif
     26      1.51       sjg 
     27      1.14       gwr .PATH:	${.CURDIR}/lst.lib
     28       1.6       cgd .if make(install)
     29      1.16   mycroft SUBDIR=	PSD.doc
     30       1.5       cgd .endif
     31      1.29       sjg .if make(obj) || make(clean)
     32      1.29       sjg SUBDIR+= unit-tests
     33      1.29       sjg .endif
     34       1.1       cgd 
     35       1.1       cgd .include <bsd.prog.mk>
     36      1.16   mycroft .include <bsd.subdir.mk>
     37      1.24       sjg 
     38      1.47     perry CPPFLAGS+= -DMAKE_NATIVE
     39      1.55  christos COPTS.var.c += -Wno-cast-qual
     40      1.55  christos COPTS.job.c += -Wno-format-nonliteral
     41      1.55  christos COPTS.parse.c += -Wno-format-nonliteral
     42      1.55  christos COPTS.var.c += -Wno-format-nonliteral
     43      1.29       sjg 
     44      1.41       sjg .ifdef TOOLDIR
     45      1.41       sjg # this is a native netbsd build, 
     46      1.41       sjg # use libutil rather than the local emalloc etc.
     47      1.44     joerg CPPFLAGS+= -DUSE_EMALLOC
     48      1.37  christos LDADD+=-lutil
     49      1.37  christos DPADD+=${LIBUTIL}
     50      1.38  christos .endif
     51      1.37  christos 
     52      1.29       sjg # A simple unit-test driver to help catch regressions
     53      1.29       sjg accept test:
     54  1.55.2.1      yamt 	cd ${.CURDIR}/unit-tests && MAKEFLAGS= ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
     55