[ECOS] Re: Remove a CFLAG for one .c file (How to compile only one file in no-thumb mode)
Martin Laabs
martin.laabs@mailbox.tu-dresden.de
Thu May 31 09:13:00 GMT 2012
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
More information about the Ecos-discuss
mailing list