added
[rrq/lsp-utils.git] / lsplib.mk
1 # This is a Makefile include file for build ar archives as declared in
2 # the $(ARCHIVES) variable. Each archive is build by including all
3 # .lsp files in the same named subdirectory. E.g. lib-misc.a contains
4 # the files lib-misc/*.lsp
5
6 # The following defines a Makefile block for archive building
7 define archive
8 $1: $$(wildcard ${1:.a=}/*.lsp)
9         ar r $$@ $$^
10 CLEAN += $1
11 endef
12
13 # The following command generates the archive building blocks
14 $(foreach F,${ARCHIVES},$(eval $(call archive,$F)))