Browse Source

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.
main
David Gibson 18 years ago
parent
commit
156649d4f6
  1. 12
      tests/Makefile

12
tests/Makefile

@ -33,18 +33,18 @@ all: $(TESTS) $(TREES) @@ -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

Loading…
Cancel
Save