]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: build a UNICODE version of talocale.lib
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 4 Dec 2010 22:59:36 +0000 (17:59 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Feb 2011 00:14:03 +0000 (16:14 -0800)
Add src/WINNT/talocale_unicode that builds a UNICODE version
of talocale, talocaleU.lib

Reviewed-on: http://gerrit.openafs.org/3440
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 1d7534fb95a8fb77d6b0f3fe0816094b36bde850)

Change-Id: Ie298784afdbc4329b97fecea73135b4fd173a866
Reviewed-on: http://gerrit.openafs.org/3788
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
NTMakefile
src/WINNT/talocale_unicode/NTMakefile [new file with mode: 0644]
src/config/NTMakefile

index b7d45a59e5b8016f757c2b432b8e208cdfed2446..f7ef2f3ba04c69d7ff78e79e7ecf6cc29ce69e13 100644 (file)
@@ -459,7 +459,14 @@ talocale: tbutc
        $(NTMAKE)
        $(CD) ..\..\..
 
-license: talocale
+talocale_unicode: talocale
+     @echo ***** $@
+       $(DOCD) $(SRC)\WINNT\$@
+       $(CD) $(SRC)\WINNT\$@
+       $(NTMAKE)
+       $(CD) ..\..\..
+
+license: talocale_unicode
      @echo ***** $@
        $(DOCD) $(SRC)\WINNT\$@
        $(CD) $(SRC)\WINNT\$@
diff --git a/src/WINNT/talocale_unicode/NTMakefile b/src/WINNT/talocale_unicode/NTMakefile
new file mode 100644 (file)
index 0000000..4c4e8c2
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 2000, International Business Machines Corporation and others.
+# All Rights Reserved.
+# 
+# This software has been released under the terms of the IBM Public
+# License.  For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+
+# make compiler warnings fatal
+
+AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -WX -DUNICODE=1
+
+# include the primary makefile
+RELDIR=WINNT\talocale_unicode
+!INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
+
+############################################################################
+
+INCFILEDIR = $(DESTDIR)\include\WINNT
+
+LIBOBJS = \
+       $(OUT)\tal_alloc.obj \
+       $(OUT)\tal_main.obj \
+       $(OUT)\tal_string.obj \
+       $(OUT)\tal_dialog.obj
+
+$(LIBOBJS): ..\talocale\$$(@B).cpp
+        $(CPP2OBJ) -I(..\talocale) $**
+
+LIBFILE = $(DESTDIR)\lib\afs\talocaleU.lib
+
+############################################################################
+
+install: $(LIBFILE)
+
+$(LIBFILE): $(LIBOBJS)
+       $(LIBARCH)
+
+
+clean::
+       $(DEL) $(LIBINCLUDES)
+
+mkdir:
+       
index 65aa68d342065195aabe7e2f5a6d2814e97e191a..04ff14268d7557290d9da437faf1d2f327f2ff18 100644 (file)
@@ -403,6 +403,9 @@ idirs: doclink
 !      IF (!EXIST($(OJT)\WINNT\talocale))
                $(MKDIR) $(OJT)\WINNT\talocale
 !      ENDIF
+!      IF (!EXIST($(OJT)\WINNT\talocale_unicode))
+               $(MKDIR) $(OJT)\WINNT\talocale_unicode
+!      ENDIF
 !      IF (!EXIST($(OJT)\WINNT\win9xpanel))
                $(MKDIR) $(OJT)\WINNT\win9xpanel
 !      ENDIF