Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

249 lines
6.5 KiB

  1. # NT build environment
  2. # Allow for customization through a decoration file
  3. !IFDEF NTMAKEENV
  4. !include $(NTMAKEENV)\makefile.def
  5. !else
  6. !IF EXIST("makefile.cfg")
  7. !INCLUDE "makefile.cfg"
  8. !ENDIF
  9. # The following builds are supported
  10. !IF "$(BUILD)" == ""
  11. BUILD=w32_x86_dbg
  12. !MESSAGE No Build specified. Defaulting to w32_x86_dbg
  13. !ENDIF
  14. !IF "$(ODIR)" == ""
  15. ODIR = .\
  16. !MESSAGE No output directory specified. Defaulting to current directory
  17. !ENDIF
  18. !IF "$(BUILD)" == "w32_x86_dbg"
  19. INCLUDE = $(INCLUDE)
  20. CFLAGS = -DDEBUG -Od
  21. CFLAGS = $(CFLAGS) -DWIN32 -D_WINDOWS -D_X86_ -DWINNT
  22. CFLAGS = $(CFLAGS) -Gz -Gm -Zi
  23. LFLAGS =
  24. LFLAGS = $(LFLAGS) ..\lib\x86\msls31d.lib delayimp.lib -delayload:msls31d.dll
  25. LFLAGS = $(LFLAGS) ..\lib\x86\usp10.lib -delayload:usp10.dll -delay:unload
  26. LFLAGS = $(LFLAGS) kernel32.lib
  27. LFLAGS = $(LFLAGS) advapi32.lib
  28. LFLAGS = $(LFLAGS) gdi32.lib
  29. LFLAGS = $(LFLAGS) user32.lib
  30. LFLAGS = /entry:DllMain@12 /debug $(LFLAGS)
  31. CPP = cl $(CFLAGS)
  32. CL = cl $(CFLAGS)
  33. RCFLAGS= $(USERRCFLAGS) -dINCLUDETLB -dDEBUG
  34. LINKER = link
  35. CHKSTK = ..\lib\x86\chkstk.obj
  36. FTOL = ..\lib\x86\ftol.obj
  37. MEMMOVE = ..\lib\x86\memmove.obj
  38. MEMSET = ..\lib\x86\memset.obj
  39. MEMCMP = ..\lib\x86\memcmp.obj
  40. MEMCPY = ..\lib\x86\memcpy.obj
  41. STRLEN = ..\lib\x86\strlen.obj
  42. !ELSEIF "$(BUILD)" == "w32_x86_shp"
  43. INCLUDE = $(INCLUDE)
  44. CFLAGS = -O1 $(USERDEFS)
  45. CFLAGS = $(CFLAGS) -DWIN32 -D_WINDOWS -D_X86_ -DWINNT
  46. CFLAGS = $(CFLAGS) -GFz
  47. LFLAGS =
  48. LFLAGS = $(LFLAGS) ..\lib\x86\msls31.lib delayimp.lib -delayload:msls31.dll
  49. LFLAGS = $(LFLAGS) ..\lib\x86\usp10.lib -delayload:usp10.dll -delay:unload
  50. LFLAGS = $(LFLAGS) kernel32.lib
  51. LFLAGS = $(LFLAGS) advapi32.lib
  52. LFLAGS = $(LFLAGS) gdi32.lib
  53. LFLAGS = $(LFLAGS) user32.lib
  54. LFLAGS = /opt:ref /incremental:no /entry:DllMain@12 $(LFLAGS)
  55. CPP = cl $(CFLAGS)
  56. CL = cl $(CFLAGS)
  57. LINKER = link
  58. RCFLAGS= $(USERRCFLAGS) -dINCLUDETLB
  59. CHKSTK = ..\lib\x86\chkstk.obj
  60. FTOL = ..\lib\x86\ftol.obj
  61. MEMMOVE = ..\lib\x86\memmove.obj
  62. MEMSET = ..\lib\x86\memset.obj
  63. MEMCMP = ..\lib\x86\memcmp.obj
  64. MEMCPY = ..\lib\x86\memcpy.obj
  65. STRLEN = ..\lib\x86\strlen.obj
  66. !ELSEIF "$(BUILD)" == "wce_x86em_dbg"
  67. PATH = \msdev\wce\bin;$(PATH)
  68. PATH = \Program^ Files\DevStudio\wce\bin;$(PATH)
  69. INCLUDE = ..\wceinc
  70. LIB = ..\wcelib\x86\common\ce\debug
  71. LIB = $(LIB);\msdev\wce\lib\x86em
  72. LIB = $(LIB);\Program^ Files\DevStudio\wce\lib\wce100\x86em
  73. LIB = $(LIB);\msdev\lib
  74. CFLAGS = -DDEBUG -Od
  75. CFLAGS = $(CFLAGS) -DWIN32 -D_WINDOWS -DPEGASUS
  76. CFLAGS = $(CFLAGS) -D_X86_ -Dx86 -DUNDER_NT
  77. CPP = cl $(CFLAGS)
  78. CL = cl $(CFLAGS)
  79. LINKER = cl
  80. LFLAGS = $(LFLAGS) coredll.lib user32.lib
  81. LFLAGS = -entry:_DllMainCRTStartup -ignore:4078 $(LFLAGS)
  82. !ELSEIF "$(BUILD)" == "wce_x86em_shp"
  83. PATH = \msdev\wce\bin;$(PATH)
  84. PATH = \Program^ Files\DevStudio\wce\bin;$(PATH)
  85. INCLUDE = ..\wceinc
  86. LIB = ..\wcelib\x86\common\ce\retail
  87. LIB = $(LIB);\msdev\wce\lib\x86em
  88. LIB = $(LIB);\Program^ Files\DevStudio\wce\lib\wce100\x86em
  89. LIB = $(LIB);\msdev\lib
  90. CFLAGS = $(CFLAGS) -DWIN32 -D_WINDOWS -DPEGASUS
  91. CFLAGS = $(CFLAGS) -D_X86_ -Dx86 -DUNDER_NT
  92. CPP = cl $(CFLAGS)
  93. CL = cl $(CFLAGS)
  94. LINKER = cl
  95. LFLAGS = $(LFLAGS) coredll.lib user32.lib
  96. LFLAGS = -entry:_DllMainCRTStartup -ignore:4078 -align:4096 $(LFLAGS)
  97. !ELSEIF "$(BUILD)" == "wce_sh3_dbg"
  98. PATH = \msdev\wce\bin;$(PATH)
  99. PATH = \Program^ Files\DevStudio\wce\bin;$(PATH)
  100. INCLUDE = ..\wceinc
  101. LIB = ..\wcelib\shx\common\ce\debug
  102. LIB = $(LIB);\msdev\wce\lib\wcesh
  103. LIB = $(LIB);\Program^ Files\DevStudio\wce\lib\wce100\wcesh
  104. CFLAGS = -DDEBUG -Od -Zi
  105. CFLAGS = $(CFLAGS) -DWIN32 -D_WINDOWS -DPEGASUS
  106. CFLAGS = $(CFLAGS) -DSHx -DUNDER_CE
  107. CPP = shcl $(CFLAGS)
  108. CL = shcl $(CFLAGS)
  109. LINKER = shcl
  110. LFLAGS = $(LFLAGS) coredll.lib
  111. LFLAGS = -entry:_DllMainCRTStartup -ignore:4078 $(LFLAGS)
  112. !ELSEIF "$(BUILD)" == "wce_sh3_shp"
  113. PATH = \msdev\wce\bin;$(PATH)
  114. PATH = \Program^ Files\DevStudio\wce\bin;$(PATH)
  115. INCLUDE = ..\wceinc
  116. LIB = ..\wcelib\shx\common\ce\retail
  117. LIB = $(LIB);\msdev\wce\lib\wcesh
  118. LIB = $(LIB);\Program^ Files\DevStudio\wce\lib\wce100\wcesh
  119. CFLAGS = -O1
  120. CFLAGS = $(CFLAGS) -DWIN32 -D_WINDOWS -DPEGASUS
  121. CFLAGS = $(CFLAGS) -DSHx -DUNDER_CE
  122. CPP = shcl $(CFLAGS)
  123. CL = shcl $(CFLAGS)
  124. LINKER = shcl
  125. LFLAGS = $(LFLAGS) coredll.lib
  126. LFLAGS = -entry:_DllMainCRTStartup -ignore:4078 $(LFLAGS)
  127. !ELSE
  128. !ERROR $(BUILD) Unknown Build. Need to learn this one.
  129. !ENDIF
  130. INCLUDE = .;..\inc;..\lsinc;..\tom;$(INCLUDE);\otools9\inc\win
  131. CFLAGS = $(USERCFLAGS) $(CFLAGS) -DUNICODE -nologo
  132. CFLAGS = $(CFLAGS) -Zl -W4 -Ob1 -FR -GX-
  133. CFLAGS = $(CFLAGS) -YX_common.h
  134. LFLAGS = $(USERLFLAGS) $(LFLAGS) /nologo
  135. LFLAGS = /implib:riched20.lib /def:riched20.def /ignore:4078 /map $(LFLAGS) /NODEFAULTLIB:uuid.lib
  136. LFLAGS = /dll /out:$(ODIR)\riched20.dll /base:0x48000000 $(LFLAGS)
  137. .c{$(ODIR)}.obj:
  138. cl $(CFLAGS) /c -Fo$@ $<
  139. .cpp{$(ODIR)}.obj:
  140. cl $(CFLAGS) /c -Fo$@ $<
  141. all: $(ODIR)\dxfrobj.obj \
  142. $(ODIR)\tomsel.obj \
  143. $(ODIR)\dispml.obj \
  144. $(ODIR)\doc.obj \
  145. $(ODIR)\rtflex.obj \
  146. $(ODIR)\render.obj \
  147. $(ODIR)\dispprt.obj \
  148. $(ODIR)\measure.obj \
  149. $(ODIR)\util.obj \
  150. $(ODIR)\host.obj \
  151. $(ODIR)\select.obj \
  152. $(ODIR)\callmgr.obj \
  153. $(ODIR)\dfreeze.obj \
  154. $(ODIR)\rtext.obj \
  155. $(ODIR)\rtfwrit.obj \
  156. $(ODIR)\propchg.obj \
  157. $(ODIR)\m_undo.obj \
  158. $(ODIR)\rtfwrit2.obj \
  159. $(ODIR)\clasifyc.obj \
  160. $(ODIR)\cmsgflt.obj \
  161. $(ODIR)\ime.obj \
  162. $(ODIR)\magellan.obj \
  163. $(ODIR)\text.obj \
  164. $(ODIR)\runptr.obj \
  165. $(ODIR)\disp.obj \
  166. $(ODIR)\format.obj \
  167. $(ODIR)\antievt.obj \
  168. $(ODIR)\reinit.obj \
  169. $(ODIR)\objmgr.obj \
  170. $(ODIR)\ldte.obj \
  171. $(ODIR)\rtfread2.obj \
  172. $(ODIR)\dragdrp.obj \
  173. $(ODIR)\urlsup.obj \
  174. $(ODIR)\CFPF.obj \
  175. $(ODIR)\uuid.obj \
  176. $(ODIR)\frunptr.obj \
  177. $(ODIR)\edit.obj \
  178. $(ODIR)\line.obj \
  179. $(ODIR)\TOMFMT.obj \
  180. $(ODIR)\dispsl.obj \
  181. $(ODIR)\coleobj.obj \
  182. $(ODIR)\object.obj \
  183. $(ODIR)\osdc.obj \
  184. $(ODIR)\tomrange.obj \
  185. $(ODIR)\notmgr.obj \
  186. $(ODIR)\font.obj \
  187. $(ODIR)\HASH.obj \
  188. $(ODIR)\rtfread.obj \
  189. $(ODIR)\lbhost.obj \
  190. $(ODIR)\cbhost.obj \
  191. $(ODIR)\devdsc.obj \
  192. $(ODIR)\debug.obj \
  193. $(ODIR)\range.obj \
  194. $(ODIR)\array.obj \
  195. $(ODIR)\TOMDOC.obj \
  196. $(ODIR)\textserv.obj \
  197. $(ODIR)\w32sys.obj \
  198. $(ODIR)\ols.obj \
  199. $(ODIR)\olsole.obj \
  200. $(ODIR)\uspi.obj \
  201. $(ODIR)\txtbrk.obj \
  202. $(ODIR)\iaccess.obj \
  203. $(CHKSTK) \
  204. $(FTOL) \
  205. $(MEMMOVE) \
  206. $(MEMSET) \
  207. $(MEMCMP) \
  208. $(MEMCPY) \
  209. $(STRLEN)
  210. rc $(RCFLAGS) richedit.rc
  211. $(LINKER) $(LFLAGS) $** richedit.res
  212. bscmake /oriched20.bsc /nologo *.sbr
  213. clean:
  214. -del riched20.dll
  215. -del *.lib
  216. -del *.obj
  217. -del *.sbr
  218. -del *.pch
  219. -del *.pdb
  220. -del *.idb
  221. -del *.ilk
  222. !ENDIF