Please be careful to use an informative subject line when sending to
mailing lists.  Because of rampant spamming, almost every mailing list
has to perform some sort of moderating and typically the last resort is
for someone to go through the messages and approve them.  Often the
moderator will base the "spam/no spam" decision mainly on the subject
line, and a subject like "help" is going to get tossed as often as it
gets through.  FYI, thanks!


%% Stefano Grimaldi <[EMAIL PROTECTED]> writes:

  sg> I have cpp files under a folder c:/Temp/scr and I would like to build .d 
  sg> and .o files under a sub folder

  sg> c:/Temp/src/_BuildFiles

  sg> There is a way to write the rule for the .o file in order to have
  sg> .cpp and ..o files in different folders?

Use pattern rules, like:

  _BuildFiles/%.o : %.c
            $(CC) $(CFLAGS) -o $@ -c $<

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
  • help Stefano Grimaldi
    • Re: help Paul D. Smith
    • help Valerio Sellaro
    • help Robert Tellamalla
    • help robertguo99

Reply via email to