#
# $Id:$
#
# Copyright (C) 1999 by Matteo Cavalleri
#

SUBDIRS := ExtFrameICLass VectorGlyph

all:
	for i in $(SUBDIRS); do $(MAKE) -C $$i TOP=$(TOP) ; done

help-all:
	@echo "This target will build all the classes and demo programs."; echo

lib:
	for i in $(SUBDIRS); do $(MAKE) -C $$i TOP=$(TOP) lib ; done

help-lib:
	@echo "This target will build all the classes (but not the demo programs)."; echo

debug:
	@$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) TOP=$(TOP) debug ; )

help-debug:
	@echo "This target will build all the demo programs with the classes linked"
	@echo "as static libraries. Debug code and symbols are added."; echo

private:
	@$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) TOP=$(TOP) private ; )

help-private:
	@echo "This target will build all the demo programs with the classes linked"
	@echo "as static libraries. No debug code and symbols are added."; echo
	@echo "This may be useful to make other users test new versions of the classes"
	@echo "without the need to install them or without overwriting old versions"
	@echo "that may have been installed."; echo

obj:
	for i in $(SUBDIRS); do $(MAKE) -C $$i TOP=$(TOP) obj ; done

help-obj:
	@echo "This target create the classes object ready to be linked as a static"
	@echo "library, with no debugging code."; echo

install:
	for i in $(SUBDIRS); do $(MAKE) -C $$i TOP=$(TOP) install ; done

help-install:
	@echo "This target copy all the classes and the demos in the dist/ directory,"
	@echo "placing the classes in the correct subdirectories."; echo

clean:
	for i in $(SUBDIRS); do $(MAKE) -C $$i TOP=$(TOP) clean ; done

help-clean:
	@echo "This target delete all the demoprograms, all the classes and all"
	@echo "the objects in the sources subdirectories."; echo

help:
	@echo "Defined subdirs: $(SUBDIRS)"; echo
