# inference rules:

.cpp.obj :
	$(CC) -c $(CFLAGS) $(?:.obj=.cpp)

DIRT = $(GDIRT) $(LDIRT)
GDIRT = *.obj

all : $(SUBDIRS) $(TARGETS)

_FORCE = _force
$(_FORCE):

# Removes dirt (obj's etc but not targets)
clean : 
 	$(RM) -x -f $(DIRT)
	$(SH) -c "for i in $(SUBDIRS); do (cd $$i; nmake -nologo clean) ; done"


# Removes dirt + targets
clobber: clean
	$(RM) -x -f $(TARGETS) $(DIRT) 
	$(SH) -c "for i in $(SUBDIRS); do cd $$i; nmake -nologo clobber ; done"
