
CC=@CXX@
FLAGS=@CXXFLAGS@ -D_REENTRANT -pthread

ACE_INCLUDE=@ace_includes@
ACE_LIB=@ace_lib@
XERCES_INCLUDE=@xerces_includes@
XERCES_LIB=@xerces_lib@

all: DBThreadPool.o DBThreadCtlMO.o

DBThreadWorker.o: DBThreadWorker.cc DBThreadWorker.hh
	$(CC) $(FLAGS) $(ACE_INCLUDE) -c DBThreadWorker.cc

DBThreadPool.o: DBThreadPool.cc DBThreadPool.hh
	$(CC) $(FLAGS) $(ACE_INCLUDE) -c DBThreadPool.cc

DBThreadCtlMO.o: DBThreadCtlMO.cc DBThreadCtlMO.hh
	$(CC) $(FLAGS) $(ACE_INCLUDE) -c DBThreadCtlMO.cc

ThreadPoolMemTest: ThreadPoolMemTest.cc DBThreadCtlMO.o DBThreadPool.o
	$(CC) $(FLAGS) $(ACE_INCLUDE) -o ThreadPoolMemTest ThreadPoolMemTest.cc DBThreadPool.o DBThreadCtlMO.o $(ACE_LIB)
clean:
	rm -f *.o core ThreadPoolMemTest
mrproper:
	rm -f *.o core *~ ThreadPoolMemTest Makefile
