X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=Makefile;h=333ea449167b3989f594afeac313447812a83b76;hb=9c1974f62a43e0dd5dac8ad4f9b541a12c110a0a;hp=55d5f5ede3269af8928cb3689613918aa2541dc0;hpb=914fa0bf6ec0bbe165ddf917e73a1e207743ba1d;p=ccan diff --git a/Makefile b/Makefile index 55d5f5ed..333ea449 100644 --- a/Makefile +++ b/Makefile @@ -27,9 +27,12 @@ $(ALL_DEPENDS): %/.depends: %/_info.c tools/ccan_depends @tools/ccan_depends $* > $@ || ( rm -f $@; exit 1 ) # Actual dependencies are created in inter-depends -check-%: tools/run_tests +check-%: tools/run_tests ccan/%/_info @echo Testing $*... - @if tools/run_tests $(V) `[ ! -f ccan/$*.o ] || echo --apiobj=ccan/$*.o` ccan/$* $(filter-out ccan/$*.o, $(filter %.o, $^)) | grep ^'not ok'; then exit 1; else exit 0; fi + @if tools/run_tests $(V) $$(for f in `ccan/$*/_info libs`; do echo --lib=$$f; done) `[ ! -f ccan/$*.o ] || echo --apiobj=ccan/$*.o` ccan/$* $(filter-out ccan/$*.o, $(filter %.o, $^)) | grep ^'not ok'; then exit 1; else exit 0; fi + +ccan/%/_info: ccan/%/_info.c + $(CC) $(CFLAGS) -o $@ $< libccan.a(%.o): ccan/%.o $(AR) r $@ $<