#
# 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.4  92/02/15  19:42:48  rpd
# 	Moved include file installation to user/include/Makefile.
# 	[92/02/15            rpd]
# 
# Revision 2.3  92/01/24  18:11:48  rpd
# 	Fixed to include Makefile-servers before Makefile-lib.
# 	[92/01/24            rpd]
# 
# Revision 2.2  92/01/22  23:12:57  rpd
# 	Created.
# 	[92/01/17            rpd]
# 

include ${MAKETOP}Makefile-common

# routines from netname.defs

NETNAME_ROUTINES = netname_check_in netname_look_up \
	netname_check_out netname_version

# mig rules

NETNAME_USER_SRCS = ${NETNAME_ROUTINES/.*/&.c}
NETNAME_SRCS = netname.h ${NETNAME_USER_SRCS} netname_server.c

${NETNAME_SRCS} : netname.defs
	${MIG} ${MIGFLAGS} -i ./ -user '$${NETNAME_USER_SRCS}' -server netname_server.c netname.defs

# use Makefile-lib for most of the rules

LIBRARY = libnetname.a

OBJECTS = netname_server.o ${NETNAME_ROUTINES/.*/&.o}

include ${MAKETOP}Makefile-lib
-include Makedep
