2010-05-12 18:28:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.49 2009/04/14 22:15:23 lukem Exp $
|
|
|
|
# @(#)Makefile 5.2 (Berkeley) 12/28/90
|
|
|
|
|
|
|
|
PROG= make
|
|
|
|
SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
|
|
|
|
make.c parse.c str.c suff.c targ.c trace.c var.c util.c
|
|
|
|
SRCS+= strlist.c
|
|
|
|
SRCS+= make_malloc.c
|
|
|
|
SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
|
|
|
|
lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
|
|
|
|
lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
|
|
|
|
lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
|
|
|
|
lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
|
|
|
|
SRCS+= lstPrev.c
|
|
|
|
|
|
|
|
|
|
|
|
# For MINIX
|
|
|
|
CPPFLAGS+= -g -Wall -DHAVE_SETENV -DHAVE_STRERROR -DHAVE_STRDUP \
|
|
|
|
-DHAVE_STRFTIME -DHAVE_VSNPRINTF -DUSE_SELECT
|
|
|
|
MACHINE=${ARCH}
|
|
|
|
MACHINE_ARCH=${ARCH}
|
|
|
|
CPPFLAGS+= -DTARGET_MACHINE=\"${MACHINE}\" \
|
2010-02-16 15:41:33 +01:00
|
|
|
-DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \
|
|
|
|
-DMAKE_MACHINE=\"${MACHINE}\"
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
.PATH: ${.CURDIR}/lst.lib
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
# .if make(obj) || make(clean)
|
|
|
|
# SUBDIR+= unit-tests
|
|
|
|
# .endif
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
.include <minix.prog.mk>
|
|
|
|
.include <minix.subdir.mk>
|
2010-02-16 15:41:33 +01:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
# A simple unit-test driver to help catch regressions
|
|
|
|
accept test:
|
|
|
|
cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
|