head	1.5;
access;
symbols
	imatake-080904-PostmanFixFunction:1.5
	imatake-080425-KoreanDemoBeta:1.5
	MASTER_ADAK00_APAK00-DemoVersion-branch:1.5.0.6
	imatake-080421-HangulCompressRate:1.5
	MASTER_ADAK00_APAK00:1.5
	KR-071218:1.5
	KR-071217:1.5
	KR-071214:1.5
	KR-071213:1.5
	KR-071212:1.5
	KR-071211:1.5
	KR-071210:1.5
	KR-071207:1.5
	KR-071206:1.5
	KR-071205:1.5
	KR-071203:1.5
	KR-071129:1.5
	KR-071126:1.5
	KR-071122:1.5
	KR-071119:1.5
	KR-071115:1.5
	KR-071114:1.5
	KR-071112:1.5
	KR-071109:1.5
	KR-071108:1.5
	KR-071105:1.5
	KR-071101:1.5
	KR-071031:1.5
	KR-071029:1.5
	KR-071026:1.5
	KR-071024:1.5
	KR-071022:1.5
	KR-071018:1.5
	KR-071017:1.5
	KR-071015:1.5
	imatake-071015-BTProfileSetting:1.5
	KR-071012:1.5
	imatake-071012-GTSProfileSetting:1.5
	KR-071011:1.5
	KR-071009:1.5
	KR-070926:1.5
	KR-070925:1.5
	imatake-070920-KoreanMonthsInNumber:1.5
	imatake-070920-RedNamesFixed:1.5
	KR-070918:1.5
	imatake-070913-NakayamanGraphicsReflected:1.5
	imatake-070912-ParticleInsertingFixed:1.5
	imatake-070911-ParticleParamsAvailable:1.5
	imatake-070911-GraphicTextComplete:1.5
	imatake-070907-NakayamanGraphicsReflected:1.5
	imatake-070904-KoreanMysteryGift:1.5
	imatake-070903-MissingFilesAdded:1.5
	imatake-070903-KoreanFriendWiFiSeparated:1.5
	imatake-070729-KoreanInputPaletteModified:1.5
	imatake-070822-LivingPlaceAutoRegistration:1.5
	imatake-070808-KoreanHeaderAndGgid:1.5
	imatake-070801-HangulFontUpdated:1.5
	imatake-070725-GFFixRefrected:1.5
	imatake-070724-ForeignPokedexExtended:1.5
	imatake-070723-HangulInputRenewal:1.5
	KR-070720:1.5
	KR-070627:1.5
	MASTER_ADAP00_APAP00_ADAP50_APAP50:1.5
	MASTER_ADAD01_APAD01_ADAD51_APAD51:1.5
	MASTER_ADAF01_APAF01_ADAF51_APAF51:1.5
	MASTER_ADAI00_APAI00_ADAI50_APAI50:1.5
	MASTER_ADAS00_APAS00_ADAS50_APAS50:1.5
	yamamoto-070604-message-toNOE0604:1.5
	EU-070604:1.5
	EU-070531:1.5
	EU-070521:1.5
	yamamoto-070521-message-fromNOE0521:1.5
	EU-070517:1.5
	yamamoto-070517-message-fromNOE0517:1.5
	EU-070516:1.5
	yamamoto-070516-message-fromNOE0516:1.5
	EU-070514:1.5
	yamamoto-070514-message-fromNOE0514:1.5
	EU-070511:1.5
	yamamoto-070511-message-fromNOE0511:1.5
	UK-070510:1.5
	EU-070510:1.5
	yamamoto-070510-message-fromNOE0510:1.5
	EU-070507:1.5
	yamamoto-070507-message-fromNOE0507:1.5
	EU-070501:1.5
	yamamoto-070501-message-fromNOE0501:1.5
	EU-070426:1.5
	yamamoto-070426-message-fromNOE0426:1.5
	EU-070424:1.5
	EU-070423:1.5
	yamamoto-070423-message-fromNOE0423-modify:1.5
	UK-070423:1.5
	EU-070418:1.5
	yamamoto-070417-message-fromNOE0416:1.5
	EU-070416:1.5
	EU-070413:1.5
	EU-070412:1.5
	yamamoto-070412-message-fromNOE0412-modify:1.5
	EU-070406:1.5
	yamamoto-070406-message-fromNOE0406-modify:1.5
	UK-070405:1.5
	UK_base-branch:1.5.0.4
	UK_base:1.5
	EU-070404:1.5
	EU-070402:1.5
	yamamoto-070402-message-fromNOE0402-modify:1.5
	EU-070329:1.5
	EU-070328:1.5
	yamamoto-070326-message-fromNOE0326:1.5
	EU-070326:1.5
	yamamoto-070322-message-fromNOE0322:1.5
	EU-070322:1.5
	yamamoto-070322-message-fromNOE0320-modify:1.5
	EU-070320:1.5
	yamamoto-070315-message-fromNOE0315:1.5
	EU-070315:1.5
	US-070315:1.5
	MASTER_ADAE00_APAE00_ADAE50_APAE50-branch:1.5.0.2
	EU-070312:1.5
	yamamoto-070312-message-fromNOE0312-modify:1.5
	MASTER_ADAE00_APAE00_ADAE50_APAE50:1.5
	EU-070308:1.5
	yamamoto-070308-message-fromNOE0221-modify:1.5
	EU-070301:1.5
	imatake-070228-UKEnglishSupported:1.5
	MASTER_Y23E00:1.5
	US-070226:1.5
	US-070223:1.5
	US-070222:1.5
	converter_release_50:1.5
	converter_release_49:1.5
	converter_release_48:1.5
	converter_release_47:1.5
	US-070221:1.5
	converter_release_46:1.5
	yamamoto-070221-message-DP0221:1.5
	US-070220:1.5
	yamamoto-070219-message-DP0219-modify:1.5
	US-070219:1.5
	converter_release_45:1.5
	US-070216:1.5
	yamamoto-070216-message-DP0215:1.5
	US-070215:1.5
	yamamoto-070215-message-DP0214:1.5
	converter_release_44:1.5
	US-070214:1.5
	imatake-070214-ForMCCheckBeforeAuth:1.5
	US-070213:1.5
	converter_release_43:1.5
	yamamoto-070213-message-DP0213-modify:1.5
	imatake-070213-HeaderResourceRestructed:1.5
	converter_release_42:1.5
	US-070210:1.5
	US-070209:1.5
	converter_release_41:1.5
	yamamoto-070209-message-DP0209-modify:1.5
	imatake-070209-TrialVersionCommitted:1.5
	US-070207:1.4
	yamamoto-070207-message-DP0207-modify:1.4
	yamamoto-070206-message-euro-send:1.4
	US-070206:1.4
	US-070205:1.4
	yamamoto-070205-message-euro-send:1.4
	yamamoto-070205-message-DP0205-modify:1.4
	converter_release_40:1.4
	US-070201:1.4
	converter_release_39:1.4
	yamamoto-070129-message-euro-send:1.4
	yamamoto-070129-message-DP0129-modify:1.4
	US-070129:1.4
	converter_release_38:1.4
	converter_release_37:1.4
	converter_release_36:1.4
	US-070124:1.4
	converter_release_35:1.4
	converter_release_34:1.4
	yamamoto-070123-message-euro-send:1.4
	US-070123:1.4
	converter_release_33:1.4
	yamamoto-070122-message-DP0122-modify:1.4
	converter_release_32:1.4
	US-070119:1.4
	converter_release_31:1.4
	US-070118_ASSERT:1.4
	US-070118:1.4
	converter_release_30:1.4
	US-070117:1.4
	US-070116:1.4
	converter_release_29:1.4
	yamamoto-070115-message-euro-merge-DP0115-modify:1.4
	US-070115:1.4
	yamamoto-070115-message-DP0115-modify:1.4
	US-070112:1.4
	US-070111:1.4
	converter_release_28:1.4
	US-070110:1.4
	US-070109:1.4
	yamamoto-070109-message-DP0109-ExcelOnly:1.4
	converter_release_27:1.4
	US-070105:1.4
	converter_release_26:1.4
	US-061229:1.4
	yamamoto-061229-message-DP1228:1.4
	converter_release_25:1.4
	US-061228:1.4
	yamamoto_working_system:1.4
	converter_release_24:1.4
	US-061227:1.4
	US-061226:1.4
	US-061225:1.4
	US-061220:1.4
	converter_release_23:1.4
	US-061219:1.4
	converter_release_22:1.4
	US-061218:1.4
	yamamoto-061215-message-DP1215:1.4
	US-061214:1.4
	converter_release_21:1.4
	converter_release_20:1.4
	yamamoto-061212-message-DP1213:1.4
	yamamoto-061212-message-DP1212:1.4
	US-061212:1.4
	converter_release_19:1.4
	yamamoto-061211-message-DP1211_fixed:1.4
	US-061208:1.4
	converter_release_18:1.4
	US-061207:1.4
	converter_release_17:1.4
	imatake-061207-CompressedStrbufSupported:1.4
	converter_release_16:1.4
	US-061206:1.4
	US-061205:1.4
	converter_release_15:1.4
	GMM_USA00_20061204:1.4
	US-061204:1.4
	kinashi-061204-message-DP1204:1.4
	imatake-061204-JPVer10Patched:1.4
	converter_release_14:1.4
	US-061201:1.4
	imatake-061201-GraphicArchivesCommitted:1.4
	converter_release_13:1.4
	converter_release_12:1.4
	converter_release_11:1.4
	converter_release_10:1.4
	converter_release_9:1.4
	imatake-061129-UGNameIndefinateAdded:1.4
	converter_release_8:1.4
	imatake-061128-ReportWindowFixed:1.4
	converter_release_7:1.4
	imatake-061127-PearlMakeBugFixed:1.4
	converter_release_6:1.4
	yamamoto-061127-message-Test1127:1.4
	kinashi-061127-message-Test1127:1.4
	imatake-061124-NumberPaddingFixed:1.4
	imatake-061124-IntroLayoutFixed:1.4
	imatake-061124-SphereDebugAdded:1.4
	imatake-061124-BerryInchSize:1.4
	converter_release_5:1.4
	imatake-061124-PluralOrIndefinateItemName:1.4
	imatake-061122-BagLayoutModified:1.4
	converter_release_4:1.4
	converter_release_3:1.4
	converter_release_2:1.4
	imatake-061120-PokedexLayoutModified:1.4
	kinashi-061120-message-Test1117:1.4
	converter_release_1:1.4
	imatake-061114-PressStartCentered:1.4
	imatake-061114-NameEntryUnderbarMoved:1.4
	imatake-061114-WiFiSettingGlobalized:1.4
	imatake-061107-911EncountRemoved:1.4
	imatake-061031-GGIDLocalized:1.4
	imatake-061031-SwampRDashImproved:1.4
	imatake-061013-SingularOrPluralItemName:1.4
	imatake-061013-AGBStrConversionFixed:1.4
	imatake-061012-AgbCommModified:1.4
	imatake-061012-NicknameFlagSwitchAdded:1.4
	imatake-061012-libVCT110Accepted:1.4
	imatake-061012-RomHeaderSwitchingAdded:1.4
	imatake-061006-ForeignPokedexModified:1.4
	imatake-061004-RomSizeAndNameEntryModified:1.4
	imatake-061002-MarumiXLinkageFixed:1.4
	imatake-060919-MarumiXAutoloadFixed:1.4
	imatake-060915-WifiAndMarumiXSwitch:1.4
	japanese_version_20060816:1.4
	marge-20060717_branch:1.4.0.10
	marge-20060717:1.4
	marge-20060712_branch_true:1.4.0.8
	marge-20060712_branch:1.4.0.6
	marge-20060712:1.4
	marge-20060630_branch:1.4.0.4
	marge-20060630:1.4
	marge-20060623_branch:1.4.0.2
	marge-20060623:1.4
	marge-20060414_branch:1.3.0.2
	marge-20060414:1.3
	yamamoto_temp:1.2
	marge-20060329_branch:1.2.0.2
	marge-20060329:1.2
	init:1.1;
