#
# 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.2  92/04/08  23:27:48  rpd
# 	Created.
# 	[92/02/21            jtp]
# 

include ${MAKETOP}Makefile-common

# routines from env_mgr.defs

ENVMGR_ROUTINES = env_set_string env_get_string env_del_string env_set_port \
	env_get_port env_del_port env_list_strings env_list_ports \
	env_set_stlist env_set_ptlist env_copy_conn env_new_conn \
	env_restrict_conn env_disconnect

# mig rules

ENVMGR_USER_SRCS = ${ENVMGR_ROUTINES/.*/&.c}
ENVMGR_SRCS = env_mgr.h ${ENVMGR_USER_SRCS} envmgr_server.c

${ENVMGR_SRCS} : env_mgr.defs
	${MIG} ${MIGFLAGS} -i ./ -user '$${ENVMGR_USER_SRCS}' -server envmgr_server.c env_mgr.defs

# use Makefile-lib for most of the rules

LIBRARY = libenv.a

OBJECTS = envmgr_server.o ${ENVMGR_ROUTINES/.*/&.o}

include ${MAKETOP}Makefile-lib
-include Makedep
