2000-08-29 18:28:00 +02:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# MAKEFILE.GFX
|
|
|
|
#
|
|
|
|
# Makes all the graphics and data needed for the game
|
|
|
|
#
|
|
|
|
# Tabbed for 5 9 (Please do not change)
|
|
|
|
#
|
|
|
|
# Created: 10th 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
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
BUILD_DIR := build
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Includes
|
|
|
|
# --------
|
|
|
|
include $(BUILD_DIR)/globals.mak
|
|
|
|
include $(BUILD_DIR)/getuser.mak
|
|
|
|
include $(BUILD_DIR)/parse.mak
|
|
|
|
include $(BUILD_DIR)/outdirs.mak
|
|
|
|
|
|
|
|
TEMP_FILE := $(TEMP_BUILD_DIR)/build.tmp
|
|
|
|
|
2000-12-12 21:56:51 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#--- Levels -----------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
2001-01-03 16:48:42 +01:00
|
|
|
LEVELS_OPTS := -t:8,2,1 -s:256
|
2000-12-12 21:56:51 +01:00
|
|
|
LEVELS_IN_DIR := $(GRAF_DIR)/levels
|
|
|
|
LEVELS_OUT_DIR := $(DATA_OUT)/levels
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_MAKEFILE_DIR := $(TEMP_BUILD_DIR)/levels
|
|
|
|
LEVELS_DIRS_TO_MAKE := $(LEVELS_MAKEFILE_DIR) $(LEVELS_OUT_DIR)
|
2000-12-12 21:56:51 +01:00
|
|
|
|
|
|
|
LEVELS_CHAPTERS := CHAPTER01 CHAPTER02 CHAPTER03 CHAPTER04 CHAPTER05
|
2001-01-19 16:47:16 +01:00
|
|
|
|
2001-01-15 16:22:33 +01:00
|
|
|
LEVELS_CHAPTER01 :=
|
2001-01-17 23:19:53 +01:00
|
|
|
LEVELS_CHAPTER01_LEVEL01 :=
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_CHAPTER01_LEVEL02 :=
|
|
|
|
LEVELS_CHAPTER01_LEVEL03 :=
|
|
|
|
LEVELS_CHAPTER01_LEVEL04 :=
|
2001-01-17 23:19:53 +01:00
|
|
|
|
|
|
|
LEVELS_CHAPTER02 := LEVEL04
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_CHAPTER02_LEVEL01 :=
|
|
|
|
LEVELS_CHAPTER02_LEVEL02 :=
|
|
|
|
LEVELS_CHAPTER02_LEVEL03 :=
|
2001-01-17 23:19:53 +01:00
|
|
|
LEVELS_CHAPTER02_LEVEL04 := 01
|
|
|
|
|
|
|
|
LEVELS_CHAPTER03 :=
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_CHAPTER03_LEVEL01 :=
|
|
|
|
LEVELS_CHAPTER03_LEVEL02 :=
|
|
|
|
LEVELS_CHAPTER03_LEVEL03 :=
|
|
|
|
LEVELS_CHAPTER03_LEVEL04 :=
|
2001-01-17 23:19:53 +01:00
|
|
|
|
2000-12-12 21:56:51 +01:00
|
|
|
LEVELS_CHAPTER04 :=
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_CHAPTER04_LEVEL01 :=
|
|
|
|
LEVELS_CHAPTER04_LEVEL02 :=
|
|
|
|
LEVELS_CHAPTER04_LEVEL03 :=
|
|
|
|
LEVELS_CHAPTER04_LEVEL04 :=
|
2001-01-17 23:19:53 +01:00
|
|
|
|
2000-12-12 21:56:51 +01:00
|
|
|
LEVELS_CHAPTER05 :=
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_CHAPTER05_LEVEL01 :=
|
|
|
|
LEVELS_CHAPTER05_LEVEL02 :=
|
|
|
|
LEVELS_CHAPTER05_LEVEL03 :=
|
|
|
|
LEVELS_CHAPTER05_LEVEL04 :=
|
|
|
|
|
|
|
|
LEVELS_CHAPTER06 :=
|
|
|
|
LEVELS_CHAPTER06_LEVEL01 :=
|
|
|
|
LEVELS_CHAPTER06_LEVEL02 :=
|
|
|
|
LEVELS_CHAPTER06_LEVEL03 :=
|
|
|
|
LEVELS_CHAPTER06_LEVEL04 :=
|
2000-12-12 21:56:51 +01:00
|
|
|
|
2001-01-17 23:19:53 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_MAKEFILES := $(foreach CHAPTER,$(LEVELS_CHAPTERS),$(foreach LEVEL,$(LEVELS_$(CHAPTER)),$(LEVELS_MAKEFILE_DIR)/$(CHAPTER)_$(LEVEL).mak))
|
2000-12-12 21:56:51 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
$(LEVELS_MAKEFILES): $(LEVELS_DIRS_TO_MAKE) makefile.gfx $(BUILD_DIR)/mklevel.pl
|
|
|
|
@$(PL) $(BUILD_DIR)/mklevel.pl $@ $(notdir $(basename $@))
|
2000-12-12 21:56:51 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
include $(LEVELS_MAKEFILES)
|
2000-12-12 21:56:51 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
LEVELS_ALL_OUT := $(foreach CHAPTER,$(LEVELS_CHAPTERS),$(foreach LEVEL,$(LEVELS_$(CHAPTER)),$($(CHAPTER)_$(LEVEL)_OUT)))
|
2000-12-12 21:56:51 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
GFX_DATA_OUT += $(LEVELS_ALL_OUT)
|
2001-01-17 23:19:53 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
levels : $(LEVELS_ALL_OUT)
|
|
|
|
@$(ECHO) Levels made
|
2001-01-17 23:19:53 +01:00
|
|
|
|
2001-01-19 16:47:16 +01:00
|
|
|
cleanlevels : $(foreach CHAPTER,$(LEVELS_CHAPTERS),$(foreach LEVEL,$(LEVELS_$(CHAPTER)), clean$(CHAPTER)_$(LEVEL)))
|
|
|
|
@$(ECHO) Levels cleaned
|
2000-12-12 21:56:51 +01:00
|
|
|
|
|
|
|
|
2001-01-10 18:21:59 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Actors
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
ACTOR_IN_DIR := $(GRAF_DIR)/Characters
|
|
|
|
ACTOR_OUT_DIR := $(DATA_OUT)/Actors
|
|
|
|
ACTOR_MAKEFILE_DIR := $(TEMP_BUILD_DIR)/Actors
|
|
|
|
ACTORS_DIRS_TO_MAKE := $(ACTOR_MAKEFILE_DIR) $(ACTOR_OUT_DIR)
|
|
|
|
|
|
|
|
# Global flags
|
|
|
|
GENERIC_ACT_TEX_FLAGS = -c+ -t:27,1,1 -w+ -b+
|
|
|
|
GEN_GRP_TEX_FLAGS= -t:28,1,1
|
|
|
|
|
|
|
|
actors: player
|
|
|
|
|
|
|
|
cleanactors: cleanplayer
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Player
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
PLAYER_FILE := SpongeBob
|
|
|
|
PLAYER_IN_DIR:= $(ACTOR_IN_DIR)/$(PLAYER_FILE)
|
|
|
|
PLAYER_OUT_DIR := $(ACTOR_OUT_DIR)
|
|
|
|
|
|
|
|
PLAYER_MOD_IN := $(PLAYER_IN_DIR)/$(PLAYER_FILE).Gin
|
|
|
|
PLAYER_MOD_OUT := $(PLAYER_OUT_DIR)/$(PLAYER_FILE).a3d
|
|
|
|
PLAYER_TEX_IN := $(PLAYER_IN_DIR)/*.bmp
|
|
|
|
PLAYER_TEX_OUT := $(PLAYER_OUT_DIR)/$(PLAYER_FILE).Tex
|
|
|
|
|
|
|
|
PLAYER_DEP_IN := $(PLAYER_MOD_IN) $(PLAYER_TEX_IN)
|
|
|
|
PLAYER_DEP_OUT := $(PLAYER_MOD_OUT) $(PLAYER_TEX_OUT)
|
|
|
|
|
|
|
|
player: $(PLAYER_DEP_OUT)
|
|
|
|
|
|
|
|
cleanplayer:
|
|
|
|
@$(RM) -f $(PLAYER_DEP_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) Player Cleaned
|
2001-01-10 18:21:59 +01:00
|
|
|
|
|
|
|
$(PLAYER_DEP_OUT) : $(PLAYER_DEP_IN)
|
2001-01-12 23:37:21 +01:00
|
|
|
$(MKACTOR3D) $(PLAYER_MOD_IN) -o:$(PLAYER_OUT_DIR) -t:24,1,1 -s:256
|
2001-01-10 18:21:59 +01:00
|
|
|
|
|
|
|
GFX_DATA_OUT += $(PLAYER_DEP_OUT)
|
|
|
|
|
2001-01-12 23:37:21 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Animations
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
anims: playeranims
|
|
|
|
cleananims: cleanplayeranims
|
|
|
|
|
|
|
|
ANIM_OUT_DIR := $(DATA_OUT)/anims
|
|
|
|
PLAYER_ANIM_IN_DIR := $(ACTOR_IN_DIR)/SpongeBob/SbAnim
|
|
|
|
|
|
|
|
# duff
|
2001-01-15 16:47:48 +01:00
|
|
|
# idlegeneric02 idlegeneric05 idlegeneric03
|
2001-01-19 16:47:16 +01:00
|
|
|
# PLAYER_ANIM_LIST := buttbounce deathelectric deathfall electricshock fall fireaim firerecoill float getup hitground01 hover idleboots idlecoral \
|
|
|
|
# idlecoral01 idlegeneric01 idlegeneric04 idlelauncher idlenet jumpend jumpstart karate \
|
|
|
|
# knockback knockforward netfirelob netswipe netswipejump run runjumpend runjumpstart runstart runstop soakup teeterback teeterfront wakeup
|
|
|
|
|
|
|
|
PLAYER_ANIM_LIST := idlegeneric04 idlelauncher runstart run runstop
|
2001-01-12 23:37:21 +01:00
|
|
|
|
|
|
|
PLAYER_ANIM_IN := $(foreach FILE, $(PLAYER_ANIM_LIST),$(PLAYER_ANIM_IN_DIR)/$(FILE).gin)
|
|
|
|
PLAYER_ANIM_OUT := $(ANIM_OUT_DIR)/Player.Abk
|
|
|
|
|
|
|
|
playeranims: $(PLAYER_ANIM_IN)
|
|
|
|
|
|
|
|
cleanplayeranims:
|
|
|
|
@$(RM) -f $(PLAYER_ANIM_OUT)
|
|
|
|
@$(ECHO) Player Anims Cleaned
|
|
|
|
|
|
|
|
$(PLAYER_ANIM_OUT) : $(PLAYER_ANIM_IN)
|
|
|
|
@$(MKANIM3D) $(PLAYER_ANIM_IN) -o:$(PLAYER_ANIM_OUT) -s:256
|
|
|
|
GFX_DATA_OUT += $(PLAYER_ANIM_OUT)
|
|
|
|
|
|
|
|
|
2001-01-10 18:21:59 +01:00
|
|
|
#----------------------------------------------------------------------------
|
2000-08-29 18:28:00 +02:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Text translations
|
|
|
|
#----------------------------------------------------------------------------
|
2001-01-10 18:21:59 +01:00
|
|
|
#----------------------------------------------------------------------------
|
2000-08-29 18:28:00 +02:00
|
|
|
.PHONY: translate cleantranslate
|
|
|
|
|
|
|
|
LANGUAGES := swe \
|
|
|
|
dut \
|
|
|
|
ita \
|
|
|
|
ger
|
|
|
|
|
|
|
|
|
|
|
|
TRANS_IN_DIR := $(GAME_DATA_DIR)/translations
|
|
|
|
TRANS_OUT_DIR := $(DATA_OUT)/translations
|
|
|
|
TRANS_LBM_OUT_DIR := $(REPORT_DIR)/translations
|
|
|
|
|
|
|
|
TRANS_IN_ENG := $(TRANS_IN_DIR)/text.dat
|
|
|
|
|
|
|
|
TRANS_FINAL_DAT_FILE := $(TRANS_OUT_DIR)/final.dat
|
|
|
|
|
|
|
|
ALL_TRANS_OUT_DIRS := $(TRANS_OUT_DIR) \
|
|
|
|
$(TRANS_LBM_OUT_DIR)
|
|
|
|
|
|
|
|
ALL_TRANS_IN_FILES := $(foreach FILE,$(LANGUAGES),$(TRANS_IN_DIR)/$(FILE).dat)
|
|
|
|
|
|
|
|
TRANS_IN_FILES := $(TRANS_IN_ENG) $(ALL_TRANS_IN_FILES)
|
|
|
|
|
|
|
|
TRANS_OUT_DAT := $(foreach FILE, $(LANGUAGES),$(TRANS_OUT_DIR)/$(FILE).dat) $(TRANS_OUT_DIR)/id.dat $(TRANS_OUT_DIR)/eng.dat
|
|
|
|
#$(TRANS_OUT_KANJI_TAB)
|
|
|
|
TRANS_OUT_HDR := $(INC_DIR)/trans.h
|
|
|
|
|
2001-01-10 18:27:12 +01:00
|
|
|
SCRIPT_TRANS_HDR := $(GAME_DATA_DIR)/scripts/defs/trans.scr
|
|
|
|
|
2000-08-29 18:28:00 +02:00
|
|
|
TRANS_OUT_FILES := $(TRANS_OUT_HDR) $(TRANS_OUT_DAT) $(TRANS_OUT_LBM_LIST) $(TRANS_FINAL_DAT_FILE)
|
|
|
|
|
|
|
|
$(TRANS_OUT_FILES) : $(TRANS_IN_FILES)
|
|
|
|
perl tools/perl/pl/lang.pl $(TRANS_IN_ENG) $(TRANS_FINAL_DAT_FILE) $(ALL_TRANS_IN_FILES)
|
|
|
|
transtext $(LANG_OP) -h:$(TRANS_OUT_HDR) -o:$(TRANS_OUT_DIR) $(TRANS_FINAL_DAT_FILE)
|
2001-01-10 18:27:12 +01:00
|
|
|
perl tools/perl/pl/text_extract.pl $(TRANS_OUT_HDR) $(SCRIPT_TRANS_HDR) STR__INGAME__
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
translate : $(TRANS_OUT_FILES)
|
|
|
|
@$(ECHO) made translations
|
|
|
|
|
|
|
|
cleantranslate:
|
|
|
|
@$(RM) -f $(TRANS_OUT_FILES)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) Translations Cleaned
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
GFX_DATA_OUT += $(TRANS_OUT_DAT)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#--- UI ---------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
UI_GFX_DIR := $(GRAF_DIR)/ui
|
|
|
|
UI_GFX_OUT_DIR := $(DATA_OUT)/ui
|
|
|
|
|
2000-11-16 00:41:47 +01:00
|
|
|
UI_GFX_FONT := font
|
2000-11-09 18:08:20 +01:00
|
|
|
UI_GFX_FONT_IN := $(foreach FILE,$(UI_GFX_FONT),$(UI_GFX_DIR)/$(FILE).anm)
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2001-01-10 18:27:12 +01:00
|
|
|
UI_GFX_NONTRANS := faces\mr_krabs.bmp faces\patrick.bmp faces\plankton.bmp \
|
2001-01-11 22:44:06 +01:00
|
|
|
faces\sandy.bmp faces\spongebob.bmp faces\squidward.bmp \
|
|
|
|
faces\mermaidman.bmp faces\barnacleboy.bmp faces\jack_custard.bmp
|
2000-11-03 01:07:42 +01:00
|
|
|
UI_GFX_NONTRANS_IN := $(foreach FILE,$(UI_GFX_NONTRANS),$(UI_GFX_DIR)/$(FILE))
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2001-01-09 16:49:50 +01:00
|
|
|
UI_GFX_TRANS := +vbamboo.bmp +vbambootl.bmp +vbambootr.bmp +vbamboobl.bmp +vbamboobr.bmp \
|
|
|
|
+hbamboo.bmp +hbambootl.bmp +hbambootr.bmp +hbamboobl.bmp +hbamboobr.bmp \
|
2000-11-23 18:00:09 +01:00
|
|
|
+butU.bmp +butD.bmp +butL.bmp +butR.bmp \
|
|
|
|
+butC.bmp +butS.bmp +butX.bmp +butT.bmp
|
2000-11-03 01:07:42 +01:00
|
|
|
UI_GFX_TRANS_IN := $(foreach FILE,$(UI_GFX_TRANS),$(UI_GFX_DIR)/$(FILE))
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2000-11-09 18:08:20 +01:00
|
|
|
UI_GFX_TEX_IN := $(UI_GFX_FONT_IN) ${UI_GFX_NONTRANS_IN} ${UI_GFX_TRANS_IN}
|
|
|
|
UI_GFX_TEX_OUT := $(UI_GFX_OUT_DIR)/UIGfx.Spr
|
|
|
|
UI_GFX_REP_FILE := $(REPORT_DIR)/UIGfx.rep
|
|
|
|
UI_GFX_HDR_FILE := $(INC_DIR)/UIGfx.h
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2000-11-13 18:03:20 +01:00
|
|
|
cleanui :
|
2000-08-29 18:28:00 +02:00
|
|
|
$(RM) -f $(UI_GFX_TEX_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) UI Gfx Cleaned
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2000-11-13 18:03:20 +01:00
|
|
|
ui: $(UI_GFX_TEX_IN)
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
$(UI_GFX_TEX_OUT) : $(UI_GFX_TEX_IN)
|
2001-01-09 16:49:50 +01:00
|
|
|
@parkgrab -c+ -z+ $(UI_GFX_FONT_IN) ${UI_GFX_TRANS_IN} -c- -z- ${UI_GFX_NONTRANS_IN} -b+ -t:31,1,1 -l:$(REPORT_DIR)/ui.lbm -o:$(UI_GFX_TEX_OUT) -k:$(UI_GFX_REP_FILE)
|
2000-08-29 18:28:00 +02:00
|
|
|
@$(MV) -f $(UI_GFX_OUT_DIR)/uigfx.h $(UI_GFX_HDR_FILE)
|
|
|
|
|
|
|
|
GFX_DATA_OUT += $(UI_GFX_TEX_OUT)
|
|
|
|
|
2000-09-28 17:13:42 +02:00
|
|
|
#----------------------------------------------------------------------------
|
2000-10-18 00:04:57 +02:00
|
|
|
# Ingame graphic effects
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
INGAMEFX_GFX_DIR := $(GRAF_DIR)/ingamefx
|
|
|
|
INGAMEFX_GFX_OUT_DIR := $(DATA_OUT)/ingamefx
|
|
|
|
|
|
|
|
INGAMEFX_GFX_NONTRANS :=
|
|
|
|
INGAMEFX_GFX_NONTRANS_IN := $(foreach FILE,$(INGAMEFX_GFX_NONTRANS),$(INGAMEFX_NONTRANS_DIR)/$(FILE))
|
|
|
|
|
2000-11-28 01:06:22 +01:00
|
|
|
INGAMEFX_GFX_TRANS := +bubble_1.bmp +bubble_2.bmp +bubble_3.bmp
|
2000-10-18 00:04:57 +02:00
|
|
|
INGAMEFX_GFX_TRANS_IN := $(foreach FILE,$(INGAMEFX_GFX_TRANS),$(INGAMEFX_GFX_DIR)/$(FILE))
|
|
|
|
|
|
|
|
INGAMEFX_GFX_TEX_IN := ${INGAMEFX_GFX_NONTRANS_IN} ${INGAMEFX_GFX_TRANS_IN}
|
|
|
|
INGAMEFX_GFX_TEX_OUT := $(INGAMEFX_GFX_OUT_DIR)/ingamefx.Spr
|
|
|
|
INGAMEFX_GFX_REP_FILE := $(REPORT_DIR)/ingamefx.rep
|
|
|
|
INGAMEFX_GFX_HDR_FILE := $(INC_DIR)/ingamefx.h
|
|
|
|
|
|
|
|
cleaningamefx :
|
|
|
|
$(RM) -f $(INGAMEFX_GFX_TEX_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) InGame GFx Cleaned
|
2000-10-18 00:04:57 +02:00
|
|
|
|
|
|
|
ingamefx: $(INGAMEFX_GFX_TEX_IN)
|
|
|
|
|
|
|
|
$(INGAMEFX_GFX_TEX_OUT) : $(INGAMEFX_GFX_TEX_IN)
|
2000-11-16 00:41:47 +01:00
|
|
|
@parkgrab -z+ ${INGAMEFX_GFX_TRANS_IN} -z- ${INGAMEFX_GFX_NONTRANS_IN} -b+ -t:29,1,1 -l:$(REPORT_DIR)/ingamefx.lbm -o:$(INGAMEFX_GFX_TEX_OUT) -k:$(INGAMEFX_GFX_REP_FILE)
|
2000-10-18 00:04:57 +02:00
|
|
|
@$(MV) -f $(INGAMEFX_GFX_OUT_DIR)/ingamefx.h $(INGAMEFX_GFX_HDR_FILE)
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(INGAMEFX_GFX_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(INGAMEFX_GFX_TEX_OUT)
|
|
|
|
|
|
|
|
|
2000-11-13 18:03:20 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Front end graphics
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
FRONTEND_GFX_DIR := $(GRAF_DIR)/frontend
|
|
|
|
FRONTEND_GFX_OUT_DIR := $(DATA_OUT)/frontend
|
|
|
|
|
2000-11-15 16:37:12 +01:00
|
|
|
FRONTEND_GFX_NONTRANS := sky.bmp
|
|
|
|
FRONTEND_GFX_NONTRANS_IN := $(foreach FILE,$(FRONTEND_GFX_NONTRANS),$(FRONTEND_GFX_DIR)/$(FILE))
|
2000-11-13 18:03:20 +01:00
|
|
|
|
2000-11-16 00:41:47 +01:00
|
|
|
FRONTEND_GFX_TRANS := +bg1.bmp
|
2000-11-13 18:03:20 +01:00
|
|
|
FRONTEND_GFX_TRANS_IN := $(foreach FILE,$(FRONTEND_GFX_TRANS),$(FRONTEND_GFX_DIR)/$(FILE))
|
|
|
|
|
2000-11-16 00:41:47 +01:00
|
|
|
FRONTEND_GFX_TRANS_NO_ROT := +island.bmp +sblogo.bmp
|
|
|
|
FRONTEND_GFX_TRANS_NO_ROT_IN := $(foreach FILE,$(FRONTEND_GFX_TRANS_NO_ROT),$(FRONTEND_GFX_DIR)/$(FILE))
|
|
|
|
|
|
|
|
FRONTEND_GFX_TEX_IN := ${FRONTEND_GFX_NONTRANS_IN} ${FRONTEND_GFX_TRANS_IN} ${FRONTEND_GFX_TRANS_NO_ROT_IN}
|
2000-11-13 18:03:20 +01:00
|
|
|
FRONTEND_GFX_TEX_OUT := $(FRONTEND_GFX_OUT_DIR)/frontend.Spr
|
|
|
|
FRONTEND_GFX_REP_FILE := $(REPORT_DIR)/frontend.rep
|
|
|
|
FRONTEND_GFX_HDR_FILE := $(INC_DIR)/frontend.h
|
|
|
|
|
|
|
|
cleanfrontend :
|
|
|
|
$(RM) -f $(FRONTEND_GFX_TEX_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) Frontend Cleaned
|
2000-11-13 18:03:20 +01:00
|
|
|
|
|
|
|
frontend: $(FRONTEND_GFX_TEX_IN)
|
|
|
|
|
|
|
|
$(FRONTEND_GFX_TEX_OUT) : $(FRONTEND_GFX_TEX_IN)
|
2000-11-16 18:46:18 +01:00
|
|
|
@parkgrab -r- -z+ ${FRONTEND_GFX_TRANS_NO_ROT_IN} -r+ ${FRONTEND_GFX_TRANS_IN} -z- ${FRONTEND_GFX_NONTRANS_IN} -b+ -t:30,1,1 -l:$(REPORT_DIR)/frontend.lbm -o:$(FRONTEND_GFX_TEX_OUT) -k:$(FRONTEND_GFX_REP_FILE)
|
2000-11-13 18:03:20 +01:00
|
|
|
@$(MV) -f $(FRONTEND_GFX_OUT_DIR)/frontend.h $(FRONTEND_GFX_HDR_FILE)
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(FRONTEND_GFX_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(FRONTEND_GFX_TEX_OUT)
|
|
|
|
|
|
|
|
|
2000-11-27 18:28:36 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Big TGA backdrops
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
BACKDROPS_IN_DIR := $(GRAF_DIR)/backdrop
|
2000-11-28 01:06:22 +01:00
|
|
|
BACKDROPS_IN := credits sky
|
2000-11-27 18:28:36 +01:00
|
|
|
|
|
|
|
BACKDROPS_OUT_DIR := $(DATA_OUT)/backdrop
|
|
|
|
BACKDROPS_OUT := $(foreach SCREEN,$(BACKDROPS_IN),$(BACKDROPS_OUT_DIR)/$(SCREEN).gfx)
|
|
|
|
|
|
|
|
backdrops : $(BACKDROPS_OUT)
|
|
|
|
|
|
|
|
cleanbackdrops :
|
|
|
|
@$(RM) -f $(BACKDROPS_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) Backdrops Cleaned
|
2000-11-27 18:28:36 +01:00
|
|
|
|
|
|
|
$(BACKDROPS_OUT_DIR)/%.gfx : $(BACKDROPS_IN_DIR)/%.tga
|
|
|
|
alchemy --n -a -15 -^ -o $< $(TEMP_FILE)
|
|
|
|
chopchop $(TEMP_FILE) $@ 20 262144
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(BACKDROPS_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(BACKDROPS_OUT)
|
|
|
|
|
|
|
|
|
2000-10-18 00:04:57 +02:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Sound FX
|
2000-09-28 17:13:42 +02:00
|
|
|
#----------------------------------------------------------------------------
|
2000-10-05 16:16:09 +02:00
|
|
|
SFX_IN_DIR := data/SFX
|
|
|
|
SFX_OUT_DIR := $(DATA_OUT)/SFX
|
|
|
|
|
|
|
|
SFX_LIST := ingame
|
|
|
|
|
|
|
|
SFX_ALL_IN := $(foreach SFX,$(SFX_LIST),$(SFX_IN_DIR)/$(SFX)/$(SFX).PXM $(SFX_IN_DIR)/$(SFX)/$(SFX).VH $(SFX_IN_DIR)/$(SFX)/$(SFX).VB)
|
|
|
|
SFX_ALL_OUT := $(foreach SFX,$(SFX_LIST),$(SFX_OUT_DIR)/$(SFX).PXM $(SFX_OUT_DIR)/$(SFX).VH $(SFX_OUT_DIR)/$(SFX).VB)
|
|
|
|
|
|
|
|
sfx: $(SFX_ALL_OUT)
|
|
|
|
|
|
|
|
cleansfx:
|
|
|
|
@$(RM) -f $(SFX_ALL_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) SFX Cleaned
|
2000-10-05 16:16:09 +02:00
|
|
|
|
|
|
|
$(SFX_ALL_OUT) : $(SFX_ALL_IN)
|
|
|
|
$(CP) $(SFX_ALL_IN) $(SFX_OUT_DIR)
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(SFX_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(SFX_ALL_OUT)
|
|
|
|
|
2000-09-28 17:13:42 +02:00
|
|
|
|
2001-01-03 16:57:20 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Memcard file header
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
MC_HEADER_IN_DIR := $(GAME_DATA_DIR)/memcard
|
|
|
|
MC_HEADER_IN := $(MC_HEADER_IN_DIR)/memhead.bin
|
|
|
|
|
|
|
|
MC_HEADER_OUT_DIR :=$(DATA_OUT)/memcard
|
|
|
|
MC_HEADER_OUT := $(MC_HEADER_OUT_DIR)/memhead.bin
|
|
|
|
|
|
|
|
mcheader: $(MC_HEADER_OUT)
|
|
|
|
|
|
|
|
cleanmcheader:
|
|
|
|
@$(RM) -f $(MC_HEADER_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) MemCard Header Cleaned
|
2001-01-03 16:57:20 +01:00
|
|
|
|
|
|
|
$(MC_HEADER_OUT) : $(MC_HEADER_IN)
|
|
|
|
$(CP) $(MC_HEADER_IN) $(MC_HEADER_OUT)
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(MC_HEADER_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(MC_HEADER_OUT)
|
|
|
|
|
|
|
|
|
2000-09-28 17:13:42 +02:00
|
|
|
#----------------------------------------------------------------------------
|
2000-10-18 00:04:57 +02:00
|
|
|
# Music
|
2000-09-28 17:13:42 +02:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
MUSIC_IN_DIR := data/music
|
|
|
|
MUSIC_OUT_DIR := $(DATA_OUT)/music
|
|
|
|
|
2001-01-03 18:27:48 +01:00
|
|
|
MUSIC_LIST := title hypermmx droppop music ingame
|
2000-09-28 17:13:42 +02:00
|
|
|
|
|
|
|
MUSIC_ALL_IN := $(foreach MUSIC,$(MUSIC_LIST),$(MUSIC_IN_DIR)/$(MUSIC)/$(MUSIC).PXM $(MUSIC_IN_DIR)/$(MUSIC)/$(MUSIC).VH $(MUSIC_IN_DIR)/$(MUSIC)/$(MUSIC).VB)
|
|
|
|
MUSIC_ALL_OUT := $(foreach MUSIC,$(MUSIC_LIST),$(MUSIC_OUT_DIR)/$(MUSIC).PXM $(MUSIC_OUT_DIR)/$(MUSIC).VH $(MUSIC_OUT_DIR)/$(MUSIC).VB)
|
|
|
|
|
|
|
|
music: $(MUSIC_ALL_OUT)
|
|
|
|
|
|
|
|
cleanmusic:
|
|
|
|
@$(RM) -f $(MUSIC_ALL_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) Music Cleaned
|
2000-09-28 17:13:42 +02:00
|
|
|
|
|
|
|
$(MUSIC_ALL_OUT) : $(MUSIC_ALL_IN)
|
|
|
|
$(CP) $(MUSIC_ALL_IN) $(MUSIC_OUT_DIR)
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(MUSIC_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(MUSIC_ALL_OUT)
|
|
|
|
|
|
|
|
|
2000-12-12 22:33:19 +01:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Script stuff..
|
|
|
|
#----------------------------------------------------------------------------
|
2001-01-05 20:25:07 +01:00
|
|
|
SCRIPTS_LIST := test \
|
|
|
|
speechtest
|
|
|
|
|
2000-12-12 22:33:19 +01:00
|
|
|
SCRIPTS_IN_DIR := $(GAME_DATA_DIR)/scripts
|
|
|
|
|
|
|
|
SCRIPTS_OUT_DIR := $(DATA_OUT)/scripts
|
|
|
|
SCRIPTS_OUT := $(foreach SCRIPT,$(SCRIPTS_LIST),$(SCRIPTS_OUT_DIR)/$(SCRIPT).dat)
|
|
|
|
|
|
|
|
scripts : $(SCRIPTS_OUT)
|
|
|
|
|
|
|
|
cleanscripts:
|
|
|
|
@$(RM) -f $(SCRIPTS_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(ECHO) Scripts Cleaned
|
2000-12-12 22:33:19 +01:00
|
|
|
|
2001-01-10 18:27:12 +01:00
|
|
|
# Saves a lot of hassle to make the scripts dependant upon the text database too..
|
|
|
|
$(SCRIPTS_OUT_DIR)/%.dat : $(SCRIPTS_IN_DIR)/%.scr $(SCRIPT_TRANS_HDR)
|
2000-12-12 22:33:19 +01:00
|
|
|
@scripter $< $@
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE += $(SCRIPTS_OUT_DIR)
|
|
|
|
GFX_DATA_OUT += $(SCRIPTS_OUT)
|
|
|
|
|
|
|
|
|
2000-08-29 18:28:00 +02:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Dirs to Make
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2000-09-28 17:13:42 +02:00
|
|
|
GRAF_DIRS_TO_MAKE += $(TRANS_OUT_DIR) \
|
2000-12-07 16:56:20 +01:00
|
|
|
$(UI_GFX_OUT_DIR) \
|
2001-01-10 18:21:59 +01:00
|
|
|
$(ACTORS_DIRS_TO_MAKE) \
|
2001-01-12 23:37:21 +01:00
|
|
|
$(ANIM_OUT_DIR) \
|
2001-01-19 16:47:16 +01:00
|
|
|
$(LEVELS_DIRS_TO_MAKE)
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
gdirs : $(GRAF_DIRS_TO_MAKE)
|
|
|
|
|
|
|
|
$(GRAF_DIRS_TO_MAKE) :
|
|
|
|
@$(MKDIR) -p $(GRAF_DIRS_TO_MAKE)
|
|
|
|
@$(ECHO) Created directories $(GRAF_DIRS_TO_MAKE)
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Build the Biflump file
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
.PHONY: biglump cleanbiglump
|
|
|
|
|
|
|
|
BIGLUMP_IN := $(GFX_DATA_OUT)
|
2000-08-29 22:33:18 +02:00
|
|
|
BIGLUMP_OUT := $(VERSION_DIR)/BigLump.Bin
|
|
|
|
BIGLUMP_INC := $(INC_DIR)/BigLump.h
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
biglump : $(BIGLUMP_OUT)
|
|
|
|
|
|
|
|
cleanbiglump :
|
|
|
|
@$(RM) -f $(BIGLUMP_OUT)
|
2001-01-12 23:37:21 +01:00
|
|
|
@$(GLECHO) BigLump Cleaned
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
$(BIGLUMP_OUT) : $(BIGLUMP_IN)
|
2000-12-12 21:56:51 +01:00
|
|
|
@$(MAKEDATA) -b:$(OUT_DIR)/Data/ -s:$(GAME_DATA_DIR)/DataCache.Scr -o:$(BIGLUMP_OUT) -i:$(BIGLUMP_INC)
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
# @$(REDIR) $(TEMP_DIR)/BigLump.Scr $(BIGLUMP_IN)
|
|
|
|
# $(MAKEDATA) -b:$(OUT_DIR)/Data/ -s:$(GAME_DATA_DIR)/DataCache.Scr -s:$(TEMP_DIR)/BigLump.Scr -o:$(BIGLUMP_OUT) -i:$(BIGLUMP_INC)
|
|
|
|
|
|
|
|
# All files MUST be in datacache.scr now :oP
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Where it all happens
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# WARNING !!!! BigLump must be the last item that all is dependant on. GRL !!!!
|
|
|
|
|
|
|
|
all : dirs gdirs \
|
2001-01-10 18:21:59 +01:00
|
|
|
actors \
|
2001-01-12 23:37:21 +01:00
|
|
|
anims \
|
2000-12-07 16:56:20 +01:00
|
|
|
levels \
|
2000-08-29 18:28:00 +02:00
|
|
|
biglump
|
|
|
|
@$(ECHO) Graphics made
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# end
|