#
# Mach Operating System
# Copyright (c) 1992 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 "AS IS"
# 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 Mellon
# the rights to redistribute these changes.
#  
#
# HISTORY
# $Log:	Makefile,v $
# Revision 2.5  92/03/05  22:50:18  rpd
# 	Added Makefile-man.
# 	[92/02/29            rpd]
# 
# Revision 2.4  92/02/15  19:42:41  rpd
# 	Moved include file installation to user/include/Makefile.
# 	[92/02/15            rpd]
# 
# Revision 2.3  92/01/24  18:11:44  rpd
# 	Fixed to include Makefile-servers before Makefile-lib.
# 	[92/01/24            rpd]
# 
# Revision 2.2  92/01/22  23:17:27  rpd
# 	Created.
# 	[92/01/17            rpd]
# 

include ${MAKETOP}Makefile-common

# routines from netmemory.defs

NETMEMORY_ROUTINES = netmemory_create netmemory_destroy netmemory_cache

# mig rules

NETMEMORY_USER_SRCS = ${NETMEMORY_ROUTINES/.*/&.c}
NETMEMORY_SRCS = netmemory.h ${NETMEMORY_USER_SRCS} netmemory_server.c

${NETMEMORY_SRCS} : netmemory.defs
	${MIG} ${MIGFLAGS} -i ./ -user '$${NETMEMORY_USER_SRCS}' -server netmemory_server.c netmemory.defs

# use Makefile-lib and Makefile-man for most of the rules

LIBRARY = libnetmemory.a

OBJECTS = netmemory_server.o ${NETMEMORY_ROUTINES/.*/&.o}

MAN3PAGES = netmemory

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