X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..f59164e3d128c7675a4d3934206346a3384e53a5:/icuSources/extra/uconv/makedata.mak diff --git a/icuSources/extra/uconv/makedata.mak b/icuSources/extra/uconv/makedata.mak index 159553c6..09bd13e1 100644 --- a/icuSources/extra/uconv/makedata.mak +++ b/icuSources/extra/uconv/makedata.mak @@ -1,5 +1,5 @@ #********************************************************************** -#* Copyright (C) 1999-2000, International Business Machines Corporation +#* Copyright (C) 1999-2008, International Business Machines Corporation #* and others. All Rights Reserved. #********************************************************************** # nmake file for creating data files on win32 @@ -15,7 +15,7 @@ CFG=Debug !ENDIF #Here we test if a valid configuration is given -!IF "$(CFG)" != "Release" && "$(CFG)" != "release" && "$(CFG)" != "Debug" && "$(CFG)" != "debug" +!IF "$(CFG)" != "Release" && "$(CFG)" != "release" && "$(CFG)" != "Debug" && "$(CFG)" != "debug" && "$(CFG)" != "x86\Release" && "$(CFG)" != "x86\Debug" && "$(CFG)" != "x64\Release" && "$(CFG)" != "x64\Debug" !MESSAGE Invalid configuration "$(CFG)" specified. !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: @@ -37,7 +37,7 @@ CFG=Debug !ENDIF !MESSAGE ICU path is $(ICUP) RESNAME=uconvmsg -RESDIR=. #$(ICUP)\..\icuapps\uconv\$(RESNAME) +RESDIR=resources RESFILES=resfiles.mk ICUDATA=$(ICUP)\data @@ -45,39 +45,31 @@ DLL_OUTPUT=.\$(CFG) # set the following to 'static' or 'dll' depending PKGMODE=static - ICD=$(ICUDATA)^\ DATA_PATH=$(ICUP)\data^\ -ICUTOOLS=$(ICUP)\bin - -# We have to prepare params for pkgdata - to help it find the tools -!IF "$(CFG)" == "Debug" || "$(CFG)" == "debug" -PKGOPT=D:$(ICUP) -!ELSE -PKGOPT=R:$(ICUP) -!ENDIF -# This appears in original Microsofts makefiles -!IF "$(OS)" == "Windows_NT" -NULL= +!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" +ICUTOOLS=$(ICUP)\bin64 +PATH = $(ICUP)\bin64;$(PATH) !ELSE -NULL=nul +ICUTOOLS=$(ICUP)\bin +PATH = $(ICUP)\bin;$(PATH) !ENDIF -PATH = $(PATH);$(ICUP)\bin - # Suffixes for data files .SUFFIXES : .ucm .cnv .dll .dat .res .txt .c # We're including a list of resource files. -FILESEPCHAR=\\ +FILESEPCHAR= !IF EXISTS("$(RESFILES)") !INCLUDE "$(RESFILES)" !ELSE !ERROR ERROR: cannot find "$(RESFILES)" !ENDIF -RB_FILES = $(RESSRC:.txt=.res) +RES_FILES = $(RESSRC:.txt=.res) +RB_FILES = resources\$(RES_FILES:.res =.res resources\) +RESOURCESDIR= # This target should build all the data files !IF "$(PKGMODE)" == "dll" @@ -86,41 +78,29 @@ OUTPUT = "$(DLL_OUTPUT)\$(RESNAME).dll" OUTPUT = "$(DLL_OUTPUT)\$(RESNAME).lib" !ENDIF -ALL : GODATA $(OUTPUT) GOBACK #$(RESNAME).dat +ALL : $(OUTPUT) @echo All targets are up to date (mode $(PKGMODE)) # invoke pkgdata - static -"$(DLL_OUTPUT)\$(RESNAME).lib" : $(RB_FILES) $(RESFILES) +"$(DLL_OUTPUT)\$(RESNAME).lib" : $(RB_FILES) $(RESFILES) @echo Building $(RESNAME).lib - @"$(ICUTOOLS)\pkgdata" -f -v -m static -c -p $(RESNAME) -O "$(PKGOPT)" -d "$(DLL_OUTPUT)" -s "$(RESDIR)" <