Hello, thank you for your hint. The real working solution I build out of this is the following (Just for the archive):
compile cstx01_misc.c make_object { src/cstx01_misco.d: $(REPOSITORY)/$(PACKAGE/src/cstx01_misc.c $(CC) -c $(INCLUDE_PATH) -I$(dir $<) $(filter-out -mthumb, \ $(ACTUAL_CFLAGS)) -Wp,-MD,$(@:.o.d=.tmp) -o $(dir \ $@)$(OBJECT_PREFIX)_$(notdir $(@:.o.d=.o)) $< @sed -e '/^ *\\/d' -e "s#.*: #$@: #" $(@:.o.d=.tmp) > $@ @rm $(@:.o.d=.tmp) } Best regards, Martin L. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss