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:[EMAIL PROTECTED]
     http://mathforum.org/library/view/10978.html
   =====================================








_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to