home *** CD-ROM | disk | FTP | other *** search
/ Supercompiler 1997 / SUPERCOMPILER97.iso / MS_VC.50 / VC / MFC / SRC / MFCINTL.MAK < prev    next >
Encoding:
Text File  |  1996-10-30  |  4.2 KB  |  152 lines

  1. # This is a part of the Microsoft Foundation Classes C++ library.
  2. # Copyright (C) 1992-1997 Microsoft Corporation
  3. # All rights reserved.
  4. #
  5. # This source code is only intended as a supplement to the
  6. # Microsoft Foundation Classes Reference and related
  7. # electronic documentation provided with the library.
  8. # See these sources for detailed information regarding the
  9. # Microsoft Foundation Classes product.
  10.  
  11. # MFC42[LANG].DLL is a DLL which contains language specific resources
  12. # There should be a l.[LANG] and a ..\include\l.[LANG] directories
  13. #   before attempting this build.
  14. # These directories should contain the language specific MFC .rc
  15. #   files used to build this DLL.
  16. # The resulting DLL contains no code, just the MFC standard resources.
  17. #
  18. # The following macros are used to control the build process:
  19. #   LANG=<3 character language identifier>
  20. #       This is used to uniquely identify the DLL.  It is the standard
  21. #       3 character language abbreviation retrieved via GetLocaleInfo.
  22. #
  23. #   LANGID=<4 character string indicating language ID>
  24. #       This is used to construct a correct version resource.
  25. #       The LANGID is specified in hex.
  26. #
  27. #   CP=<decimal codepage>
  28. #   CPHEX=<hex codepage>
  29. #       This codepage matches the last 4 digits of the LANGCODE,
  30. #       except that they are in decimal where as the LANGCODE is
  31. #       specified in hex.
  32. #
  33. # Examples:
  34. #   // build for LANG=ENGLISH
  35. #   nmake LANG=ENU LANGID=0409 /f mfcintl.mak
  36. #
  37. #   // build for LANG=FRENCH
  38. #   nmake LANG=FRA LANGID=040C /f mfcintl.mak
  39. #
  40. #   // build for LANG=JAPANESE
  41. #   nmake LANG=JPN LANGID=0411 CP=932 CPHEX=03A4 /f mfcintl.mak
  42. #       (Note: you must have codepage 932 installed)
  43. #
  44.  
  45. # Name of this makefile for use in recursion
  46. MAKNAME=mfcintl.mak
  47.  
  48. !ifndef CP
  49. # Default to "Windows, Multilingual" codepage (ANSI)
  50. CP=1252
  51. CPHEX=04E4
  52. !endif
  53.  
  54. TARG=MFC42$(LANG)
  55. RC_DEFINES=/DLANG=$(LANG)
  56. LFLAGS=/noentry /dll /base:0x5FD00000
  57. LINK32=link
  58.  
  59. # Default PLATFORM depending on host environment
  60. !ifndef PLATFORM
  61. !ifndef PROCESSOR_ARCHITECTURE
  62. !error PLATFORM must be set to intended target
  63. !endif
  64. !if "$(PROCESSOR_ARCHITECTURE)" == "x86"
  65. PLATFORM=INTEL
  66. !endif
  67. !if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
  68. PLATFORM=ALPHA
  69. !endif
  70. !if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
  71. PLATFORM=MIPS
  72. !endif
  73. !if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
  74. PLATFORM=PPC
  75. !endif
  76. !endif
  77.  
  78. !if "$(PLATFORM)" == "INTEL"
  79. LFLAGS=$(LFLAGS) /machine:i386
  80. !endif
  81. !if "$(PLATFORM)" == "MIPS"
  82. LFLAGS=$(LFLAGS) /machine:mips
  83. !endif
  84. !if "$(PLATFORM)" == "ALPHA"
  85. LFLAGS=$(LFLAGS) /machine:alpha
  86. !endif
  87. !if "$(PLATFORM)" == "PPC"
  88. LFLAGS=$(LFLAGS) /machine:ppc
  89. !endif
  90.  
  91. !ifdef RELEASE # Release VERSION info
  92. RC_DEFINES=$(RC_DEFINES) /DRELEASE
  93. LFLAGS=$(LFLAGS) /release
  94. !endif
  95.  
  96. RC_DEFINES=$(RC_DEFINES) \
  97.     /DLANGCODE=\"$(LANGID)$(CPHEX)\" /DLANGID=0x$(LANGID) /DCODEPAGE=$(CP)
  98. RC_CODEPAGE=/c$(CP) /l$(LANGID)
  99.  
  100. dll_goal: $(TARG).dll
  101.  
  102. #############################################################################
  103. # Build target
  104.  
  105. $(TARG).res: mfcintl.rc build_.h
  106.     rc /r $(RC_CODEPAGE) $(RC_DEFINES) /fo $(TARG).res mfcintl.rc
  107.  
  108. $(TARG).dll: $(TARG).res
  109.     $(LINK32) $(LFLAGS) /out:$(TARG).DLL $(TARG).res
  110.     -del $(TARG).res
  111.  
  112. #############################################################################
  113. # Predefined locales
  114.  
  115. # Chinese (PRC)
  116. chs:
  117.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=CHS LANGID=0804 CP=936 CPHEX=03A8
  118.  
  119. # Chinese (Traditional)
  120. cht:
  121.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=CHT LANGID=0404 CP=950 CPHEX=03B6
  122.  
  123. # English (American)
  124. enu:
  125.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=ENU LANGID=0409
  126.  
  127. # French (Standard)
  128. fra:
  129.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=FRA LANGID=040C
  130.  
  131. # German (Standard)
  132. deu:
  133.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=DEU LANGID=0407
  134.  
  135. # Italian (standard)
  136. ita:
  137.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=ITA LANGID=0410
  138.  
  139. # Korean
  140. kor:
  141.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=KOR LANGID=0412 CP=949 CPHEX=03B5
  142.  
  143. # Japanese
  144. jpn:
  145.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=JPN LANGID=0411 CP=932 CPHEX=03A4
  146.  
  147. # Spanish (Castilian)
  148. esp:
  149.     $(MAKE) -$(MAKEFLAGS) -f $(MAKNAME) LANG=ESP LANGID=040A
  150.  
  151. #############################################################################
  152.