#
# Mach Operating System
# Copyright (c) 1993,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.6  93/04/14  11:47:42  mrt
# 	Updated for ODE make.
# 	[92/08/20            mrt]
# 
# Revision 2.2  92/01/22  23:17:27  rpd
# 	Created.
# 	[92/01/17            rpd]
# 


DEPENDENCIES 	=
LIBRARIES 	= libnetmemory.a
EXPLIB_TARGETS	= export_libnetmemory.a
EXPDIR		= /lib/
IDIR		= /lib/
ILIST		= libnetmemory.a netmemory.0 netmemory.3

# Ar truncates the file  names
LIB_LONG_NAMES	=

netmemory.3_IDIR = /man/man3/
netmemory.0_IDIR = /man/cat3/

# routines from netmemory.defs

NETMEMORY_ROUTINES = netmemory_create netmemory_destroy netmemory_cache

# mig files

NETMEMORY_USER_SRCS = ${NETMEMORY_ROUTINES:S/$/.c/g}
NETMEMORY_SRCS 	= ${NETMEMORY_USER_SRCS} netmemory_server.c
MIG_HDRS	= netmemory.h

OFILES = netmemory_server.o ${NETMEMORY_ROUTINES:S/$/.o/g}

MANSECTION	= 3
MANPAGES 	= netmemory

.include <${RULES_MK}>


# mig rules to generate intermediate source files in the object directory
# Make all the mig targets depend on a single "timestamp" source. Othewise
# the mig rule gets run once for each target.

${NETMEMORY_SRCS} : netmemory_stamp
netmemory_stamp:   netmemory.defs
	${MIG} ${_MIGFLAGS_} -i ./ -user '${NETMEMORY_USER_SRCS}' \
		-server netmemory_server.c  ${netmemory.defs:P} && \
	touch netmemory_stamp
