| View previous topic :: View next topic |
| Author |
Message |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Wed Apr 27, 2005 7:58 am Post subject: compiling the SDK under cygwin |
|
|
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 :
| Quote: |
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. |
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Wed Apr 27, 2005 8:40 am Post subject: |
|
|
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... ? _________________ pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department. |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Wed Apr 27, 2005 7:07 pm Post subject: |
|
|
Loser, in the meantime, thanks to remove it from the makefile (I just saw your name in the version log).
Thanks,
evilo |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Wed Apr 27, 2005 7:09 pm Post subject: |
|
|
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. _________________ Kung VU |
|
| Back to top |
|
 |
|