#
# Mach Operating System
# Copyright (c) 1991,1990 Carnegie Mellon University
# All Rights Reserved.
# 
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright
# notice and this permission notice appear in all copies of the
# software, derivative works or modified versions, and any portions
# thereof, and that both notices appear in supporting documentation.
# 
# CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
# CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
# ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
# 
# Carnegie Mellon requests users of this software to return to
# 
#  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
#  School of Computer Science
#  Carnegie Mellon University
#  Pittsburgh PA 15213-3890
# 
# any improvements or extensions that they make and grant Carnegie the
# rights to redistribute these changes.
#
#
# HISTORY
# $Log:	Makefile,v $
# Revision 2.7  92/03/05  22:47:48  rpd
# 	Changed to use Makefile-man.
# 	[92/02/29            rpd]
# 
# Revision 2.6  92/01/22  22:51:34  rpd
# 	Revised for new Makefile organization.
# 	[92/01/17            rpd]
# 

include ${MAKETOP}Makefile-common

# Find libmach.a along LPATH, so that we can extract from it.  mach3
# links directly with mach_msg.o and mach_msg_trap.o, instead of with
# libmach.a, because we don't want mach_init() to be called.  This is
# because mach3 must execute under both Mach 3.0 and Mach 2.5.

VPATH=.:${LPATH}

mach_msg.o mach_msg_trap.o : libmach.a
	ar x libmach.a $@

PROGRAM = mach3
MAN1PAGES = mach3

OBJECTS = mach3.o mach_msg.o mach_msg_trap.o

include ${MAKETOP}Makefile-bin
include ${MAKETOP}Makefile-man
-include Makedep
