help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manipulating source files


From: Sam Ravnborg
Subject: Re: Manipulating source files
Date: Wed, 23 Jun 2010 14:23:21 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

> 
> What is the syntax for piping into the "compiler" without using 'shell'?
> Simply "$(SED) -e <recipe> $< | $(CC) $(CFLAGS) -o $@"? Well, I will try
> that anyway :)

Use "-" to tell gcc to read from stdin
Use -xc to tell that the source is a c file

so something like this:

    "$(SED) -e <recipe> $< | $(CC) $(CFLAGS) - -xc -o $@"

        Sam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]