DIRS		= rmxcomms rmxpipe rmxtcpip test

all: build

build debug clean:
	$(MAKE) $(MAKEFLAGS) TARGET=$* target

target:
	for %f in ($(DIRS)) do \
		cmd /c "cd %f & $(MAKE) -$(MAKEFLAGS) $(TARGET)"
