forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compiling the SDK under cygwin

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Wed Apr 27, 2005 7:58 am    Post subject: compiling the SDK under cygwin Reply with quote

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
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Wed Apr 27, 2005 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Wed Apr 27, 2005 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Wed Apr 27, 2005 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group