make-w32
[Top][All Lists]
Advanced

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

Generic and platform-specific Makefiles


From: Alex Vinokur
Subject: Generic and platform-specific Makefiles
Date: Thu, 21 Aug 2003 14:32:36 +0300

Hi,

I would like to create Makefile which suits different platforms and operating 
systems.

#########################
# GNU Make version 3.79.1
#########################

For instance, I have some program.

If I compile the program on Cygwin (Windows 2000)
  the Makefile must contain the following line :
-------------------------
LIBS          = -lwsock32
-------------------------

If I compile the program on Linux
  the Makefile must not contain that line.


What ways should be used to create such a Makefile? :
* generic Makefile for all platforms?
* main Makefile including platform-specific definitions?
* something else?

What techniques exist to do that?

Thanks,

   =====================================
   Alex Vinokur
     mailto:address@hidden
     http://mathforum.org/library/view/10978.html
   =====================================










reply via email to

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