Thread: Makefile conditions for OS

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    30

    Makefile conditions for OS

    hello, is there any possible way how to write in Makefile condition like in source code,

    like this for example:
    Code:
    #ifdef _WIN32 
    	gcc $? -o $@ -lws2_32
    #else 
            gcc $? -o $@
    and so other
    if it is possible how to write it

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    30
    thank you, a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile help please
    By TriKri in forum C++ Programming
    Replies: 3
    Last Post: 09-24-2009, 12:36 AM
  2. Replies: 2
    Last Post: 08-11-2009, 06:45 AM
  3. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 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