Simple Psy-Q MAKEFILE.MAK Example

General help for the PSY-Q SDK, such as setting the SDK up, compiling correctly, linking and debugging
Post Reply
User avatar
t0rxe
C Programming Expert
C Programming Expert
Posts: 140
Joined: December 19th, 2012, 8:08 pm
IRC: t0rxe
Motto: /\OX[]
PlayStation Model: SCPH-5502
Location: Australia

Simple Psy-Q MAKEFILE.MAK Example

Post by t0rxe » July 3rd, 2013, 3:26 am

Code: Select all

#==========================================
#       PlayStation 1 Psy-Q Makefile
# Sony Computer Entertainment Europe (SCEE)
#------------------------------------------
#  My Project Version 1.0 - Copyright 2013
#==========================================

all:
	del mem.map
	del main.sym
	del main.exe
	del main.cpe
	cls

	ccpsx -O3 -Xo$80010000 main.c -omain.cpe,main.sym,mem.map

	cpe2x /CE main.cpe
Save all the text above as 'MAKEFILE.MAK' and use 'psymake' to compile once you have your environment variables setup.

If you want to know what 'O3' does and '-Xo' for CCPSX, read the documents from the Psy-Q TECHREF CD-ROM regarding the compiler and linker. In particular, (TECHREF\PROGCD\GNU) a file called 'CCPSX.PDF'.
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"

User avatar
bizarro2011
Serious PSXDEV User
Serious PSXDEV User
Posts: 118
Joined: March 27th, 2012, 9:09 pm
Skype: abernardo2011
Location: Brazil

Re: Simple Psy-Q MAKEFILE.MAK Example

Post by bizarro2011 » July 3rd, 2013, 10:29 pm

it is more important than it seems, helps you not to look for errors that do not exist. :clap

User avatar
MrQuetch
Curious PSXDEV User
Curious PSXDEV User
Posts: 24
Joined: April 1st, 2018, 9:34 am
Motto: You can accomplish anything.
Looking to: Create professional homebrew.
Location: United States

Re: Simple Psy-Q MAKEFILE.MAK Example

Post by MrQuetch » April 4th, 2018, 4:05 am

Hi there, t0rxe. I know this is six years late, but I have a question regarding the Makefiles.

I've only come across examples that are either built for Japan or Europe, and I'm in America. How can I "make" the game for America instead of those other two regions? I will also refer to the locations that you pointed out and see if I can resolve the problem on my own.

Thanks.

User avatar
NITROYUASH
Serious PSXDEV User
Serious PSXDEV User
Posts: 107
Joined: January 7th, 2018, 12:03 am
I am a: Game Designer
PlayStation Model: SCPH-5502
Steam: NITROYUASH
Location: Russian Federation
Contact:

Re: Simple Psy-Q MAKEFILE.MAK Example

Post by NITROYUASH » April 4th, 2018, 4:29 am

Code: Select all

cpe2x main.cpe     - NTSC/J [JP]
cpe2x /cj main.cpe - NTSC/J [JP]
cpe2x /ca main.cpe - NTSC   [NA]
cpe2x /ce main.cpe - PAL    [EU]
Image

User avatar
MrQuetch
Curious PSXDEV User
Curious PSXDEV User
Posts: 24
Joined: April 1st, 2018, 9:34 am
Motto: You can accomplish anything.
Looking to: Create professional homebrew.
Location: United States

Re: Simple Psy-Q MAKEFILE.MAK Example

Post by MrQuetch » April 4th, 2018, 4:47 am

NITROYUASH wrote:
April 4th, 2018, 4:29 am

Code: Select all

cpe2x main.cpe     - NTSC/J [JP]
cpe2x /cj main.cpe - NTSC/J [JP]
cpe2x /ca main.cpe - NTSC   [NA]
cpe2x /ce main.cpe - PAL    [EU]
Image
Thanks, NITROYUASH.

That was a quick reply. Now, I'm going to figure out how to implement this. :D

Edit: Ok, it's working now - the command prompt says it's building for the regions I specify.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest