##############################################################################
# Makefile for RMX
##############################################################################
# 
# Source:	$Source$
#
# Overview:	This file contains the main makefile of RMX.
#
# Copyright (c) 1995 Johan Wikman. All rights reserved.
#
# $Log$
#
##############################################################################

#
# Standard rules and macros
#

!include $(RMXROOT)\tools\builtin.mak
!include $(RMXROOT)\tools\defs.mak

#
# NOTE: The order is significant
#

DIRS		= rmxcomms \
		  rmxstart

all: build

build:
	$(MAKE) -$(MAKEFLAGS) TARGET=$* target

clean:
	$(RM) -f tools\*~
	$(RM) -f bin\*
	$(RM) -f dll\*
	$(RM) -f lib\*
	$(MAKE) -$(MAKEFLAGS) TARGET=$* target

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





