This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Remove a CFLAG for one .c file (How to compile only one file in no-thumb mode)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]