# This is a Makefile include file for build ar archives as declared in # the $(ARCHIVES) variable. Each archive is build by including all # .lsp files in the same named subdirectory. E.g. lib-misc.a contains # the files lib-misc/*.lsp # The following defines a Makefile block for archive building define archive $1: $$(wildcard ${1:.a=}/*.lsp) ar r $$@ $$^ CLEAN += $1 endef # The following command generates the archive building blocks $(foreach F,${ARCHIVES},$(eval $(call archive,$F)))