Page 1 of 1

compiling the SDK under cygwin

Posted: Wed Apr 27, 2005 7:58 am
by evilo
In the last SDK makefiles, some definitions have been added to take in account a cygwin environment running IN a DOS shell...

I'm mainly refering to defs.mak, where now we have :
SYSTEM := $(shell uname)
ifeq ($(SYSTEM),CYGWIN_NT-5.1)
# these versions are used for the cygwin toolchain in a dos environment
# since they need to overwrite the standard dos versions of each command
MKDIR = cyg-mkdir
RMDIR = cyg-rmdir
ECHO = cyg-echo
else
MKDIR = mkdir
RMDIR = rmdir
ECHO = echo
endif
Only problem is that now, unless you remove the above lines, it fails when running it from a real cygwin shell, since these cyg-xxxxx commands are obviously unknow...

ok, I know it's not a big deal to remove these things, but this kind of "hack" (If I can say) should not be in the sdk makefiles... no ?


evilo.

Posted: Wed Apr 27, 2005 8:40 am
by pixel
Erf. Isn't there a way to distinguish the real cygwin shell from the cmd ? The "shell" command maybe, which is obviously not the same... ?

Posted: Wed Apr 27, 2005 7:07 pm
by evilo
Loser, in the meantime, thanks to remove it from the makefile (I just saw your name in the version log).

Thanks,
evilo

Posted: Wed Apr 27, 2005 7:09 pm
by blackdroid
another problem with this approach is that it calls 'make' now.
for me on BSD I for now use gmake MAKE=gmake in order to build the SDK until I fix things. you can do the same in cygwin
make MKDIR=mkdir RMDIR=rmdir ECHO=echo
etc.