# File     : makefile
# Function : makefile for CppUnit with Borland C++
# Author   : ahiru (http://www3.to/ahirus)
# $Date: 2002/04/17 05:09:02 $
# $Revision: 1.3 $

## BC++ install dir.
BCB=c:\bcc55
## directory settings
ROOT=..
#ROOT=c:\dev\cppunit-1.9.4
SRCDIR=$(ROOT)\src\cppunit

## target
TOOL=mksrclist.exe

## directory settings
SRCDIR=..\src\cppunit
CURRENT=cppunit_cur.mak
CPPUNITMAKE=cppunit.mak

all: tool cppunit

tool: $(TOOL)

$(CURRENT): 
	$(TOOL) $(SRCDIR)\*.cpp > $<

cppunit: $(CURRENT)
	-make -f $(CPPUNITMAKE) BCB="$(BCB)" ROOT="$(ROOT)"

debug:
	-make -f $(CPPUNITMAKE) debug

release:
	-make -f $(CPPUNITMAKE) release

debdll:
	-make -f $(CPPUNITMAKE) debdll

reldll:
	-make -f $(CPPUNITMAKE) reldll

cleantool:
	-del mksrclist.obj mksrclist.exe

cleandll:
	-make -f $(CPPUNITMAKE) cleandll

cleanlib:
	-make -f $(CPPUNITMAKE) cleanlib

clean:
	-make -f $(CPPUNITMAKE) clean

