################################################################################
#	Makefile for BIdl tests
#			T.Barnaby,	BEAM Ltd,	9/5/03
#				updated by	D.Korchagin,	CERN AB-BI-SW,	2007-08-31
################################################################################
#

TOP	= ../../..

include $(TOP)/Makefile.config

#BIDL		= $(BINDIR)/bidl
BIDL		= ../bidl

%D.cc %D.h: %.idl
	$(BIDL) -m bdata $<

%C.cc %C.h: %.idl
	$(BIDL) $< 
    
%S.cc %S.h: %.idl

all:	client server

install:	all

clean:
	rm -f *.$(CPU).o client server bidl.i Test[SCD].* 

#depend:
#	makedepend $(DFLAGS) *.cpp *.cc 2> /dev/null

# Produce files
client: TestC.$(CPU).o TestD.$(CPU).o client.$(CPU).o
server: TestS.$(CPU).o TestD.$(CPU).o server.$(CPU).o

client.$(CPU).o:	TestD.h TestC.h
server.$(CPU).o:	TestD.h TestS.h

# DO NOT DELETE

client.$(CPU).o: ../../../include/Beam/BString.h ../../../include/Beam/BRefData.h
client.$(CPU).o: ../../../include/Beam/BList.h ../../../include/Beam/BList_func.h
server.$(CPU).o: ../../../include/Beam/BString.h ../../../include/Beam/BRefData.h
server.$(CPU).o: ../../../include/Beam/BList.h ../../../include/Beam/BList_func.h
