« Return to Thread: Cross-compiling ekiga for win32

Re: Cross-compiling ekiga for win32

by Michael Cronenworth :: Rate this Message:

Reply to Author | View in Thread

Eugen Dedu on 06/25/2009 02:15 PM wrote:
>
> Is it difficult?  Are there only 5 if-s to be declared inside Makefile
> or it is more complicated?
>


No. Here's a primitive example:

OS_TYPE := $(shell uname -s)

ifneq (,$(findstring MINGW,$(OS_TYPE)))
BUILD_TARGET = WINDOWS
endif

This would set $BUILD_TARGET to WINDOWS if you were running make from a
Windows OS using MinGW.

This won't work though if you are attempting to build from a Windows
command prompt. There is no "uname" command in Windows by default unless
you put the MinGW tools in your %PATH% (not done by default).
_______________________________________________
Ekiga-devel-list mailing list
Ekiga-devel-list@...
http://mail.gnome.org/mailman/listinfo/ekiga-devel-list

 « Return to Thread: Cross-compiling ekiga for win32