# -*- tab-width: 4 -*-
# ٥ѥǥǡΥС
# ëΥޥĶǤʤưޤ!

#REMOTE_BASE=/mnt/remote/oyster/design
REMOTE_BASE=/mnt/remote/oyster_design

MDLCNV=sdfModelExp
MDLCNV_FLAGS=-b

MOTCNV=sdfMotionExp
MOTCNV_FLAGS= --optimize

E503_MODELS = \
	e503/u503_000.TB	e503/u503_000.MB	e503/u503_000.AB \
	e503/u503_001.TB	e503/u503_001.MB	e503/u503_001.AB

ALL_MODELS = \
	$(E503_MODELS)


all : $(ALL_MODELS)

clean:
	@rm -f $(ALL_MODELS);

chmod:
	@find . -name "*.[TMA]B" -exec chmod +w {} \;

#==================================================================================
# [3, 0x2c] u503_000 (E503ꥹ)
E503_000_PATH=$(REMOTE_BASE)/maeda/for_hosoya/script_events
E503_000_BASE=$(E503_000_PATH)/lilith_root_01
E503_000=e503/u503_000

$(E503_000).TB: $(E503_000_BASE).TB
	@cp $(E503_000_BASE).TB $(E503_000).TB

$(E503_000).MB: $(E503_000_BASE).MB
	@cp $(E503_000_BASE).MB $(E503_000).MB

$(E503_000).AB: $(E503_000_PATH)/lilith_root_*.T3
	$(MOTCNV) $(MOTCNV_FLAGS) $(E503_000_PATH)/lilith_root_*.T3 -o $(E503_000).AB

#==================================================================================
# [3, 0x2d] u503_001 (E503ץ쥤䡼)
E503_001_PATH=$(REMOTE_BASE)/maeda/for_hosoya/script_events
E503_001_BASE=$(E503_001_PATH)/player_01
E503_001=e503/u503_001

$(E503_001).TB: $(E503_001_BASE).TB
	@cp $(E503_001_BASE).TB $(E503_001).TB

$(E503_001).MB: $(E503_001_BASE).MB
	@cp $(E503_001_BASE).MB $(E503_001).MB

$(E503_001).AB: $(E503_001_PATH)/player_*.T3
	$(MOTCNV) $(MOTCNV_FLAGS) $(E503_001_PATH)/player_*.T3 -o $(E503_001).AB

#============================ end of file =========================================
