CHDIR = cd

LIBRARIES = \
	adjust_sleep \
	angle \
	comstream \
	d2_region \
	d2_vector \
	debugstream \
	ip_address \
	lisp_lex \
	math_extention \
	option_analyser \
	prof_stopwatch \
	random_generator \
	range \
	ref_count_ptr \
	time_stamp \
	udp_connection

all: library

library:
	for lib in $(LIBRARIES) ; \
	do \
		($(CHDIR) $${lib} && $(MAKE) library) \
	done

library-only:
	for lib in $(LIBRARIES) ; \
	do \
		($(CHDIR) $${lib} && $(MAKE) library-only) \
	done

clean:
	for lib in $(LIBRARIES) ; \
	do \
		($(CHDIR) $${lib} && $(MAKE) clean) \
	done
