This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Remove a CFLAG for one .c file (How to compile only one file in no-thumb mode)
- From: Martin Laabs <martin dot laabs at mailbox dot tu-dresden dot de>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 31 May 2012 11:13:21 +0200
- Subject: Re: [ECOS] Re: Remove a CFLAG for one .c file (How to compile only one file in no-thumb mode)
- References: <4FC35C30.2080707@mailbox.tu-dresden.de> <4FC37A6C.3080503@dallaway.org.uk>
- Reply-to: uni at martinlaabs dot de
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