ifdef PARALLEL
POPT = -j $(PARALLEL)
endif

args = --no-print-directory

all:
	for i in karma* shared-objects ;\
	do \
		(echo "Making in $$i"; cd $$i; gmake $(args) $(POPT)); \
	done
	-remove_oldlibs

depend:
	for i in karma* shared-objects ;\
	do \
		(echo "Depending in $$i"; cd $$i; gmake $(args) depend); \
	done

distclean:
	rm -f */*.o libkarma*.*
