Thread: Help with makefile.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    106

    Help with makefile.

    Hello everybody!

    I need help with makefiles. I read almost every guide I found ( I liked very much the GNU Make documentation ) but I need some hints by an experienced programmer.

    Can I write a makefile such that I can use a command line like these examples:

    Code:
    make platform1 debug
    make platform2 release
    make debug platform3 serialNum
    and so on: I would like to be able to specify different options on the command line instead #defining them in my main.h definitions file. Is this possible with make? Or should I do this in another way?

    I tried two days, but I can't reach this result. Also I find much behaviors which are not descripted in docs ( some vars loose their value from a 'goal' to another, for example ).

    I'm using Cygwin to run GCC.

    Thank you very much for your help.
    Last edited by BrownB; 05-24-2005 at 01:54 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  3. unix makefile won't work but works in Dev C++
    By jk1998 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2007, 03:54 PM
  4. makefile blues....
    By WaterNut in forum C Programming
    Replies: 6
    Last Post: 05-30-2005, 08:22 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM