#
# MICO --- a free CORBA 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
#

DIR_PREFIX=../../../
include ../../../../MakeVars

ifeq ($(HAVE_FILTER), yes)


INSTALL_DIR     = boa/filter/examples/load
INSTALL_SRCS    = Makefile client.cc server.cc lb.cc printer.idl filter.config README
INSTALL_SCRIPTS = runload regfilter regserver runclient runfconf runmicod

IFACE_NAME = Printer

all: .depend client server lb

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

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

lb: load.h load.o printer.o lb.o $(DEPS)
	$(LD) $(CXXFLAGS) $(LDFLAGS) load.o printer.o lb.o $(LDLIBS) -o $@

printer.h printer.cc : printer.idl $(IDLGEN)
	$(IDL) --no-poa --boa printer.idl

load.h load.cc : load.idl $(IDLGEN)
	$(IDL) --no-poa --boa load.idl
	$(FGEN) load.h $(IFACE_NAME)Filter

load.idl : printer.idl
	$(FIDLGEN) printer.idl -f load.idl

clean:
	rm -f printer.cc printer.h load.* *.o core client server lb *~ .depend


else


all:

clean:


endif

