BASEDIR = $(MAKEDIR)
DIRS    = $(BASEDIR)\src \
          $(BASEDIR)\extensions\cdevGenericServer \
		  $(BASEDIR)\applications\cdevGateway
BINDIRS = $(BASEDIR)\lib\WINNT-4.0-DEBUG \
          $(BASEDIR)\lib\WINNT-4.0 \
          $(BASEDIR)\bin\WINNT-4.0-DEBUG \
          $(BASEDIR)\bin\WINNT-4.0 \
		  $(BASEDIR)\extensions\cdevGenericServer\lib\WINNT-4.0-DEBUG \
		  $(BASEDIR)\extensions\cdevGenericServer\lib\WINNT-4.0 \
		  $(BASEDIR)\extensions\cdevGenericServer\bin\WINNT-4.0-DEBUG \
		  $(BASEDIR)\extensions\cdevGenericServer\bin\WINNT-4.0 \
          $(BASEDIR)\applications\cdevGateway\bin\WINNT-4.0-DEBUG \
          $(BASEDIR)\applications\cdevGateway\bin\WINNT-4.0
		  
notarget : all
 
all clean :
	@for %d in ($(DIRS)) do @if exist %d cd %d & $(MAKE) /NOLOGO $@ /f NMakefile.mak

purge :
	@for %d in ($(DIRS)) do @if exist %d cd %d & $(MAKE) /NOLOGO $@ /f NMakefile.mak
	@for %d in ($(BINDIRS)) do @if exist %d rmdir /s /q %d
	
