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.
This commit is contained in:
David Gibson 2006-11-29 13:34:22 +11:00
parent 4e6221c171
commit 156649d4f6
1 changed files with 6 additions and 6 deletions

View File

@ -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