2000-08-29 18:28:00 +02:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# MAKEFILE
|
|
|
|
#
|
|
|
|
# Controlling makefile for Power Rangers Light Speed Rescue PSX
|
|
|
|
#
|
|
|
|
# Tabbed for 5 9 (Please do not change)
|
|
|
|
#
|
|
|
|
# Created: 3rd February 1999 GRLiddon()
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997-1999 G R Liddon
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Default Target
|
|
|
|
# --------------
|
|
|
|
.PHONY: default
|
|
|
|
default : all
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Name of the project
|
|
|
|
# --------------------
|
2000-08-29 22:33:18 +02:00
|
|
|
PROJ := Spongey
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
USE_EGCS := 1
|
|
|
|
BUILD_DIR := build
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Includes
|
|
|
|
# --------
|
|
|
|
include $(BUILD_DIR)/globals.mak
|
|
|
|
include $(BUILD_DIR)/getuser.mak
|
|
|
|
include $(BUILD_DIR)/parse.mak
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# File Sys specifics
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
PC_FILESYS_SRC := pcfile
|
|
|
|
PC_STARTUP_OBJ :=
|
|
|
|
PC_FILESYS_LIB := libsn
|
|
|
|
|
|
|
|
CD_FILESYS_SRC := cdfile
|
2001-01-25 16:45:15 +01:00
|
|
|
CD_STARTUP_OBJ := BootObj\snmain
|
2000-08-29 18:28:00 +02:00
|
|
|
CD_FILESYS_LIB := CMXBoot
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Source Code to Compile
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2001-06-19 23:26:50 +02:00
|
|
|
backend_src := complete \
|
|
|
|
credits \
|
|
|
|
gameover \
|
2001-06-10 19:07:06 +02:00
|
|
|
party
|
2001-01-11 23:06:59 +01:00
|
|
|
|
2001-02-28 20:49:12 +01:00
|
|
|
enemy_src := npc \
|
2001-02-01 21:25:58 +01:00
|
|
|
npcdata \
|
2001-01-18 20:18:39 +01:00
|
|
|
npcpath \
|
2001-01-18 22:19:43 +01:00
|
|
|
nsjfish \
|
|
|
|
nclam \
|
2001-01-19 22:46:30 +01:00
|
|
|
nscrab \
|
|
|
|
ngpirate \
|
|
|
|
nshrkman \
|
2001-01-22 15:23:11 +01:00
|
|
|
ngeneric \
|
2001-01-22 17:02:38 +01:00
|
|
|
nanemone \
|
2001-01-22 23:24:53 +01:00
|
|
|
neyeball \
|
2001-01-23 18:03:27 +01:00
|
|
|
nsstomp \
|
2001-01-23 20:58:19 +01:00
|
|
|
nbooger \
|
2001-01-25 16:45:15 +01:00
|
|
|
nmjfish \
|
|
|
|
nfdutch \
|
2001-01-25 18:20:08 +01:00
|
|
|
nsshark \
|
2001-01-25 20:57:29 +01:00
|
|
|
ndogfish \
|
2001-02-05 15:55:11 +01:00
|
|
|
nffolk \
|
2001-02-06 17:14:16 +01:00
|
|
|
nocto \
|
2001-02-06 20:29:35 +01:00
|
|
|
nfskull \
|
2001-02-12 16:37:31 +01:00
|
|
|
nsklfish \
|
2001-04-02 17:52:09 +02:00
|
|
|
nworm \
|
2001-04-03 20:32:24 +02:00
|
|
|
nhcrab \
|
2001-04-05 17:54:40 +02:00
|
|
|
nbblob \
|
2001-04-19 01:12:24 +02:00
|
|
|
npuffa \
|
2001-04-21 18:58:13 +02:00
|
|
|
ngen \
|
2001-04-24 17:01:42 +02:00
|
|
|
nsdart \
|
2001-04-26 17:20:21 +02:00
|
|
|
ndustdev \
|
2001-05-04 22:11:44 +02:00
|
|
|
npbug \
|
2001-05-09 18:04:17 +02:00
|
|
|
nprojjf \
|
2001-05-10 16:09:06 +02:00
|
|
|
nmjback \
|
2001-05-10 23:30:17 +02:00
|
|
|
nsjback \
|
2001-05-11 00:19:55 +02:00
|
|
|
nsj2back \
|
2001-05-16 21:45:43 +02:00
|
|
|
nbuttfly \
|
2001-05-24 16:07:13 +02:00
|
|
|
nshell \
|
|
|
|
nssnake
|
2001-01-10 22:46:46 +01:00
|
|
|
|
2001-04-27 17:09:10 +02:00
|
|
|
friend_src := friend \
|
|
|
|
fdata \
|
2001-05-01 21:36:24 +02:00
|
|
|
fgary \
|
2001-05-03 00:49:59 +02:00
|
|
|
fsquid \
|
|
|
|
fsandy \
|
|
|
|
fkrusty \
|
2001-05-03 15:11:45 +02:00
|
|
|
fpatrick \
|
|
|
|
fplnkton
|
2001-04-27 17:09:10 +02:00
|
|
|
|
2001-04-23 22:40:13 +02:00
|
|
|
platform_src := platform \
|
|
|
|
platdata \
|
|
|
|
plinear \
|
|
|
|
pcirculr \
|
|
|
|
pbubble \
|
|
|
|
pfishhk \
|
|
|
|
pgeyser \
|
|
|
|
pbob \
|
|
|
|
pfalling \
|
|
|
|
pcart \
|
2001-04-25 00:05:29 +02:00
|
|
|
pretract \
|
|
|
|
pbranch \
|
2001-04-30 18:05:49 +02:00
|
|
|
ppendulm \
|
2001-05-01 22:45:03 +02:00
|
|
|
pseesaw \
|
2001-05-02 21:52:33 +02:00
|
|
|
pbounce \
|
2001-05-03 21:01:59 +02:00
|
|
|
pdual \
|
|
|
|
pfgen \
|
2001-05-04 16:49:15 +02:00
|
|
|
pfallnor \
|
2001-05-04 20:54:27 +02:00
|
|
|
praft \
|
2001-05-05 01:12:26 +02:00
|
|
|
plantern \
|
2001-05-05 01:56:39 +02:00
|
|
|
pbgeyser \
|
2001-05-05 15:54:34 +02:00
|
|
|
pleaf \
|
2001-05-05 18:47:51 +02:00
|
|
|
pbwheel \
|
2001-05-05 21:08:02 +02:00
|
|
|
psbarrel \
|
2001-05-15 18:31:29 +02:00
|
|
|
pjellfsh \
|
2001-05-23 16:46:23 +02:00
|
|
|
pclam \
|
2001-05-23 18:01:00 +02:00
|
|
|
pfishhk3 \
|
2001-05-24 00:02:14 +02:00
|
|
|
prbridge \
|
2001-05-24 01:16:43 +02:00
|
|
|
pbaloon \
|
2001-05-29 17:29:56 +02:00
|
|
|
ptrpdoor \
|
2001-05-29 18:55:15 +02:00
|
|
|
pconveyr \
|
2001-06-01 20:36:50 +02:00
|
|
|
pplayer \
|
2001-06-05 22:44:30 +02:00
|
|
|
pcbubble \
|
2001-06-05 23:21:23 +02:00
|
|
|
pdrop \
|
2001-06-06 16:14:47 +02:00
|
|
|
psswitch \
|
2001-06-06 17:04:20 +02:00
|
|
|
plift \
|
2001-06-08 16:33:43 +02:00
|
|
|
plurve \
|
2001-06-11 21:32:41 +02:00
|
|
|
psoil \
|
|
|
|
pbubtube
|
2001-04-23 22:40:13 +02:00
|
|
|
|
2001-04-24 17:01:42 +02:00
|
|
|
hazard_src := hazard \
|
|
|
|
hfalling \
|
|
|
|
hpendulm \
|
|
|
|
hfirebal \
|
|
|
|
hsaw \
|
2001-04-24 17:14:43 +02:00
|
|
|
hbarrel \
|
2001-05-03 16:51:14 +02:00
|
|
|
hboat \
|
2001-05-04 23:25:33 +02:00
|
|
|
hcsaw \
|
|
|
|
hmower \
|
|
|
|
hmasher \
|
|
|
|
hfan \
|
2001-05-05 15:54:34 +02:00
|
|
|
hspikes \
|
2001-05-05 21:08:02 +02:00
|
|
|
hbwheel \
|
2001-05-05 23:04:00 +02:00
|
|
|
hdbarrel \
|
2001-05-22 21:59:56 +02:00
|
|
|
hbbarrel \
|
2001-05-23 00:01:43 +02:00
|
|
|
hrrock \
|
2001-05-23 20:45:27 +02:00
|
|
|
hflytrap \
|
|
|
|
hrweight \
|
2001-05-24 01:16:43 +02:00
|
|
|
hrwheel \
|
2001-05-24 17:18:25 +02:00
|
|
|
hpswitch \
|
2001-05-31 17:43:13 +02:00
|
|
|
hrckshrd \
|
2001-06-04 21:01:17 +02:00
|
|
|
hinert \
|
2001-06-05 18:01:22 +02:00
|
|
|
hcswitch \
|
2001-06-14 23:27:25 +02:00
|
|
|
hbrock \
|
|
|
|
hlog \
|
|
|
|
hsrdfish
|
2001-04-24 17:01:42 +02:00
|
|
|
|
2001-05-04 20:47:12 +02:00
|
|
|
fx_src := fx \
|
2001-05-23 22:00:25 +02:00
|
|
|
fxbaseanim \
|
|
|
|
fxbasetrail \
|
2001-05-31 22:07:48 +02:00
|
|
|
fxbaseemitter \
|
2001-06-01 17:10:05 +02:00
|
|
|
fxbubble \
|
2001-06-12 22:20:52 +02:00
|
|
|
fxthwack \
|
2001-05-31 00:05:41 +02:00
|
|
|
fxnrgbar \
|
2001-05-30 19:02:54 +02:00
|
|
|
fxjfish \
|
2001-05-16 21:06:47 +02:00
|
|
|
fxfallingtile \
|
2001-06-18 18:33:58 +02:00
|
|
|
fxsteam \
|
2001-06-19 23:19:01 +02:00
|
|
|
fxlaser \
|
|
|
|
fxgeyser
|
2001-05-04 20:47:12 +02:00
|
|
|
|
2001-04-30 20:55:38 +02:00
|
|
|
projectl_src := projectl \
|
2001-05-05 00:34:23 +02:00
|
|
|
prnpc \
|
|
|
|
prnpcspr
|
2001-01-22 17:02:38 +01:00
|
|
|
|
2000-08-29 18:28:00 +02:00
|
|
|
fileio_src := fileio \
|
|
|
|
$($(FILE_SYSTEM)_FILESYS_SRC)
|
|
|
|
|
2001-06-19 23:26:50 +02:00
|
|
|
frontend_src := demomode \
|
2000-11-24 01:00:10 +01:00
|
|
|
frontend \
|
2001-04-17 23:40:16 +02:00
|
|
|
fmvthq \
|
|
|
|
fmvintro \
|
2000-11-22 18:02:04 +01:00
|
|
|
maintitl \
|
2000-11-24 18:30:49 +01:00
|
|
|
options \
|
|
|
|
scrollbg \
|
|
|
|
start
|
2000-11-13 18:03:20 +01:00
|
|
|
|
2001-06-04 18:10:06 +02:00
|
|
|
fma_src := fma
|
|
|
|
|
2001-04-17 22:57:00 +02:00
|
|
|
fmv_src := fmv
|
|
|
|
|
2001-02-09 22:42:55 +01:00
|
|
|
game_src := convo \
|
|
|
|
game \
|
2001-01-26 17:43:34 +01:00
|
|
|
gamebubs \
|
2001-01-10 23:03:20 +01:00
|
|
|
gameslot \
|
2001-06-14 23:08:42 +02:00
|
|
|
pause \
|
|
|
|
healthman
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
gfx_src := prim \
|
|
|
|
tpage \
|
|
|
|
animtex \
|
2000-08-29 22:33:18 +02:00
|
|
|
sprbank \
|
2000-11-15 16:37:12 +01:00
|
|
|
fader \
|
2000-10-18 00:04:57 +02:00
|
|
|
fdata \
|
2000-11-15 16:37:12 +01:00
|
|
|
font \
|
2001-01-10 22:46:46 +01:00
|
|
|
bubicles \
|
2001-04-01 22:11:41 +02:00
|
|
|
actor
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2001-01-12 22:17:20 +01:00
|
|
|
gui_src := gbubbles \
|
|
|
|
gbutton \
|
2000-11-22 23:52:08 +01:00
|
|
|
gfactory \
|
2000-11-02 18:16:10 +01:00
|
|
|
gframe \
|
2000-10-31 17:43:44 +01:00
|
|
|
greadout \
|
2000-11-24 17:41:51 +01:00
|
|
|
gsprite \
|
|
|
|
gtextbox \
|
2001-06-19 00:58:36 +02:00
|
|
|
gui \
|
|
|
|
pointer
|
2000-10-31 17:43:44 +01:00
|
|
|
|
2001-05-10 16:09:06 +02:00
|
|
|
jellfish_src := jellfish
|
|
|
|
|
2000-12-07 16:56:20 +01:00
|
|
|
level_src := level \
|
2000-12-12 21:56:51 +01:00
|
|
|
layertile \
|
2001-01-15 16:22:33 +01:00
|
|
|
layerback \
|
2001-02-02 20:16:49 +01:00
|
|
|
layertile3d \
|
|
|
|
layercollision
|
2001-01-25 16:45:15 +01:00
|
|
|
|
2000-08-29 18:28:00 +02:00
|
|
|
locale_src := textdbase
|
|
|
|
|
2001-04-24 21:37:12 +02:00
|
|
|
map_src := map
|
|
|
|
|
2000-08-29 18:28:00 +02:00
|
|
|
mem_src := memory
|
|
|
|
|
2001-01-03 16:57:20 +01:00
|
|
|
memcard_src := md5 \
|
|
|
|
memcard \
|
|
|
|
saveload
|
|
|
|
|
2001-06-28 21:14:44 +02:00
|
|
|
pad_src := pads \
|
|
|
|
vibe
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2001-01-11 18:09:44 +01:00
|
|
|
paul_src := paul \
|
2001-06-25 22:25:28 +02:00
|
|
|
scenesel \
|
|
|
|
animtest
|
2000-09-12 01:41:29 +02:00
|
|
|
|
2001-02-21 18:13:37 +01:00
|
|
|
pickups_src := pickup \
|
2001-02-21 23:33:17 +01:00
|
|
|
pballoon \
|
2001-03-30 19:47:00 +02:00
|
|
|
pblower \
|
2001-02-21 18:13:37 +01:00
|
|
|
pbubmix \
|
2001-06-27 21:50:35 +02:00
|
|
|
pglove \
|
2001-02-21 23:33:17 +01:00
|
|
|
phelmet \
|
2001-02-21 18:13:37 +01:00
|
|
|
pjlammo \
|
2001-05-29 22:42:16 +02:00
|
|
|
pkelp \
|
2001-02-21 18:13:37 +01:00
|
|
|
plife \
|
2001-03-31 04:05:24 +02:00
|
|
|
pnet \
|
2001-02-21 18:13:37 +01:00
|
|
|
pquest \
|
|
|
|
pshoes \
|
|
|
|
pspatula
|
|
|
|
|
2001-02-09 18:01:04 +01:00
|
|
|
player_src := demoplay \
|
|
|
|
panimsfx \
|
2001-02-01 18:01:12 +01:00
|
|
|
player \
|
2001-03-23 21:09:45 +01:00
|
|
|
pmodes \
|
2001-03-25 22:36:28 +02:00
|
|
|
pmbloon \
|
2001-03-30 19:47:00 +02:00
|
|
|
pmbubble \
|
2001-03-27 22:29:02 +02:00
|
|
|
pmchop \
|
2001-03-30 19:47:00 +02:00
|
|
|
pmcoral \
|
2001-03-25 23:33:20 +02:00
|
|
|
pmdead \
|
2001-03-23 21:09:45 +01:00
|
|
|
pmfly \
|
2001-04-03 23:36:35 +02:00
|
|
|
pmjelly \
|
2001-03-31 04:05:24 +02:00
|
|
|
pmnet \
|
2001-06-12 18:28:39 +02:00
|
|
|
pmcart \
|
2001-01-22 22:02:59 +01:00
|
|
|
psbutt \
|
2001-05-29 17:54:26 +02:00
|
|
|
pslook \
|
2001-01-22 22:02:59 +01:00
|
|
|
psduck \
|
2001-01-20 00:37:40 +01:00
|
|
|
psfall \
|
2001-04-04 17:40:38 +02:00
|
|
|
pshitgnd \
|
2001-01-25 16:25:46 +01:00
|
|
|
psidle \
|
2001-05-11 21:49:41 +02:00
|
|
|
psjmpbck \
|
2001-01-20 00:37:40 +01:00
|
|
|
psjump \
|
2001-05-01 20:39:41 +02:00
|
|
|
psrun \
|
2001-06-12 18:28:39 +02:00
|
|
|
psspring \
|
2001-06-15 23:24:14 +02:00
|
|
|
pscart \
|
|
|
|
psfloat
|
2001-01-10 22:46:46 +01:00
|
|
|
|
2000-12-15 21:29:33 +01:00
|
|
|
script_src := script \
|
|
|
|
function
|
2000-12-12 22:33:19 +01:00
|
|
|
|
2001-06-05 21:26:14 +02:00
|
|
|
shop_src := shop
|
|
|
|
|
2000-10-05 16:16:09 +02:00
|
|
|
sound_src := sound \
|
|
|
|
spu \
|
|
|
|
xmplay \
|
|
|
|
cdxa
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
system_src := main \
|
|
|
|
gstate \
|
|
|
|
vid \
|
2000-09-12 01:41:29 +02:00
|
|
|
dbg \
|
2000-10-05 16:16:09 +02:00
|
|
|
vsprintf \
|
2000-10-20 23:52:46 +02:00
|
|
|
clickcount \
|
|
|
|
except
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2001-02-26 21:42:25 +01:00
|
|
|
thing_src := thing
|
|
|
|
|
2001-05-29 22:31:02 +02:00
|
|
|
triggers_src := trigger \
|
2001-06-25 23:47:22 +02:00
|
|
|
tboss \
|
2001-05-29 22:31:02 +02:00
|
|
|
tcamlock \
|
2001-06-12 01:30:23 +02:00
|
|
|
tlevexit \
|
2001-04-23 23:11:15 +02:00
|
|
|
tlook \
|
2001-05-01 23:34:41 +02:00
|
|
|
trestart \
|
2001-05-08 18:58:07 +02:00
|
|
|
tteleprt \
|
2001-05-23 18:01:00 +02:00
|
|
|
twater \
|
2001-05-30 22:24:02 +02:00
|
|
|
tplatfrm \
|
2001-06-02 00:03:24 +02:00
|
|
|
tgarygo \
|
|
|
|
tfemit \
|
2001-06-04 16:04:39 +02:00
|
|
|
tbemit \
|
2001-06-07 20:41:59 +02:00
|
|
|
tabemit \
|
|
|
|
tobemit \
|
|
|
|
tlbemit \
|
2001-06-04 14:54:44 +02:00
|
|
|
tifemit \
|
|
|
|
tggleft \
|
2001-06-04 15:20:30 +02:00
|
|
|
tggright \
|
2001-06-04 21:01:17 +02:00
|
|
|
tgstop \
|
2001-06-05 16:38:11 +02:00
|
|
|
thazard \
|
2001-06-05 18:01:22 +02:00
|
|
|
tbgeyser \
|
2001-06-05 22:21:11 +02:00
|
|
|
thazwalk \
|
2001-06-06 15:58:08 +02:00
|
|
|
tsemit \
|
2001-06-06 20:40:34 +02:00
|
|
|
tsswitch \
|
2001-06-07 18:33:19 +02:00
|
|
|
tgbowl \
|
|
|
|
twdripemit \
|
|
|
|
tadripemit \
|
|
|
|
todripemit \
|
2001-06-08 15:35:08 +02:00
|
|
|
tldripemit \
|
|
|
|
tsdownemit \
|
|
|
|
tsleftemit \
|
2001-06-15 23:24:14 +02:00
|
|
|
tsrightemit \
|
|
|
|
twindup \
|
|
|
|
twinddown \
|
|
|
|
twindleft \
|
2001-06-19 23:38:18 +02:00
|
|
|
twindright \
|
|
|
|
toilgeyser
|
|
|
|
|
2001-03-06 17:59:04 +01:00
|
|
|
|
2000-08-29 18:28:00 +02:00
|
|
|
utils_src := utils \
|
2001-04-01 22:11:41 +02:00
|
|
|
sincos \
|
|
|
|
pak
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2001-04-01 22:11:41 +02:00
|
|
|
utils_src_mip := mathmip \
|
2000-08-29 18:28:00 +02:00
|
|
|
replace
|
|
|
|
|
2000-10-20 23:52:46 +02:00
|
|
|
system_src_mip := except_a \
|
|
|
|
gp \
|
2000-08-29 18:28:00 +02:00
|
|
|
lnkopt \
|
|
|
|
$(VERSION)/$(TERRITORY)/$(FILE_SYSTEM)/info
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile Build Lists
|
|
|
|
# ----------------------------
|
|
|
|
SRC_DIRS := $(patsubst $(SOURCE_DIR)/%,%,$(wildcard $(SOURCE_DIR)/*))
|
|
|
|
|
|
|
|
ALL_ASM_OBJS := $(foreach SRC_DIR,$(SRC_DIRS),$(foreach FILE,$($(SRC_DIR)_src_mip),$(SRC_DIR)/$(FILE).o))
|
|
|
|
ALL_CPP_OBJS := $(foreach SRC_DIR,$(SRC_DIRS),$(foreach FILE,$($(SRC_DIR)_src),$(SRC_DIR)/$(FILE).o))
|
|
|
|
|
|
|
|
ALL_CODE_OBJS := $(ALL_ASM_OBJS) $(ALL_CPP_OBJS)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Libraries we need
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
include $(BUILD_DIR)/outdirs.mak
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Libraries we need
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
PSX_LIBS := libc libapi libetc libspu libsnd \
|
|
|
|
libgpu libcard libpress \
|
|
|
|
libcd libtap libcomb libmcrd \
|
|
|
|
libgte libpad libds
|
|
|
|
MOD_LIBS := xmplay
|
|
|
|
|
|
|
|
PSX_LIBS_FULL := $(foreach FILE,$(PSX_LIBS),$(PSYQ_LIB_DIR)/$(FILE).lib)
|
|
|
|
FILESYS_LIBS_FULL := $(foreach FILE,$($(FILE_SYSTEM)_FILESYS_LIB),$(PSYQ_LIB_DIR)/$(FILE).lib)
|
|
|
|
MOD_LIBS_FULL := $(foreach FILE,$(MOD_LIBS),$(MOD_LIB_DIR)/$(FILE).lib)
|
|
|
|
|
|
|
|
ALL_LIBS_FULL := $(PSX_LIBS_FULL) $(MOD_LIBS_FULL) $(FILESYS_LIBS_FULL)
|
|
|
|
|
|
|
|
EXTRA_OBJS := $(VLC_LIB_DIR)/vlc_bit.o
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Do all the stuff we need to do to build the source code into obj files
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.PHONY : code cleancode
|
|
|
|
|
|
|
|
# Cpp files first
|
|
|
|
# ---------------
|
|
|
|
include $(BUILD_DIR)/ccopt.mak
|
|
|
|
|
|
|
|
$(OBJ_DIR)/%.o : $(SOURCE_DIR)/%.cpp
|
|
|
|
@$(ECHO) Compiling $<
|
|
|
|
@$(CC) -c $(COMMON_CCFLAGS) $< -o a.o
|
|
|
|
@dmpsx -b a.o
|
|
|
|
@objbodge a.o $@
|
|
|
|
@$(RM) a.o
|
|
|
|
|
|
|
|
# Stuff to make Info.mip
|
|
|
|
# ----------------------
|
|
|
|
arse: $(SOURCE_DIR)/system/$(VERSION)/$(TERRITORY)/$(FILE_SYSTEM)/info.mip
|
|
|
|
|
|
|
|
$(SOURCE_DIR)/system/$(VERSION)/$(TERRITORY)/$(FILE_SYSTEM)/info.mip : makefile.gaz $(USER_VAR_FILE)
|
|
|
|
@$(REDIR) $@ \
|
|
|
|
'$(TAB)section .rdata' \
|
|
|
|
'$(TAB)global INF_Version' \
|
|
|
|
'$(TAB)global INF_Territory' \
|
|
|
|
'$(TAB)global INF_FileSystem' \
|
|
|
|
'INF_Version db &$(VERSION)&,0' \
|
|
|
|
'INF_Territory db &$(TERRITORY)&,0' \
|
|
|
|
'INF_FileSystem db &$(FILE_SYSTEM)&,0'
|
|
|
|
|
|
|
|
|
|
|
|
# Assembly here
|
|
|
|
# -------------
|
|
|
|
$(OBJ_DIR)/%.o : $(SOURCE_DIR)/%.mip
|
|
|
|
@$(ECHO) Assembling $<
|
|
|
|
@$(ASM) $(ASM_OPTS) $<,$@
|
|
|
|
|
|
|
|
# Overal stuff here
|
|
|
|
# -----------------
|
|
|
|
CODE_OBJS_TO_MAKE := $(foreach FILE,$(ALL_CODE_OBJS),$(OBJ_DIR)/$(FILE))
|
|
|
|
|
|
|
|
code : $(CODE_OBJS_TO_MAKE)
|
|
|
|
|
|
|
|
cleancode :
|
|
|
|
@$(RM) -f $(CODE_OBJS_TO_MAKE)
|
|
|
|
@$(ECHO) Cleaned code output
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Do all the stuff we need to make our CPE, MAP and EXE files
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
.PHONY: link cleanlink
|
|
|
|
|
|
|
|
include $(BUILD_DIR)/lnk.mak
|
|
|
|
|
|
|
|
CPE_FILE := $(VERSION_DIR)/$(PROJ).cpe
|
|
|
|
MAP_FILE := $(VERSION_DIR)/$(PROJ).map
|
|
|
|
|
|
|
|
SYM_FILE := $(VERSION_DIR)/$(PROJ).sym
|
|
|
|
|
|
|
|
LINK_FILE := $(TEMP_DIR)/$(PROJ).ln
|
|
|
|
|
|
|
|
$(LINK_FILE) : makefile.gaz $(BUILD_DIR)/lnk.mak $(USER_VAR_FILE)
|
|
|
|
@$(REDIR) $(LINK_FILE) $(LINKER_FILE_MACRO)
|
|
|
|
|
|
|
|
LINK_FILES_TO_MAKE := $(CPE_FILE) $(MAP_FILE) $(SYM_FILE)
|
|
|
|
|
|
|
|
$(LINK_FILES_TO_MAKE) : $(LINK_FILE) $(ALL_LIBS_FULL) $(CODE_OBJS_TO_MAKE)
|
|
|
|
@$(LNK) $(LNK_FLAGS) @$(LINK_FILE),$(CPE_FILE),$(SYM_FILE),$(MAP_FILE)
|
|
|
|
symmunge $(SYM_FILE)
|
2000-12-12 21:56:51 +01:00
|
|
|
ifeq ($(USER_NAME),daveox)
|
2000-08-29 18:28:00 +02:00
|
|
|
@cp stats.txt '$(SIZES_DIR)/$(shell $(DATE) '+%d-%m-%Y_%H-%M-%S')'
|
|
|
|
endif
|
|
|
|
|
|
|
|
link : $(LINK_FILES_TO_MAKE)
|
|
|
|
|
|
|
|
cleanlink :
|
|
|
|
@$(RM) -f $(LINK_FILES_TO_MAKE) $(LINK_FILE)
|
|
|
|
@$(ECHO) Cleaned link output
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Stuff so you can clean individual files
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
MAKE_TARGETS := $(subst /,.,$(patsubst %.o,%,$(foreach FILE,$(ALL_CODE_OBJS),$(FILE))))
|
|
|
|
|
|
|
|
CLEAN_TARGETS := $(addprefix clean.,$(MAKE_TARGETS))
|
|
|
|
|
|
|
|
.PHONY: $(CLEAN_TARGETS)
|
|
|
|
.PHONY: $(MAKE_TARGETS)
|
|
|
|
|
|
|
|
$(CLEAN_TARGETS) :
|
|
|
|
@$(RM) -f $(addprefix $(OBJ_DIR)/,$(addsuffix .o,$(subst .,/,$(subst clean.,,$@))))
|
|
|
|
@$(ECHO) Cleaned $(addprefix $(OBJ_DIR)/,$(addsuffix .o,$(subst .,/,$(subst clean.,,$@))))
|
|
|
|
|
|
|
|
$(MAKE_TARGETS) :
|
|
|
|
$(MAKE) -r -f makefile.gaz VERSION=$(VERSION) TERRITORY=$(TERRITORY) clean.$@
|
|
|
|
$(MAKE) -r -f makefile.gaz VERSION=$(VERSION) TERRITORY=$(TERRITORY) $(OBJ_DIR)/$(subst .,/,$@).o
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# This bit does everything needed for generating autodependancies
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
ALL_CODE_DEPS := $(patsubst %.o,%.d,$(addprefix $(DEPS_DIR)/,$(ALL_CODE_OBJS)))
|
|
|
|
|
|
|
|
$(DEPS_DIR)/%.d : $(SOURCE_DIR)/%.cpp
|
|
|
|
@$(MKDIR) -p $(dir $@)
|
|
|
|
-@$(CC) -M $(COMMON_CCFLAGS) $< -o $(TEMP_DIR)/deps.tmp
|
|
|
|
@$(PL) $(PERL_SCRIPT_DIR)/dep.pl $(TEMP_DIR)/deps.tmp $@ $(OBJ_DIR)/$(subst .cpp,.o,$(subst $(SOURCE_DIR)/,,$<))
|
|
|
|
@$(RM) $(TEMP_DIR)/deps.tmp
|
|
|
|
@$(ECHO) Generated autodependancies for $<
|
|
|
|
|
|
|
|
deps : $(ALL_CODE_DEPS)
|
|
|
|
@echo Made deps
|
|
|
|
|
|
|
|
#ifndef NODEPS
|
|
|
|
include $(ALL_CODE_DEPS)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
$(DEPS_DIR)/%.d : $(SOURCE_DIR)/%.mip
|
|
|
|
@$(REDIR) $@ '#'
|
|
|
|
|
|
|
|
cleandeps :
|
|
|
|
@$(RM) -f $(ALL_CODE_DEPS)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Boot strap stuff
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2001-04-12 23:39:56 +02:00
|
|
|
CD_BUILD_DIR := CdBuild/
|
|
|
|
CD_DIR := $(CD_BUILD_DIR)/$(TERRITORY)
|
2000-08-29 18:28:00 +02:00
|
|
|
BIGLUMP_FILE := $(VERSION_DIR)/BIGLUMP.BIN
|
2000-08-29 22:33:18 +02:00
|
|
|
BIN_OUTFILE := SPONGEY.BIN
|
2000-08-29 18:28:00 +02:00
|
|
|
BOOTSTRAP_DIR := source/psxboot/
|
|
|
|
BOOTSTRAP_IN := $(BOOTSTRAP_DIR)/PsxBoot.cpp
|
|
|
|
BOOTSTRAP_CPE := $(TEMP_DIR)/PsxBoot.cpe
|
|
|
|
BOOTSTRAP_MAP := $(TEMP_DIR)/PsxBoot.map
|
|
|
|
BOOTSTRAP_SYM := $(TEMP_DIR)/PsxBoot.sym
|
|
|
|
BOOTSTRAP_EXE := $(TEMP_DIR)/PsxBoot.exe
|
|
|
|
|
2001-01-19 17:07:08 +01:00
|
|
|
USA_BOOTSTRAP_OUT :=$(CD_DIR)/BOOTUSA.EXE
|
2000-08-29 18:28:00 +02:00
|
|
|
USA_CPE2X_PARAM :=/CA
|
2001-01-19 17:07:08 +01:00
|
|
|
EUR_BOOTSTRAP_OUT :=$(CD_DIR)/BOOTEUR.EXE
|
2000-08-29 18:28:00 +02:00
|
|
|
EUR_CPE2X_PARAM :=/CE
|
|
|
|
|
|
|
|
cddata:
|
2001-04-13 01:03:08 +02:00
|
|
|
ifeq ($(USER_NAME),CDBUILD)
|
2001-04-17 22:57:00 +02:00
|
|
|
@$(MKDIR) -p $(CD_DIR)
|
|
|
|
@$(CPE2BIN) $(CPE_FILE) $(CD_DIR)/$(BIN_OUTFILE)
|
|
|
|
@$(CP) -u $(BIGLUMP_FILE) $(CD_DIR) -f
|
|
|
|
@$(TGA2GFX) graphics/screens/legal.tga $(CD_DIR)/LEGAL.GFX
|
|
|
|
@$(CP) -u Data/CdData/$(TERRITORY).cnf $(CD_DIR)/SYSTEM.CNF -f
|
|
|
|
@$(CP) -u Data/CdData/$(TERRITORY).ccs $(CD_BUILD_DIR)/$(TERRITORY).ccs
|
|
|
|
@$(CP) -u Data/CdData/thq.str $(CD_DIR)/thq.str
|
|
|
|
@$(CP) -u Data/CdData/intro.str $(CD_DIR)/intro.str
|
2001-05-23 23:27:29 +02:00
|
|
|
@$(CP) -u Data/CdData/track1.ixa $(CD_DIR)/track1.ixa
|
2001-04-17 22:57:00 +02:00
|
|
|
@$(RAR) x data/CDData/ZZZZZZZ.RAR $(CD_DIR)/ -y >nul
|
|
|
|
@$(ECHO) HERE
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
# Compile bootstrap
|
2001-04-17 22:57:00 +02:00
|
|
|
@ccpsx -O2 -g $(BOOTSTRAP_IN) -c -Xo$801c0000 $(COMMON_CCFLAGS) -oPsxBoot.o
|
|
|
|
@slink -m -psx -c -v -z -o 0x801c0000 -cpemunge -we -wm -wo @$(BOOTSTRAP_DIR)/psxboot.ln,$(BOOTSTRAP_CPE),$(BOOTSTRAP_SYM),$(BOOTSTRAP_MAP)
|
|
|
|
@$(RM) PsxBoot.o
|
|
|
|
@Cpe2Exe $($(TERRITORY)_CPE2X_PARAM) $(BOOTSTRAP_CPE)
|
|
|
|
@$(CP) -u $(BOOTSTRAP_EXE) $($(TERRITORY)_BOOTSTRAP_OUT) -f
|
|
|
|
@$(ECHO) $(TERRITORY) Psx CD Built
|
|
|
|
|
|
|
|
@$(BUILDCD) -i$(CD_BUILD_DIR)/psx.img -l data/cddata/$(TERRITORY).cti
|
|
|
|
@$(STRIPISO) s 2352 $(CD_BUILD_DIR)/psx.img $(CD_BUILD_DIR)/$(TERRITORY).iso
|
|
|
|
@$(RM) $(CD_BUILD_DIR)/psx.img
|
|
|
|
@$(RM) CDW900E.toc
|
|
|
|
@$(RM) QSheet.toc
|
2001-04-12 23:39:56 +02:00
|
|
|
@$(ECHO) $(TERRITORY) Iso Built
|
2001-04-17 22:57:00 +02:00
|
|
|
endif
|
2001-04-12 23:39:56 +02:00
|
|
|
|
2001-04-13 01:03:08 +02:00
|
|
|
|
|
|
|
# tools\STRIPISO.EXE s 2336 $(CD_BUILD_DIR)/psx.img $(CD_BUILD_DIR)/$(TERRITORY).iso
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Main dependancy
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
ifdef ERR_STR
|
|
|
|
all:
|
|
|
|
@$(ECHO) Error: $(ERR_STR)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
all: dirs link cddata
|
|
|
|
@$(ECHO) Built !$(TERRITORY):$(VERSION):$(FILE_SYSTEM)!.
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean : cleanlink cleandeps cleancode
|
|
|
|
@$(ECHO) Cleaning complete
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# end---
|