title: patsubst on makefile
body: <p>I have to create different *.o files from a same set of *.c using various CFLAGS. I wanted to use patsubst to generate different *.o files from same *.c. I am doing something wrong the following statement, please help (I want to generate one set of object files having ($&lt;)_O0.o and the other ($&lt;)_O2.o from the same set of c source files):</p>
  
  <pre><code> $(CC) $(CFLAGS_02) -c $&lt; -o $(patsubst %.c,%_O2.o,$&lt;)
  </code></pre>
  
  <p>Thanks</p>