#
# Distributed as part of the Mach Operating System
#
#
# @OSF_FREE_COPYRIGHT@
# 
# Copyright (c) 1990, 1991
# Open Software Foundation, Inc.
# 
# Permission is hereby granted to use, copy, modify and freely distribute
# the software in this file and its documentation for any purpose without
# fee, provided that the above copyright notice appears in all copies and
# that both the copyright notice and this permission notice appear in
# supporting documentation.  Further, provided that the name of Open
# Software Foundation, Inc. ("OSF") not be used in advertising or
# publicity pertaining to distribution of the software without prior
# written permission from OSF.  OSF makes no representations about the
# suitability of this software for any purpose.  It is provided "as is"
# without express or implied warranty.
#
#
# HISTORY
# $Log:	Makefile,v $
# Revision 2.2  92/05/20  20:12:09  mrt
# 	First checkin
# 	[92/05/20  16:28:41  mrt]
# 
#


VPATH=	${ARCHIVE_FORMAT}:lst.lib:porting

PROGRAMS		= make
MANPAGES		= make
MANSECTION		= 1

ILIST			= make make.${MANSECTION} make.0
IDIR			= /bin/
make.${MANSECTION}_IDIR	= /man/man${MANSECTION}/
make.0_IDIR		= /man/cat${MANSECTION}/

CFLAGS			+= -D_BSD -DMACHINE\=\"${MACHINE}\"
INCFLAGS		= -I. -Ilst.lib
.if defined(NO_UTIMES)
INCFLAGS		+= -Iporting
.endif
NEED_FOR_PORTING        = ${NO_FFS:Dffs.o:U} \
			  ${NO_GETCWD:Dgetcwd.o:U} \
			  ${NO_GETOPT:Dgetopt.o:U} \
                          ${NO_SETENV:Denvironment.o:U} \
			  ${NO_STRDUP:Dstrdup.o:U} \
			  ${NO_STRERRNO:Dstrerror.o:U} \
			  ${NO_WAITPID:Dwaitpid.o:U} 
			  
HFILES=	make.h
OFILES=	arch.o arch_fmtdep.o buf.o compat.o cond.o dir.o hash.o job.o \
	main.o make.o parse.o str.o suff.o targ.o var.o \
	lstAlloc.o lstAppend.o lstAtEnd.o lstAtFront.o lstClose.o lstConcat.o \
	lstDatum.o lstDeQueue.o lstDestroy.o lstDupl.o lstEnQueue.o \
	lstFind.o lstFindFrom.o lstFirst.o lstForEach.o lstForEachFrom.o \
	lstInit.o lstInsert.o lstIsAtEnd.o lstIsEmpty.o lstLast.o \
	lstMember.o lstNext.o lstOpen.o lstRemove.o lstReplace.o lstSucc.o \
	${NEED_FOR_PORTING}

.include <${RULES_MK}>
