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.

240 lines
5.5 KiB

  1. !IFDEF NTMAKEENV
  2. !INCLUDE $(NTMAKEENV)\makefile.def
  3. !ELSE
  4. # Makefile
  5. # Copyright 1995 Microsoft Corp.
  6. #
  7. ##
  8. ################
  9. ##
  10. ## LOCAL MODEM, CLASS 1 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. LOCAL MODEM, CLASS 1 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. # Stub name of module
  59. !IF "$(TGT)" == "WIN32"
  60. STUBNAME=AWCL1_32
  61. !ELSE IF "$(SWECM)" == "ON"
  62. STUBNAME=AWECM
  63. !ELSE
  64. STUBNAME=AWCLASS1
  65. !ENDIF
  66. ### this must be set in all cases ###
  67. LibType=dll
  68. !IF ("$(TGT)"=="") || ("$(TGT)"=="WFW") || ("$(TGT)"=="WINPAD") || ("$(TGT)"=="WIN32") || ("$(TGT)"=="IFAX" && "$(SWECM)"=="ON")
  69. EXEname=$(OBJDIR)\$(STUBNAME).dll
  70. TARGETS=$(OBJDIR)\$(STUBNAME).dll
  71. !ENDIF
  72. # Used by depends to create the include file dependencies for
  73. # the source files
  74. SRCfiles= crc.c encoder.c decoder.c ddi.c ifddi.c class0.c
  75. # Used by the automatic linking rules to figure out what objs
  76. # to link in. Must have full path specified. Also used by
  77. # cleanint to delete all intermediate created objs. Must be
  78. # defined with pathe relative to $(OBJDIR)
  79. !IF "$(SWECM)" != "ON"
  80. OBJfiles= $(OBJDIR)\ddi.obj \
  81. $(OBJDIR)\ifddi.obj \
  82. $(OBJDIR)\crc.obj \
  83. $(OBJDIR)\encoder.obj \
  84. $(OBJDIR)\decoder.obj \
  85. $(OBJDIR)\framing.obj \
  86. $(OBJDIR)\class0.obj \
  87. !ELSE
  88. OBJfiles= $(OBJDIR)\crc.obj \
  89. ## $(OBJDIR)\framing.obj \
  90. $(OBJDIR)\encoder.obj \
  91. $(OBJDIR)\decoder.obj \
  92. !ENDIF
  93. !IF ("$(TGT)"=="") || ("$(TGT)"=="WFW") || ("$(TGT)"=="WINPAD") || ("$(TGT)"=="WIN32")
  94. DEFfile=$(OBJDIR)\AWCLASS1.DEF
  95. RESfile=$(OBJDIR)\AWCLASS1.res
  96. !ELSE IF ("$(TGT)"=="IFAX" && "$(SWECM)"=="ON")
  97. DEFfile=$(OBJDIR)\AWECM.DEF
  98. RESfile=$(OBJDIR)\AWECM.res
  99. !ENDIF
  100. ################
  101. ##
  102. ## Local compiler, masm, and link flags as well local include
  103. ## paths.
  104. ##
  105. ################
  106. ############ Add local compile Flags here as necessary
  107. # Use these to set local options like optimizations, generate
  108. # intermediate asm files, etc etc.
  109. # LocalCFLAGS= $(USE_HWND) $(TRACE) $(EXTRA) -Aw -GD -Fc -FR
  110. # LocalCFLAGS= -Aw -GD -FR $(DEFS)
  111. # LocalAFLAGS=
  112. # LocalLFLAGS=
  113. !IF "$(SWECM)" == "ON"
  114. LocalCFLAGS= $(LocalFLAGS) -DSWECM
  115. !ENDIF
  116. !IF ("$(CLASS1_TEST_HOOKS)" == "ON") || ("$(TRANSPORT_TEST_HOOKS)" == "ON")
  117. LocalCFLAGS= $(LocalCFLAGS) -DCLASS1_TEST_HOOKS
  118. !ENDIF
  119. ############ Add local include search path here as necessary
  120. # LocalAIncludePaths=
  121. !IF ("$(TGT)" == "") || ("$(TGT)" == "WFW") || ("$(TGT)" == "WINPAD")
  122. LocalLibraries= $(LocalLibraries) AWFAXIO.lib
  123. !ELSE IF ("$(TGT)" == "WIN32")
  124. LocalLibraries= $(LocalLibraries) AWFXIO32.lib AWFXRN32.lib
  125. !ENDIF
  126. ################
  127. ##
  128. ## Include the standard Rule and Macros file for this project.
  129. ##
  130. ################
  131. !INCLUDE $(RootPath)\common\rules.mak
  132. ################
  133. ##
  134. ## the Standard targets
  135. ##
  136. ################
  137. # List all the buildable targets which you want to be
  138. # public here
  139. help: StdHelp
  140. @echo Subproject targets:
  141. @echo.
  142. @echo all -- makes et30.dll
  143. !INCLUDE ..\clean.mak
  144. ################
  145. ##
  146. ## Include the Standard Targets File
  147. ##
  148. ################
  149. !INCLUDE $(RootPath)\common\targets.mak
  150. ################
  151. ##
  152. ## the targets for this sub-project
  153. ##
  154. ################
  155. objs: $(OBJfiles)
  156. # all: $(OBJfiles)
  157. # mylink
  158. clean: cleantgt cleanint
  159. !IF ("$(TGT)"=="") || ("$(TGT)"=="WFW") || ("$(TGT)"=="WINPAD") || ("$(TGT)"=="WIN32") || ("$(TGT)"=="IFAX" && "$(SWECM)"=="ON")
  160. all: $(TARGETS)
  161. $(OBJDIR)\awclass1.def: awclass1.def
  162. !INCLUDE ..\def.mak
  163. !include ..\imp.mak
  164. !ELSE
  165. all: objs
  166. !ENDIF
  167. ddi: $(OBJDIR)\ddi.obj
  168. ifddi: $(OBJDIR)\ifddi.obj
  169. framing: $(OBJDIR)\framing.obj
  170. crc: $(OBJDIR)\crc.obj
  171. encoder: $(OBJDIR)\encoder.obj
  172. decoder: $(OBJDIR)\decoder.obj
  173. class0: $(OBJDIR)\class0.obj
  174. !if exist (depends.mak)
  175. ! include depends.mak
  176. !endif
  177. !ENDIF