mirror of https://gitlab.com/qemu-project/dtc.git
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:
parent
4e6221c171
commit
156649d4f6
|
@ -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…
Reference in New Issue