############################################################################
# RCS INFORMATION:
#
# 	$RCSfile: common.mem.Makefile,v $
# 	$Author: jyelon $	$Locker:  $		$State: Exp $
#	$Revision: 1.3 $	$Date: 1995/05/04 18:20:16 $
#
############################################################################
# DESCRIPTION:
#
############################################################################
# REVISION HISTORY:
#
# $Log: common.mem.Makefile,v $
# Revision 1.3  1995/05/04  18:20:16  jyelon
# *** empty log message ***
#
# Revision 1.2  1995/04/02  00:46:48  sanjeev
# changes for separating Converse
#
# Revision 1.1  1994/11/07  16:07:53  brunner
# Initial revision
#
############################################################################
include ../path.mk
include ../machine.mk
include ../trace.mk

INCLUDES 			= -I. -I$(HEADERS)

MEMDIR  		= $(COMMON_MEM)

DEPEND             = $(HEADERS)/chare.h  $(MACHINE)/machine.h $(HEADERS)/const.h $(HEADERS)/msg_macros.h $(HEADERS)/prio_macros.h $(HEADERS)/env_macros.h $(COMMON_MEM)/mem.h $(HEADERS)/sys_macros.h $(HEADERS)/communication.h 

all: 		n_mem_table.$(SUF) n_mem_unix.$(SUF) n_mem_leak.$(SUF)

n_mem_table.$(SUF):	$(MEMDIR)/mem_table.c $(MEMDIR)/mem_common.c $(DEPEND)
			rm -f n_mem_table.$(SUF)
			$(NODE_CC)  $(MEMDIR)/mem_table.c
			$(NODE_CC)  $(MEMDIR)/mem_common.c
			$(NODE_LD) n_mem_table.$(SUF) mem_table.$(SUF) mem_common.$(SUF) $(NODE_LDFLAGS)
			chmod o+rx n_mem_table.$(SUF)

n_mem_unix.$(SUF): 	$(MEMDIR)/mem_unix.c $(MEMDIR)/mem_common.c $(DEPEND)
			rm -f n_mem_unix.$(SUF)
			$(NODE_CC)  $(MEMDIR)/mem_unix.c
			$(NODE_CC)  $(MEMDIR)/mem_common.c
			$(NODE_LD) n_mem_unix.$(SUF) mem_unix.$(SUF) mem_common.$(SUF) $(NODE_LDFLAGS)
			chmod o+rx n_mem_unix.$(SUF)

n_mem_leak.$(SUF): 	$(MEMDIR)/mem_leak.c $(MEMDIR)/mem_common.c $(DEPEND)
			rm -f n_mem_leak.$(SUF)
			$(NODE_CC)  $(MEMDIR)/mem_leak.c
			$(NODE_CC)  $(MEMDIR)/mem_common.c
			$(NODE_LD) n_mem_leak.$(SUF) mem_leak.$(SUF) mem_common.$(SUF) $(NODE_LDFLAGS)
			chmod o+rx n_mem_leak.$(SUF)
