public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Martin Laabs <martin.laabs@mailbox.tu-dresden.de>
To: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Re: Remove a CFLAG for one .c file (How to compile only one file in no-thumb mode)
Date: Thu, 31 May 2012 09:13:00 -0000	[thread overview]
Message-ID: <4FC73631.3060801@mailbox.tu-dresden.de> (raw)
In-Reply-To: <4FC37A6C.3080503@dallaway.org.uk>

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

      reply	other threads:[~2012-05-31  9:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 11:06 [ECOS] " Martin Laabs
2012-05-28 13:16 ` [ECOS] " John Dallaway
2012-05-31  9:13   ` Martin Laabs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FC73631.3060801@mailbox.tu-dresden.de \
    --to=martin.laabs@mailbox.tu-dresden.de \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=uni@martinlaabs.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).