# Generated automatically from Makefile.in by configure.
# **********************************************************************
#
# Copyright (c) 1997
# Object-Oriented Concepts, Inc.
# Billerica, MA, USA
#
# All Rights Reserved
#
# **********************************************************************

SHELL		= /bin/sh



top_srcdir	= ../..

SERVER_NAME	= server
CLIENT_NAME	= client

TARGETS		= $(SERVER_NAME) \
		  $(CLIENT_NAME)

include $(top_srcdir)/config/Make.rules

INSTALL         = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA    = ${INSTALL} -m 644

COMMON_OBJS	= NamingExample.o

SERVER_OBJS	= NamingExample_skel.o \
		  Server.o

CLIENT_OBJS	= Client.o

SRCS		= $(COMMON_OBJS:.o=.cpp) \
		  $(SERVER_OBJS:.o=.cpp) \
		  $(CLIENT_OBJS:.o=.cpp)

ALL_CXXFLAGS	= $(CXXFLAGS)
ALL_CPPFLAGS	= $(CPPFLAGS) -I. \
		  -I$(top_srcdir)/include -I$(top_srcdir)/naming
ALL_LDFLAGS	= $(LDFLAGS)
ALL_DEFS	= $(DEFS)
ALL_LIBS	= $(OB_NAMING_LIBS) $(OB_LIBS) $(LIBS)

$(SERVER_NAME): $(COMMON_OBJS) $(SERVER_OBJS)
	rm -f $@
	$(CXX) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o $@ \
	$(COMMON_OBJS) $(SERVER_OBJS) $(ALL_LIBS)

$(CLIENT_NAME): $(COMMON_OBJS) $(CLIENT_OBJS)
	rm -f $@
	$(CXX) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o $@ \
	$(COMMON_OBJS) $(CLIENT_OBJS) $(ALL_LIBS)

NamingExample.cpp NamingExample.h: NamingExample.idl
	if test -x $(IDL) ; then \
	rm -f NamingExample.cpp NamingExample.h ; \
	rm -f NamingExample_skel.cpp NamingExample_skel.h ; \
	$(IDL) --no-type-codes NamingExample.idl ; \
	fi

clean::
	rm -f $(TARGETS)

include .depend
