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
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Text translations
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
.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
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
translate : $(TRANS_OUT_FILES)
|
|
|
|
@$(ECHO) made translations
|
|
|
|
|
|
|
|
cleantranslate:
|
|
|
|
@$(RM) -f $(TRANS_OUT_FILES)
|
|
|
|
|
|
|
|
GFX_DATA_OUT += $(TRANS_OUT_DAT)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#--- UI ---------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
UI_GFX_DIR := $(GRAF_DIR)/ui
|
|
|
|
UI_FONT_DIR := $(UI_GFX_DIR)/font
|
|
|
|
UI_GFX_OUT_DIR := $(DATA_OUT)/ui
|
|
|
|
|
2000-08-29 22:33:18 +02:00
|
|
|
UI_GFX_FONT_IN := $(GRAF_DIR)/ui/font/pr-fontingame.anm
|
|
|
|
# $(GRAF_DIR)/ui/ingame/numbers.anm
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2000-08-29 22:33:18 +02:00
|
|
|
UI_GFX_NONTRANS :=
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2000-08-29 22:33:18 +02:00
|
|
|
UI_GFX_NONTRANS_IN := $(foreach FILE,$(UI_GFX_NONTRANS),$(UI_NONTRANS_DIR)/$(FILE))
|
2000-08-29 18:28:00 +02:00
|
|
|
|
2000-08-29 22:33:18 +02:00
|
|
|
UI_GFX_TRANS :=
|
2000-08-29 18:28:00 +02:00
|
|
|
UI_GFX_TRANS_IN := $(foreach FILE,$(UI_GFX_TRANS),$(UI_TRANS_DIR)/$(FILE).bmp)
|
|
|
|
|
2000-08-29 22:33:18 +02:00
|
|
|
UI_GFX_TRANS2 :=
|
2000-08-29 18:28:00 +02:00
|
|
|
UI_GFX_TRANS2_IN := $(foreach FILE,$(UI_GFX_TRANS2),$(UI_NONTRANS_DIR)/$(FILE))
|
|
|
|
|
2000-08-29 22:33:18 +02:00
|
|
|
UI_GFX_NO_ROT :=
|
|
|
|
UI_GFX_NO_ROT_IN :=
|
2000-08-29 18:28:00 +02:00
|
|
|
|
|
|
|
UI_GFX_TEX_IN := $(UI_GFX_FONT_IN) ${UI_GFX_NONTRANS_IN} ${UI_GFX_TRANS_IN} ${UI_GFX_TRANS2_IN} ${UI_GFX_NO_ROT_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
|
|
|
|
|
|
|
|
cleanuigfx :
|
|
|
|
$(RM) -f $(UI_GFX_TEX_OUT)
|
|
|
|
|
|
|
|
uigfx: $(UI_GFX_TEX_IN)
|
|
|
|
|
|
|
|
$(UI_GFX_TEX_OUT) : $(UI_GFX_TEX_IN)
|
|
|
|
@parkgrab -c+ -z+ $(UI_GFX_FONT_IN) ${UI_GFX_TRANS_IN} -c+ -z- ${UI_GFX_NONTRANS_IN} -c- -z- ${UI_GFX_TRANS2_IN} -r- ${UI_GFX_NO_ROT_IN} -b+ -t:31,1,1 -l:$(REPORT_DIR)/ui.lbm -o:$(UI_GFX_TEX_OUT) -k:$(UI_GFX_REP_FILE)
|
|
|
|
@$(MV) -f $(UI_GFX_OUT_DIR)/uigfx.h $(UI_GFX_HDR_FILE)
|
|
|
|
|
|
|
|
GFX_DATA_OUT += $(UI_GFX_TEX_OUT)
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Dirs to Make
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
GRAF_DIRS_TO_MAKE := $(TRANS_OUT_DIR) \
|
2000-08-29 22:33:18 +02:00
|
|
|
$(UI_GFX_OUT_DIR)
|
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)
|
|
|
|
@$(GLECHO) Cleaned BigLump
|
|
|
|
|
|
|
|
$(BIGLUMP_OUT) : $(BIGLUMP_IN)
|
|
|
|
$(MAKEDATA) -b:$(OUT_DIR)/Data/ -s:$(GAME_DATA_DIR)/DataCache.Scr -o:$(BIGLUMP_OUT) -i:$(BIGLUMP_INC)
|
|
|
|
|
|
|
|
# @$(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 \
|
|
|
|
uigfx \
|
|
|
|
biglump
|
|
|
|
@$(ECHO) Graphics made
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# end
|