Makefile in visual studio

Hi,

I want to write some code which can be portable to linux as well as on visual studio using command prompt.

I tried doing as suggested in:
http://mrbook.org/blog/tutorials/make/

This is for gcc compiler and it seems that I may have to change two variables:

CC=??
CFLAGS=??

I have no idea what it should be for visual studio.

Also, from this post I think that I can use the autodefine micro to identify the OS:

http://www.cplusplus.com/forum/unices/3668/

How can I identify the various compiler and window os?

Thanks,
Dushyant
Last edited on
doing make on windows and linux is different, on linux there is make
and on windows there is nmake/gmake something like that which comes with ms vc++. so you need to create two different make files for both the platforms.
Topic archived. No new replies allowed.