X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=d7bb8d85ddc037cc9ad6f621d1f7ec0caba8b59d;hb=c1126d9819f511a13e36867bb6d291170627fb8f;hp=93cfb4089cceb60f7426001e748b650fe4a1c7a6;hpb=b803427b65b26ec297322de115e8dcbae55b033e;p=rrq%2Flsp-utils.git diff --git a/Makefile b/Makefile index 93cfb40..d7bb8d8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,31 @@ +# Building archives and the test? apps -LSPLIB = -A lsp-util/lsp-util.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