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: 139
Joined: Dec 19, 2012
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: Mar 27, 2012
Location: Brazil

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
Active PSXDEV User
Active PSXDEV User
Posts: 42
Joined: Apr 01, 2018
I am a: Programmer and artist.
Motto: You can accomplish anything.
Location: United States

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
Verified
Serious PSXDEV User
Serious PSXDEV User
Posts: 124
Joined: Jan 07, 2018
I am a: Game Designer
PlayStation Model: SCPH-5502
Location: Russian Federation
Contact:

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
Active PSXDEV User
Active PSXDEV User
Posts: 42
Joined: Apr 01, 2018
I am a: Programmer and artist.
Motto: You can accomplish anything.
Location: United States

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