#############################################################################
#               Makefile for ACE
#############################################################################
DIRS    = src
LIBDIRS	= src

export WRAPPER_ROOT = $(shell pwd)
export ARCH = $(shell uname | sed -e 'y/abcdefghijklmnopqrstuvwxyz-/ABCDEFGHIJKLMNOPQRSTUVWXYZ_/'|sed -e 's/SUNOS/SOLARIS/')

library:
	echo "ARCH is $(ARCH)"
	echo "WRAPPER_ROOT is $(WRAPPER_ROOT)"
	@for dir in $(LIBDIRS) ;\
	do \
	cd $(WRAPPER_ROOT)/$$dir; \
	$(MAKE) ARCH="$(ARCH)" WRAPPER_ROOT="$(WRAPPER_ROOT)" all; \
	done

clean:
	@for dir in $(DIRS) ;\
	do \
	cd $(WRAPPER_ROOT)/$$dir; $(MAKE) clean; \
	done	
