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.

243 lines
6.5 KiB

  1. !IFDEF NTMAKEENV
  2. !INCLUDE $(NTMAKEENV)\makefile.def
  3. !ELSE
  4. # Makefile
  5. # Copyright 1992 Microsoft Corp.
  6. #
  7. ##
  8. ################
  9. ##
  10. ## Top level Makefile
  11. ##
  12. ################
  13. ################
  14. ##
  15. ## Defines for the environment
  16. ##
  17. ################
  18. !INCLUDE ..\globals.mak
  19. ################
  20. ##
  21. ## the Standard targets
  22. ##
  23. ################
  24. help: StdHelp
  25. -@type <<
  26. IFKERNEL targets:
  27. w16_r Win16, retail
  28. w16_d Win16, debug
  29. chicago_r Win95, retail
  30. chicago_d Win95, debug
  31. nashville_r Win95A, retail
  32. nashville_d Win95A, debug
  33. memphis_r Win96, retail
  34. memphis_d Win96, debug
  35. nt_r NT (Shell Update Release), retail
  36. nt_d NT (Shell Update Release), debug
  37. cairo_r Cairo, retail
  38. cairo_d Cairo, debug
  39. <<NOKEEP
  40. chicago_r:
  41. $(MAKE) DEBUG=OFF TGT=WIN32 os_t=WIN95 all
  42. nashville_r:
  43. $(MAKE) DEBUG=OFF TGT=WIN32 os_t=WIN96 all
  44. memphis_r:
  45. $(MAKE) DEBUG=OFF TGT=WIN32 os_t=WIN97 all
  46. chicago_d:
  47. $(MAKE) DEBUG=ON TGT=WIN32 os_t=WIN95 all
  48. nashville_d:
  49. $(MAKE) DEBUG=ON TGT=WIN32 os_t=WIN96 all
  50. memphis_d:
  51. $(MAKE) DEBUG=ON TGT=WIN32 os_t=WIN97 all
  52. nt_r:
  53. $(MAKE) DEBUG=OFF TGT=WIN32 os_t=NT_SUR all
  54. nt_d:
  55. $(MAKE) DEBUG=ON TGT=WIN32 os_t=NT_SUR all
  56. win16_r win16_d cairo_r cairo_d:
  57. @echo IFKERNEL build for $(cpu_t) on $(os_t) not ready yet.
  58. # type of library needed: dll (for dlls)/ lib (for processes)
  59. # controls library used for linking sdllcew/slibcew
  60. LibType=dll
  61. # Stub name of module
  62. !IF "$(TGT)" == "WIN32"
  63. STUBNAME=AWT30_32
  64. !ELSE
  65. STUBNAME=AWT30
  66. !ENDIF
  67. # Controls whether the Exe is linked automatically using
  68. # standard rules and options. If defined this must be assigned
  69. # a path relative to $(OBJDIR)
  70. EXEname=$(OBJDIR)\$(STUBNAME).dll
  71. ################
  72. ##
  73. ## Define the source c, asm, header, and include files
  74. ## as well as the object file list.
  75. ##
  76. ################
  77. # This variable is used by cleantgt to delete target files.
  78. # Also generally used to decide what is built if the default
  79. # target "all" is invoked
  80. TARGETS=$(OBJDIR)\$(STUBNAME).dll
  81. # Used by depends to create the include file dependencies for
  82. # the source files
  83. # SRCfiles=
  84. # Used by the automatic linking rules to figure out what objs
  85. # to link in. Must have full path specified. Also used by
  86. # cleanint to delete all intermediate created objs. Must be
  87. # defined with pathe relative to $(OBJDIR)
  88. OBJfiles= ..\t30\$(OBJDIR)\hdlc.obj \
  89. ..\t30\$(OBJDIR)\t30.obj \
  90. ..\t30\$(OBJDIR)\ecm.obj \
  91. ..\t30\$(OBJDIR)\timeouts.obj \
  92. ..\t30\$(OBJDIR)\filter.obj \
  93. ..\t30\$(OBJDIR)\swecm.obj \
  94. ..\t30\$(OBJDIR)\t30main.obj \
  95. ..\et30prot\$(OBJDIR)\protapi.obj \
  96. ..\et30prot\$(OBJDIR)\whatnext.obj \
  97. ..\et30prot\$(OBJDIR)\dis.obj \
  98. ..\et30prot\$(OBJDIR)\recvfr.obj \
  99. ..\et30prot\$(OBJDIR)\sendfr.obj \
  100. ..\et30prot\$(OBJDIR)\oemnsf.obj \
  101. ..\nsf\$(OBJDIR)\awnsf.obj
  102. !IF "$(TGT)" == "WIN32"
  103. OBJfiles = $(OBJfiles) $(RootPath)\common\lib\$(libdir)\nsfenc.obj
  104. LocalLibraries= AWFXRN32.lib \
  105. AWFXIO32.lib \
  106. AWCL1_32.lib \
  107. AWRT32.lib
  108. !ELSE
  109. OBJfiles = $(OBJfiles) ..\nsf\nsfenc.obj
  110. !ENDIF
  111. # Used by automatic linking rules to find the def file
  112. # Must be defined if EXEname is being defined.
  113. DEFfile=$(OBJDIR)\awt30.DEF
  114. # Used to specify the res file if one needs to be compiled
  115. # into the .exe Has no effect unless EXEname is defined also.
  116. # if not defined is is assumed that no .res file needs to be
  117. # compiled in.
  118. RESfile=$(OBJDIR)\awt30.res
  119. ################
  120. ##
  121. ## Local compiler, masm, and link flags as well local include
  122. ## paths.
  123. ##
  124. ################
  125. ############ Add local compile Flags here as necessary
  126. # Use these to set local options like optimizations, generate
  127. # intermediate asm files, etc etc.
  128. # LocalCFLAGS= $(USE_HWND) $(TRACE) $(EXTRA) -Aw -GD -Fc -FR
  129. # LocalCFLAGS= -Aw -GD -FR $(DEFS)
  130. # LocalAFLAGS=
  131. # LocalLFLAGS=
  132. !IF "$(SWECM)" == "ON"
  133. LocalCFLAGS= $(LocalCFLAGS) -DSWECM
  134. !ENDIF
  135. ############ Add local include search path here as necessary
  136. # LocalAIncludePaths=
  137. ################
  138. ##
  139. ## Include the standard Rule and Macros file for this project.
  140. ##
  141. ################
  142. !INCLUDE $(RootPath)\common\rules.mak
  143. ################
  144. ##
  145. ## the Standard targets
  146. ##
  147. ################
  148. # List all the buildable targets which you want to be
  149. # public here
  150. help: StdHelp
  151. @echo Subproject targets:
  152. @echo.
  153. @echo all -- makes et30.dll
  154. !INCLUDE ..\clean.mak
  155. ################
  156. ##
  157. ## Include the Standard Targets File
  158. ##
  159. ################
  160. !INCLUDE $(RootPath)\common\targets.mak
  161. ################
  162. ##
  163. ## the targets for this sub-project
  164. ##
  165. ################
  166. all: t30 et30prot awnsf $(TARGETS)
  167. t30:
  168. cd ..\t30
  169. $(MAKE) "TGT=$(TGT)" "DEBUG=$(DEBUG)" "SWECM=$(SWECM)" "os_t=$(os_t)" objs
  170. cd ..\awt30
  171. et30prot:
  172. cd ..\et30prot
  173. $(MAKE) "TGT=$(TGT)" "DEBUG=$(DEBUG)" "os_t=$(os_t)" objs
  174. cd ..\awt30
  175. awnsf:
  176. cd ..\nsf
  177. $(MAKE) "TGT=$(TGT)" "DEBUG=$(DEBUG)" "os_t=$(os_t)" objs
  178. cd ..\awt30
  179. cleanall:
  180. cd ..\t30
  181. $(MAKE) "TGT=$(TGT)" "DEBUG=$(DEBUG)" "os_t=$(os_t)" cleanall
  182. cd ..\et30prot
  183. $(MAKE) "TGT=$(TGT)" "DEBUG=$(DEBUG)" "os_t=$(os_t)" cleanall
  184. cd ..\nsf
  185. $(MAKE) "TGT=$(TGT)" "DEBUG=$(DEBUG)" "os_t=$(os_t)" cleanall
  186. cd ..\awt30
  187. $(OBJDIR)\awt30.DEF: awt30.def ..\globals.mak ..\common\h\defs.h
  188. !INCLUDE ..\def.mak
  189. !include ..\imp.mak
  190. !if exist (depends.mak)
  191. ! include depends.mak
  192. !endif
  193. !ENDIF