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 

mikmodlib make patch

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



Joined: 01 Jun 2007
Posts: 9

PostPosted: Wed Jun 06, 2007 7:34 am    Post subject: mikmodlib make patch Reply with quote

there is a fault in the makefile in playercode...

only found since I install to /opt/psp instead of /usr/local


Code:

Index: playercode/Makefile
===================================================================
--- playercode/Makefile (revision 2243)
+++ playercode/Makefile (working copy)
@@ -1,5 +1,8 @@
 # MikMod Library Makefile for PSP
 # Divine Entertainment Game Programming Pack
+
+PSPSDK=$(shell psp-config --pspsdk-path)
+PSPDIR=$(shell psp-config --psp-prefix)


 ####################
@@ -8,7 +11,7 @@

 # Use the C or C++ compiler
 CC                = psp-gcc
-CFLAGS  = -G0 -O2 -I. -I../include -I/usr/local/pspdev/psp/sdk/include -g -DPSP
+CFLAGS  = -G0 -O2 -I. -I../include -I$(PSPSDK)/include -g -DPSP

 Lib_file          = ../lib/libmikmod.a



this was svn diff'ed from the top of mikmodlib
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Jun 06, 2007 4:53 pm    Post subject: Reply with quote

Patched it, thanks.
I also removed a ton of other hardcoded references to /usr/local/pspdev in the repository. Openssl still has some though.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Jun 06, 2007 5:23 pm    Post subject: Reply with quote

ok, couldn't resist, I cleaned up openssl too.
Shouldn't be any hardcoded references left in the svn repos anymore.
Back to top
View user's profile Send private message
_df_



Joined: 01 Jun 2007
Posts: 9

PostPosted: Wed Jun 06, 2007 9:10 pm    Post subject: Reply with quote

wierd, openssl built fine for me, I didnt run into any problems (once I patched the newlib _timer issue).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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