X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..6de34a005df0e4a02d88750703b950237b77d9c8:/icuSources/tools/pkgdata/cmnmode.c diff --git a/icuSources/tools/pkgdata/cmnmode.c b/icuSources/tools/pkgdata/cmnmode.c index 85ca9ebb..2104e9e7 100644 --- a/icuSources/tools/pkgdata/cmnmode.c +++ b/icuSources/tools/pkgdata/cmnmode.c @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (C) 2000, International Business Machines +* Copyright (C) 2000-2004, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -19,6 +19,7 @@ #include #include #include "unicode/utypes.h" +#include "unicode/putil.h" #include "cmemory.h" #include "cstring.h" #include "filestrm.h" @@ -75,8 +76,13 @@ void pkg_mode_common(UPKGOptions *o, FileStream *makefile, UErrorCode *status) sprintf(tmp, "all: $(TARGET)\n\n"); T_FileStream_writeLine(makefile, tmp); + if(!o->embed) { T_FileStream_writeLine(makefile, "$(TARGET): $(CMNLIST) $(DATAFILEPATHS)\n" - "\t$(INVOKE) $(GENCMN) -n $(CNAME) -c -d $(TARGETDIR) 0 $(CMNLIST)\n\n"); + "\t$(INVOKE) $(GENCMN) -n $(CNAME) -c -s $(SRCDIR) -d $(TARGETDIR) 0 $(CMNLIST)\n\n"); + } else { + T_FileStream_writeLine(makefile, "$(TARGET): $(CMNLIST) $(DATAFILEPATHS)\n" + "\t$(INVOKE) $(GENCMN) -n $(CNAME) -c -d $(TARGETDIR) 0 -E $(CMNLIST)\n\n"); + } if(o->hadStdin == FALSE) { /* shortcut */ T_FileStream_writeLine(makefile, "$(CMNLIST): $(LISTFILES)\n"