mikmodlib make patch

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
_df_
Posts: 9
Joined: Fri Jun 01, 2007 12:45 pm

mikmodlib make patch

Post by _df_ »

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

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

Code: Select all

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Patched it, thanks.
I also removed a ton of other hardcoded references to /usr/local/pspdev in the repository. Openssl still has some though.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

ok, couldn't resist, I cleaned up openssl too.
Shouldn't be any hardcoded references left in the svn repos anymore.
User avatar
_df_
Posts: 9
Joined: Fri Jun 01, 2007 12:45 pm

Post by _df_ »

wierd, openssl built fine for me, I didnt run into any problems (once I patched the newlib _timer issue).
Post Reply