compiling the SDK under cygwin

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

compiling the SDK under cygwin

Post 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.
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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... ?
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.
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

Post by evilo »

Loser, in the meantime, thanks to remove it from the makefile (I just saw your name in the version log).

Thanks,
evilo
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post 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.
Kung VU
Post Reply