ifdef PARALLEL
POPT = -j $(PARALLEL)
endif

sep = "==============================================================================="

args = --no-print-directory

all:
	@for i in * ;\
	do \
		(if [ -d $$i ]; then echo "Making in $$i"; cd $$i; \
			gmake $(args) $(POPT); echo $(sep); echo ""; fi); \
	done

depend:
	for i in * ;\
	do \
		(if [ -d $$i ]; then echo "Depending in $$i"; cd $$i; \
			gmake $(args) depend; echo ""; fi); \
	done

distclean:
	rm -f */*.o
