# File     : makefile
# Function : makefile for Borland C++ 5.5.1
# Author   : ahiru (http://www3.to/ahirus)
# $Date: 2002/08/21 01:03:09 $
# $Revision: 1.1 $
# usage: 
#    make                  fobOA[X̃rh
#    make -DOPT=clean      ԃt@C̍폜
#    make -DOPT=debug      fobOrh
#    make -DOPT=release    [Xrh

!ifndef OPT
OPT=all
!endif

## tool target
TOOL=mksrclist.exe

## directory settings
PROJECTS= \
		StdInParse \
		SEnumVal \
		SAXPrint \
		SAXCount \
		SAX2Print \
		SAX2Count \
		Redirect \
		PParse \
		MemParse \
		EnumVal \
		DOMPrint \
		DOMCount \
		CreateDOMDocument \


all: tool $(PROJECTS)

tool: $(TOOL)

$(PROJECTS):
	@if not exist $* (md $*)
	@if not exist $*\makefile (copy mkchild.mak $*\makefile)
	@if not exist $*\makeexe.mak (copy makeexe.mak $*)
	@cd $*
	make -DPROJECTS=$* $(OPT)
	@cd ..

cleantool:
	-del mksrclist.obj mksrclist.exe



