From 156649d4f656f47017fabb2596495ffce124bba5 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 29 Nov 2006 13:34:22 +1100 Subject: [PATCH] Fix building of dumptrees Without this rather odd constrained pattern rule, make attempts to build dumptrees using the default %: %.c rule instead of the defined %: %.o and %.o: %.c rules. --- tests/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index db27d07..2b165dc 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -33,18 +33,18 @@ all: $(TESTS) $(TREES) @$(VECHO) AS $@ $(CC) -D__ASSEMBLY__ $(CPPFLAGS) -o $@ -c $< -$(TREES): trees.o dumptrees - @$(VECHO) DUMPTREES - ./dumptrees >/dev/null - %: %.o @$(VECHO) LD $@ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) -dumptrees: trees.o - $(LIB_TESTS): %: testutils.o $(LIBFDT) +dumptrees: %: trees.o + +$(TREES): dumptrees + @$(VECHO) DUMPTREES + ./dumptrees >/dev/null + clean: @$(VECHO) CLEAN "(tests)" rm -f *~ *.o *.so *.a *.d *.s core a.out