locks; strict;
comment	@# @;


1.5
date	2007.02.09.03.52.28;	author imatake;	state Exp;
branches;
next	1.4;

1.4
date	2006.06.28.00.52.36;	author yama;	state Exp;
branches;
next	1.3;

1.3
date	2006.04.14.11.57.38;	author yama;	state Exp;
branches;
next	1.2;

1.2
date	2006.03.27.08.15.33;	author yama;	state Exp;
branches;
next	1.1;

1.1
date	2006.03.13.01.45.41;	author yama;	state Exp;
branches;
next	;


desc
@@


1.5
log
@̌łƐiłƂŐA[JCu؂ւ悤ɕύXB
ԃt@@C𐶐CW̃o[W1.2ɕύXB
@
text
@#! make -f
#----------------------------------------------------------------------------
# Project:  C\[X->oCi[
# File:     Makefile
#
# Copyright 2005 GameFreak.inc  All rights reserved.
#
#----------------------------------------------------------------------------

# localize_spec_mark(LANG_ALL) imatake 2007/02/09
# ̌łƐiłƂŐA[JCu؂ւ悤ɕύX

# -----------------------------------------------------------------------------
# localize_spec_mark(LANG_ALL) imatake 2007/02/09
# ԃt@@C alldata_*.elf 𐳂邽߂ CW 1.2 makeKv
# ϐ CWFolder_NITRO_1_2  CW 1.2 ̃pXĂ
CWFOLDER_NITRO = $(CWFOLDER_NITRO_1_2)
# -----------------------------------------------------------------------------

DP_ROOT	=	../../..

SUBDIRS		=

ifdef PG5_TRIAL
EVENTDATA	=	zone_event_trial.narc
ALLDATA_BIN	=	alldata_trial.bin
else
EVENTDATA	=	zone_event_release.narc
ALLDATA_BIN	=	alldata_release.bin
endif

#Ro[gΏۃt@@C̃TtBbNX
FILETYPES	=	evb	evc	evd	evp

HEADERS		=	evc_id.h evd_id.h script_id.h

include ../maptable/eventlist.txt
#include	sourcefile.lst

NEWSYS	=	YES

EVBFILES	= $(CONVSRCS:_total.c=.evb)
EVCFILES	= $(CONVSRCS:_total.c=.evc)
EVDFILES	= $(CONVSRCS:_total.c=.evd)
EVPFILES	= $(CONVSRCS:_total.c=.evp)

#----------------------------------------------------------------------------
#C\[XoCiϊɕKvȒ`
#----------------------------------------------------------------------------
include	$(NITROSDK_ROOT)/build/buildtools/commondefs.cctype.CW
include	$(NITROSYSTEM_ROOT)/build/buildtools/commondefs

#ʕϐ`
include $(DP_ROOT)/commondefs.GF

include	$(NITROSYSTEM_ROOT)/build/buildtools/modulerules

ELF2BIN	= $(DP_ROOT)/convert/eventdata/celf2bin.exe
LISTMK	= $(DP_ROOT)/convert/eventdata/listmk.exe
ELFPICKUP = $(DP_ROOT)/convert/eventdata/elfpickup.pl
ELFALLPICKUP = $(DP_ROOT)/convert/eventdata/elfallpickup.pl

#----------------------------------------------------------------------------
#MakeŐ*.binmake clean̍폜Ώۂɂ
#LDIRT_CLEAN	= $(CONVSRCS:.c=.bin) $(foreach mark, $(FILETYPES), $(CONVSRCS:_total.c=_$(mark).bin))
#LDIRT_CLEAN += $(EVENTDATA) $(EVENTDATA:.narc=.naix) $(HEADERS)
#LDIRT_CLEAN += $(CONVSRCS:_total.c=_evb.c) $(CONVSRCS:_total.c=_evc.c) \
#	$(CONVSRCS:_total.c=_evd.c) $(CONVSRCS:_total.c=_evp.c)

LDIRT_CLEAN	= *.bin *.c
ifdef PG5_TRIAL
LDIRT_CLEAN += $(EVENTDATA) zone_event.naix $(HEADERS)
else
LDIRT_CLEAN += $(EVENTDATA) zone_event.naix $(HEADERS)
endif

LINCLUDES		= $(NITROSDK_ROOT)/include
LINCLUDES	+= $(dir $<)


#----------------------------------------------------------------------------
#	XV[`
#----------------------------------------------------------------------------

do-build: $(EVENTDATA)


CCFLAGS = -lang c

ifdef PG5_TRIAL
CCFLAGS += -DPG5_TRIAL=$(PG5_TRIAL)
endif

#----------------------------------------------------------------------------
# precompile
#----------------------------------------------------------------------------
QUOTE			="		#"
DEPEND_RULE	= $(QUOTE)/ARM_EABI_Support/d;s/\\\\\\([^ ]\\)/\\/\\1/g;$(QUOTE)

define MOVE_SRC_DEPEND
	-$(SED) -e $(DEPEND_RULE) $(*F).d > $(DEPENDDIR)/$(*F).d && $(RM) $(*F).d
endef

#PRECOMPILE_SRC		 =	ev_common.h	#precompile.pch
PRECOMPILE_SRC		 =	precompile.pch
PRECOMPILE_CC_MCH	 =	precompile_cc.mch
PRECOMPILE_CCFLAGS	:=	$(CCFLAGS)
#CCFLAGS			+=	-prefix $(PRECOMPILE_CC_MCH)
INCLUDES		+=	-I$(NITROSDK_ROOT)/include

precompile: $(PRECOMPILE_CC_MCH)

#o[W`t@@CXVꂽvRpCwb_XV
$(PRECOMPILE_CC_MCH):	$(VER_FILE)

-include $(PRECOMPILE_CC_MCH).d
$(PRECOMPILE_CC_MCH):%_cc.mch:
		$(CC) $(PRECOMPILE_CCFLAGS) $(INCLUDES) $(PRECOMPILE_SRC) -MD -precompile $(PRECOMPILE_CC_MCH)
		$(MOVE_SRC_DEPEND)
		$(MV) $(DEPENDDIR)/$(*F).d $@@.d

#----------------------------------------------------------------------------

#$(EVENTDATA): $(CONVSRCS:.c=.bin)
$(EVENTDATA): $(ALLDATA_BIN)
	nnsarc -i -c -l -n -S ../maptable/eventarc.txt zone_event.narc > arc_result.txt
	mv -f zone_event.narc $(EVENTDATA)


$(ALLDATA_BIN):	$(ALLDATA_BIN:.bin=.elf)
	@@echo $(CONVSRCS:_total.c=) > flist
	$(ELFALLPICKUP) flist $(ALLDATA_BIN:.bin=.elf)
	@@rm -f flist
	@@touch $(ALLDATA_BIN)


$(ALLDATA_BIN:.bin=.elf):	ev_common.h $(EVBFILES) $(EVCFILES) $(EVDFILES) $(EVPFILES) $(HEADERS)
	@@cat ev_common.h > all_data.c
	@@cat $(EVBFILES) >> all_data.c
	@@cat $(EVCFILES) >> all_data.c
	@@cat $(EVDFILES) >> all_data.c
	@@cat $(EVPFILES) >> all_data.c
	$(CC) $(CCFLAGS) $(INCLUDES) all_data.c -MD -o all_data.o
	$(MWLD) -dis -o $(ALLDATA_BIN:.bin=.elf) all_data.o


#̃fBNgɑ݂*evc.ht@@CSCN[ht@@Cevc_id.h𐶐
evc_id.h:
	sed "s/evd\.h/evc\.h/" ../maptable/doorevent.h > evc_id.h

#̃fBNgɑ݂*evd.ht@@CSCN[ht@@Cevd_id.h𐶐
evd_id.h:
	ls -1 *evd.h |sed "s/^/#include \"/;s/$$/\"/" > evd_id.h

#scriptfBNgɑ݂*def.ht@@CSCN[ht@@Cscript_id.h𐶐
script_id.h: $(wildcard ../script/*_def.h)
	ls -1 ../script/*_def.h |grep -v scr_seq_def.h |sed "s/^/#include \"/;s/$$/\"/" > script_id.h


#----------------------------------------------------------------------------
#
#		Dummy Target
#
#----------------------------------------------------------------------------
mkinclude:	$(HEADERS)

#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
mkdummy:
	$(foreach target, $(CONVSRCS:_total.c=), $(shell dummyfiles/makedummy.bat $(target)))
@


1.4
log
@*** empty log message ***
@
text
@d9 11
d24 7
a30 1
EVENTDATA	=	zone_event.narc
d71 5
a75 1
LDIRT_CLEAN += $(EVENTDATA) $(EVENTDATA:.narc=.naix) $(HEADERS)
d90 3
d109 1
a109 1
#INCLUDES		+=	-I$(NITROSDK_ROOT)/include
d125 3
a127 3
$(EVENTDATA): all_data.bin
	nnsarc -i -c -l -n -S ../maptable/eventarc.txt $(EVENTDATA) > arc_result.txt

a128 4
%_total.bin:	all_data.elf
	$(ELFPICKUP) $(@@:.bin=) all_data.elf > $*_total.elf
	$(ELF2BIN) $*_total.elf > /dev/null
	rm $*_total.elf
d130 1
a130 1
all_data.bin:	all_data.elf
d132 1
a132 1
	$(ELFALLPICKUP) flist all_data.elf
d134 1
a134 1
	@@touch all_data.bin
d137 1
a137 1
all_data.elf:	ev_common.h $(EVBFILES) $(EVCFILES) $(EVDFILES) $(EVPFILES) $(HEADERS)
d144 1
a144 1
	$(MWLD) -dis -o all_data.elf all_data.o
@


1.3
log
@*** empty log message ***
@
text
@d18 1
a18 1
HEADERS		=	evd_id.h script_id.h
d23 7
d44 1
d80 2
a81 1
PRECOMPILE_SRC		 =	ev_common.h	#precompile.pch
d100 2
a101 1
$(EVENTDATA): $(CONVSRCS:.c=.bin)
a103 20
%_total.c:	$(addprefix %., $(addsuffix ,$(FILETYPES))) ../maptable/zone_id.h
	@@cat ev_common.h $(addprefix $*., $(addsuffix ,$(FILETYPES))) > $*_total.c

%_total.bin:	%_total.c	$(HEADERS)
	$(CC) $(CCFLAGS) $(INCLUDES)  -c $< -MD -o $*_total.o
	@@$(MWLD) -dis -o $*_total.elf $*_total.o
	@@$(ELFPICKUP) $*_total > $*_v.elf
	@@mv $*_v.elf $*_total.elf
	@@$(ELF2BIN) $*_total.elf > /dev/null
	@@rm $*_total.o
	@@-rm $*_total.d
	@@rm $*_total.elf

zone_r207_total:
	@@rm -f zone_r207_total.bin
	@@make zone_r207_total.bin

zone_c01pc0103_total:
	@@rm -f zone_c01pc0103_total.bin
	@@make zone_c01pc0103_total.bin
d105 25
a144 7

mklst:
	ls -1 *.ev* |sed "s/\.ev/_ev/;s/$$/\.c/" > temp
	$(LISTMK) temp sourcefile.lst CONVSRCS
	rm temp
#ls -1 *.c > temp

a146 1

a150 5

test:
	echo $(LDIRT_CLEAN)

#echo $(foreach types,$(FILETYPES),$(wildcard *$(types)*))
@


1.2
log
@*** empty log message ***
@
text
@d36 1
d58 33
d94 20
a114 24
%.bin: %.c $(HEADERS)
	@@$(CC) $(CCFLAGS) $(INCLUDES)  -c $< -MD -o $*.o
	@@$(MWLD) -dis -o $*.elf $*.o
	@@$(ELF2BIN) $*.elf > /dev/null
	@@rm $*.o
	@@-rm $*.d
	@@rm $*.elf

%_evb.c: %.evb
	@@cat ev_common.h $< > $*_evb.c

%_evc.c: %.evc
	@@cat ev_common.h $< > $*_evc.c

%_evd.c: %.evd
	@@cat ev_common.h $< > $*_evd.c

%_evp.c: %.evp
	@@cat ev_common.h $< > $*_evp.c


%_total.bin:	$(addprefix %_, $(addsuffix .bin,$(FILETYPES))) ../maptable/zone_id.h
	@@echo $*
	@@cat	$(addprefix $*_, $(addsuffix .bin,$(FILETYPES))) > $*_total.bin
a132 1
	#ls -1 *.c > temp
d135 1
a148 3



@


1.1
log
@init
@
text
@d39 6
a44 1
LDIRT_CLEAN	= $(CONVSRCS:.c=.bin) $(foreach mark, $(FILETYPES), $(CONVSRCS:_total.c=_$(mark).bin))
a45 2
LDIRT_CLEAN += $(CONVSRCS:_total.c=_evb.c) $(CONVSRCS:_total.c=_evc.c) \
	$(CONVSRCS:_total.c=_evd.c) $(CONVSRCS:_total.c=_evp.c)
@

