#
# MICO --- a CORBA 2.0 implementation
# Copyright (C) 1997 Kay Roemer & Arno Puder
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Send comments and/or bug reports to:
#                mico@informatik.uni-frankfurt.de
#

all: .depend client server

include MakeVars

CXXFLAGS  := $(COS_CXXFLAGS) $(CXXFLAGS)
LDLIBS    := $(COS_LDLIBS) $(LDLIBS)
LDFLAGS   := $(COS_LDFLAGS) $(LDFLAGS)
DEPS      := $(COS_DEPS) $(DEPS)

INSTALL_DIR     = naming
INSTALL_SRCS    = Makefile btrip.idl client.cc server.cc
INSTALL_SCRIPTS = btrip_test

client: btrip.h btrip.o client.o $(DEPS)
	$(LD) $(CXXFLAGS) $(LDFLAGS) btrip.o client.o $(LDLIBS) -o $@

clnt: btrip.h btrip.o clnt.o $(DEPS)
	$(LD) $(CXXFLAGS) $(LDFLAGS) btrip.o clnt.o $(LDLIBS) -o $@

server: btrip.h btrip.o server.o $(DEPS)
	$(LD) $(CXXFLAGS) $(LDFLAGS) btrip.o server.o $(LDLIBS) -o $@

srvr: btrip.h btrip.o srvr.o $(DEPS)
	$(LD) $(CXXFLAGS) $(LDFLAGS) btrip.o srvr.o $(LDLIBS) -o $@

btrip.h btrip.cc : btrip.idl $(IDLGEN)
	$(IDL) btrip.idl

clean:
	rm -f .depend btrip.cc btrip.h *.o core client server clnt srvr *~
