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.

170 lines
3.6 KiB

  1. !IF 0
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. makefile
  5. Abstract:
  6. makefile for Vdm Redir program
  7. Author:
  8. Richard L Firth (rfirth) 13-Sep-1991
  9. Revision History:
  10. 13-Sep-1991 rfirth
  11. Created
  12. !ENDIF
  13. include ..\make.inc
  14. #
  15. ####################### dependencies begin here. #########################
  16. #
  17. #
  18. # assembler and linker debugging options
  19. #
  20. !IFDEF NTDEBUG
  21. !IF "$(NTDEBUG)" == "retail" || "$(NTDEBUG)" == "ntsdnodbg"
  22. DEBUGGING=0
  23. !ELSE
  24. DEBUGGING=1
  25. !ENDIF
  26. !ELSE
  27. DEBUGGING=0
  28. !ENDIF
  29. !IF $(DEBUGGING)
  30. ASMDEBUG =-DDEBUG=1 -Zi
  31. LINKDEBUG =/CO
  32. !ELSE
  33. ASMDEBUG =-DDEBUG=0
  34. LINKDEBUG =
  35. !ENDIF
  36. ASMINC =-I..\inc -I..\..\..\inc
  37. ASMFLAGS =-Mx
  38. LINKFLAGS =/MAP /CP:1
  39. aflags =-Mx $(ASMDEBUG) -DCALL_DOS $(DBCS_FLAGS)
  40. ainc =-I. -I..\inc -I..\..\..\inc -I$(msg) -I$(ALT_PROJECT)
  41. #
  42. # what it is we're building
  43. #
  44. TARGET = $(DEST)\redir.exe
  45. MAPFILE = $(TARGET:.exe=.map)
  46. DEFFILE = ;
  47. OBJS = $(DEST)\redir.obj \
  48. $(DEST)\resident.obj \
  49. $(DEST)\namepipe.obj \
  50. $(DEST)\mailslot.obj \
  51. $(DEST)\netapis.obj \
  52. $(DEST)\int2a.obj \
  53. $(DEST)\int5c.obj \
  54. $(DEST)\neterror.obj \
  55. $(DEST)\msgapi.obj
  56. LIBS =
  57. #
  58. # how to build it
  59. #
  60. all: makedir oldobjs $(TARGET)
  61. $(DEST)\redir.lrf:
  62. @echo $(DEST)\redir.obj+ >$(DEST)\redir.lrf
  63. @echo $(DEST)\resident.obj+ >>$(DEST)\redir.lrf
  64. @echo $(DEST)\namepipe.obj+ >>$(DEST)\redir.lrf
  65. @echo $(DEST)\mailslot.obj+ >>$(DEST)\redir.lrf
  66. @echo $(DEST)\netapis.obj+ >>$(DEST)\redir.lrf
  67. @echo $(DEST)\int2a.obj+ >>$(DEST)\redir.lrf
  68. @echo $(DEST)\int5c.obj+ >>$(DEST)\redir.lrf
  69. @echo $(DEST)\neterror.obj+ >>$(DEST)\redir.lrf
  70. @echo $(DEST)\msgapi.obj >>$(DEST)\redir.lrf
  71. @echo $(TARGET),$(MAPFILE),$(LIBS),$(DEFFILE) $(LINKFLAGS) $(LINKDEBUG) >>$(DEST)\redir.lrf
  72. $(TARGET): $(OBJS) $(DEST)\redir.lrf
  73. # $(LINK) $(OBJS),$(TARGET),$(MAPFILE),$(LIBS),$(DEFFILE) $(LINKFLAGS) $(LINKDEBUG)
  74. $(LINK) @$(DEST)\redir.lrf
  75. #
  76. # where to put it
  77. #
  78. binplace -o $(ALT_PROJECT_TARGET) $(TARGET)
  79. include ..\cleanup.inc
  80. oldobjs:
  81. @if exist redirmsg.inc del redirmsg.inc
  82. #
  83. # file dependencies
  84. #
  85. $(DEST)\redir.obj: \
  86. redir.asm \
  87. enumapis.inc \
  88. debugmac.inc \
  89. localmac.inc \
  90. asmmacro.inc \
  91. int5c.inc \
  92. segorder.inc \
  93. $(ALT_PROJECT)\redirmsg.inc
  94. $(DEST)\resident.obj:\
  95. resident.asm \
  96. enumapis.inc \
  97. debugmac.inc \
  98. localmac.inc \
  99. asmmacro.inc \
  100. segorder.inc
  101. $(DEST)\namepipe.obj:\
  102. enumapis.inc \
  103. debugmac.inc \
  104. localmac.inc \
  105. asmmacro.inc \
  106. segorder.inc
  107. $(DEST)\mailslot.obj:\
  108. enumapis.inc \
  109. debugmac.inc \
  110. localmac.inc \
  111. asmmacro.inc \
  112. segorder.inc
  113. $(DEST)\netapis.obj: \
  114. enumapis.inc \
  115. debugmac.inc \
  116. localmac.inc \
  117. asmmacro.inc \
  118. segorder.inc
  119. $(DEST)\int2a.obj: \
  120. debugmac.inc \
  121. segorder.inc
  122. $(DEST)\int5c.obj: \
  123. debugmac.inc \
  124. int5c.inc \
  125. segorder.inc
  126. $(DEST)\neterror.obj:\
  127. enumapis.inc \
  128. debugmac.inc \
  129. localmac.inc \
  130. asmmacro.inc \
  131. segorder.inc