Merge "make: fix dependency generation for flat build tree" into experimental
This commit is contained in:
commit
b551d82d92
@ -112,7 +112,7 @@ $(BUILD_PFX)$(call xform_obj_path,$(1))%.c.d: $(1)%.c
|
|||||||
$(qexec)mkdir -p $$(dir $$@)
|
$(qexec)mkdir -p $$(dir $$@)
|
||||||
$(qexec)$(CC) $$(INTERNAL_CFLAGS) $$(CFLAGS) -M $$< | $(fmt_deps) > $$@
|
$(qexec)$(CC) $$(INTERNAL_CFLAGS) $$(CFLAGS) -M $$< | $(fmt_deps) > $$@
|
||||||
|
|
||||||
$(BUILD_PFX)$(call xform_obj_path,$(1))%.c.o: $(1)%.c $(BUILD_PFX)$(call xform_obj_path,$(1))%.c.d
|
$(BUILD_PFX)$(call xform_obj_path,$(1))%.c.o: $(1)%.c
|
||||||
$(if $(quiet),@echo " [CC] $$@")
|
$(if $(quiet),@echo " [CC] $$@")
|
||||||
$(qexec)$(CC) $$(INTERNAL_CFLAGS) $$(CFLAGS) -c -o $$@ $$<
|
$(qexec)$(CC) $$(INTERNAL_CFLAGS) $$(CFLAGS) -c -o $$@ $$<
|
||||||
|
|
||||||
|
@ -435,10 +435,10 @@ RTCD_OPTIONS = ${RTCD_OPTIONS}
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
if enabled rvct; then cat >> $1 << EOF
|
if enabled rvct; then cat >> $1 << EOF
|
||||||
fmt_deps = sed -e 's;^__image.axf;\$(dir \$@)\$(notdir \$<).o \$@;' #hide
|
fmt_deps = sed -e 's;^__image.axf;\$\${@:.d=.o} \$\$@;' #hide
|
||||||
EOF
|
EOF
|
||||||
else cat >> $1 << EOF
|
else cat >> $1 << EOF
|
||||||
fmt_deps = sed -e 's;^\([a-zA-Z0-9_]*\)\.o;\$(dir \$@)\1\$(suffix \$<).o \$@;'
|
fmt_deps = sed -e 's;^\([a-zA-Z0-9_]*\)\.o;\$\${@:.d=.o} \$\$@;'
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user