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 

[Solved] minpspw and psptoolchain make files conversation

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



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Thu Jul 16, 2009 6:24 am    Post subject: [Solved] minpspw and psptoolchain make files conversation Reply with quote

minpspw make file:
Code:
TARGET = PSP_2D_TANK
OBJS = main.o    

INCDIR =
CFLAGS = -G4 -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
STDLIBS= -losl -lpng -lz \
      -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm
LIBS=$(STDLIBS)$(YOURLIBS)


EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSP 2D TANK 0.1
PSP_EBOOT_ICON = EBOOT_DATA/ICON0.PNG
PSP_EBOOT_ICON1 =
PSP_EBOOT_UNKPNG =
PSP_EBOOT_PIC1 = EBOOT_DATA/PIC1.PNG
PSP_EBOOT_SND0 =
PSP_EBOOT_PSAR =

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


and in psptoolchain there are 3 make files Makefile, Makefile.am, Makefile.in. My questions is how to convert my old one minpspw makefile to suportable for psptoolchain

Error:
pihas@pihas-netbook:~/psp2dtanks$ make
make: psp-config: Command not found
Makefile:26: /lib/build.mak: No such file or directory
make: *** No rule to make target `/lib/build.mak'. Stop.
pihas@pihas-netbook:~/psp2dtanks$
_________________

Cooming Soon


Last edited by Pihas on Thu Jul 16, 2009 8:43 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Jul 16, 2009 10:15 am    Post subject: Reply with quote

Use the sample found in /usr/local/pspdev/psp/sdk/samples/templates/prx_template.

Its pasted below for your convenience

Code:

TARGET = template
OBJS = main.o

BUILD_PRX=1

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


Make sure your toolchain exists or the paths are defined as per the instructions for your OS.
Back to top
View user's profile Send private message AIM Address
Pihas



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Thu Jul 16, 2009 8:43 pm    Post subject: Reply with quote

Yes, my problems was with bashrc, thank you Wally
_________________

Cooming Soon
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 -> 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