# **********************************************************************
#
# Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

top_srcdir	= ../../..

TARGETS		= publisher.exe subscriber.exe

C_SRCS		= Publisher.cs
S_SRCS		= Subscriber.cs

SLICE_SRCS	= $(SDIR)/Clock.ice

SDIR		= .

GDIR		= generated

include $(top_srcdir)/config/Make.rules.cs

MCSFLAGS	:= $(MCSFLAGS) -target:exe

SLICE2CSFLAGS	:= $(SLICE2CSFLAGS) --ice -I. -I$(slicedir)

publisher.exe: $(C_SRCS) $(GEN_SRCS)
	$(MCS) $(MCSFLAGS) -out:$@ $(call ref,icecs) $(call ref,icestormcs) $(subst /,$(DSEP),$^)

subscriber.exe: $(S_SRCS) $(GEN_SRCS)
	$(MCS) $(MCSFLAGS) -out:$@ $(call ref,icecs) $(call ref,icestormcs) $(subst /,$(DSEP),$^)

clean::
	-rm -f db/*

include .depend
