[Solved] minpspw and psptoolchain make files conversation

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

Moderators: cheriff, TyRaNiD

Post Reply
Pihas
Posts: 53
Joined: Sat Oct 25, 2008 10:26 pm
Location: Lithuania
Contact:

[Solved] minpspw and psptoolchain make files conversation

Post by Pihas »

minpspw make file:

Code: Select all

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$
Last edited by Pihas on Thu Jul 16, 2009 8:43 pm, edited 1 time in total.
Image
Cooming Soon
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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

Its pasted below for your convenience

Code: Select all

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.
Pihas
Posts: 53
Joined: Sat Oct 25, 2008 10:26 pm
Location: Lithuania
Contact:

Post by Pihas »

Yes, my problems was with bashrc, thank you Wally
Image
Cooming Soon
Post Reply