X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=d7bb8d85ddc037cc9ad6f621d1f7ec0caba8b59d;hb=7d4f5a7a25ad188cc8f60ed47cb7fc7818be00e3;hp=a6575e261ee72839242a631d0386d419daf78897;hpb=1898ef96b70cb93c53a84e6a7536d0a3bceb35d6;p=rrq%2Flsp-utils.git diff --git a/Makefile b/Makefile index a6575e2..d7bb8d8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,31 @@ +# Building archives and the test? apps -LSPLIB = -A lsp-misc/lsp-misc.a -A lsp-dbus/lsp-dbus.a +default: .archives -LSPSRC = lsp-dbus-test.lsp +#################### +SUBDIR = $(dir $(wildcard */Makefile)) -test0: ${LSPSRC} - ${HOME}/src/borta/packnl/packnl -w $@ $^ ${LSPLIB} +.PHONY: .archives +.archives: + for D in ${SUBDIR} ; do $(MAKE) -C $$D ; done + +.PHONY: .clean +.clean: + for D in ${SUBDIR} ; do $(MAKE) -C $$D clean ; done + +#################### +PACKNL = ${HOME}/src/borta/packnl/packnl +define PACKNLACTION +${PACKNL} -w $@ $< $(addprefix -A ,$(wordlist 2,1000,$^)) +endef + +test0: lsp-dbus-test.lsp +test0: lsp-misc/lsp-misc.a lsp-dbus/lsp-dbus.a + ${PACKNLACTION} + +test1: lsp-alsa-test.lsp +test1: lsp-alsa/pcm-dispatch.a lsp-alsa/libasound.a lsp-alsa/lib-utils.a + ${PACKNLACTION} + +clean: .clean + rm -f test0 test1