Source code of Windows XP (NT5)
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.

172 lines
2.8 KiB

  1. !IF 0
  2. Copyright (c) 1991 & 1993 Microsoft Corporation
  3. Module Name:
  4. makefile
  5. Abstract:
  6. makefile for Vdm NetWare 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 $(NTMAKEENV)\makefile.plt
  14. #
  15. # Because we've invoked nmake from within a makefile, macros defined
  16. # in a previous makefile (ie, sources, sources.inc, makefile.def)
  17. # are not defined at this point unless they're defined on the command
  18. # line. This makefile assumes the LANGUAGE and ALT_PROJECT_TARGET macros
  19. # defined in $(LANGUAGE)\sources.inc are passed to this invokation of nmake
  20. # on the command line.
  21. #
  22. !if "$(PROCESSOR_ARCHITECTURE)" == "x86"
  23. TARGET_DIRECTORY=i386
  24. !elseif "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
  25. TARGET_DIRECTORY=alpha
  26. !endif
  27. #
  28. # set the LANGUAGE info
  29. #
  30. !IFNDEF LANGUAGE
  31. LANGUAGE=USA
  32. !ENDIF
  33. DEST=$(LANGUAGE)\$(_OBJ_DIR)\$(TARGET_DIRECTORY)
  34. .SUFFIXES:
  35. .SUFFIXES: .asm .h
  36. PATH=$(PATH_TOOLS16);$(PATH)
  37. ASM = masm
  38. LINK = link16
  39. #
  40. # convert NTDEBUG into DEBUG flag. NTDEBUG can be not present or retail, either
  41. # of which mean no debugging; or ntsd, cvp or sym, which means debugging support
  42. # required
  43. #
  44. !IF $(FREEBUILD)
  45. DEBUGGING=0
  46. !ELSE
  47. DEBUGGING=1
  48. !ENDIF
  49. #
  50. # assembler and linker debugging options
  51. #
  52. !IF $(DEBUGGING)
  53. ASMDEBUG =/DDEBUG=1 /Zi
  54. LINKDEBUG =/CO
  55. !ELSE
  56. ASMDEBUG =/DDEBUG=0
  57. LINKDEBUG =
  58. !ENDIF
  59. ASMINC =/I. /I..\..\inc /I..\..\inc\$(LANGUAGE) /I$(SDK_INC16_PATH)
  60. ASMFLAGS =/Mx
  61. LINKFLAGS =/MAP /CP:1
  62. #
  63. # any other non-debug related options (for assembler) go in USERDEFS
  64. #
  65. USERDEFS =/DCALL_DOS
  66. #
  67. # Inference rules - asm to obj, h to inc
  68. #
  69. .asm{$(DEST)\}.obj:
  70. @rem Setting the MASM env var keeps the masm command line below 128 chars
  71. set MASM=$(ASMDEBUG) $(USERDEFS) $(ASMINC)
  72. $(ASM) $<,$@;
  73. .h.inc:
  74. h2inc $< -o $*.inc
  75. .asm.lst:
  76. $(ASM) $(ASMINC) $(ASMDEBUG) $(USERDEFS) /d /L $<;
  77. #
  78. # what it is we're building
  79. #
  80. TARGET = $(DEST)\vwipxspx.exe
  81. MAPFILE = $(TARGET:.exe=.map)
  82. DEFFILE = ;
  83. OBJS = $(DEST)\vwipxspx.obj
  84. LIBS =
  85. #
  86. # how to build it
  87. #
  88. all: makedir $(TARGET)
  89. $(TARGET): $(OBJS)
  90. $(LINK) @<<
  91. $(OBJS)
  92. $(TARGET) $(LINKFLAGS) $(LINKDEBUG)
  93. $(MAPFILE)
  94. $(LIBS)
  95. $(DEFFILE)
  96. <<
  97. #
  98. # where to put it
  99. #
  100. if not exist $(DEST) md $(DEST)
  101. binplace -o $(ALT_PROJECT_TARGET) $(TARGET)
  102. binplace -o $(ALT_PROJECT_TARGET) $(MAPFILE)
  103. #
  104. # clean build - delete all objs
  105. #
  106. #clean: makedir clean2
  107. clean: clean2
  108. clean2:
  109. if exist messages.inc del messages.inc
  110. if exist $(DEST)\*.obj del $(DEST)\*.obj
  111. $(MAKE)
  112. #
  113. # makedir - ensure the subdirectory for the object files exists
  114. #
  115. makedir:
  116. @-if not exist $(DEST) md $(DEST)
  117. #
  118. # file dependencies
  119. #
  120. $(DEST)\vwipxspx.obj: \
  121. vwipxspx.asm \
  122. debugmac.inc \
  123. asmmacro.inc \
  124. segorder.inc \