C
Carson
Hi,
I have a problem with Makefile.
I have a piece of c code, which is stored in my unix account. I wrote
a Makefile for that particular compilation (using gcc), and it works
fine.
But sometimes, I need to compile the code in windows, therefore I
downloaded mingw32 to compile the code. However, I need to manually
change the variable of CC in my makefile from CC=gcc to CC=ming32-gcc.
Is there any way for the Makefile to detect which OS it is
(win/linux/sunos) so that it will switch the CC accordingly?
Thank you,
Carson
I have a problem with Makefile.
I have a piece of c code, which is stored in my unix account. I wrote
a Makefile for that particular compilation (using gcc), and it works
fine.
But sometimes, I need to compile the code in windows, therefore I
downloaded mingw32 to compile the code. However, I need to manually
change the variable of CC in my makefile from CC=gcc to CC=ming32-gcc.
Is there any way for the Makefile to detect which OS it is
(win/linux/sunos) so that it will switch the CC accordingly?
Thank you,
Carson