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.

68 lines
2.4 KiB

  1. ############################################################################
  2. #
  3. # Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. #
  5. # File: build.mk
  6. # Content: master makefile for controlling what gets built
  7. # (debug, retail, clean)
  8. #
  9. #@@BEGIN_MSINTERNAL
  10. # History:
  11. # Date By Reason
  12. # ==== == ======
  13. # 06-jan-95 craige initial implementation
  14. #@@END_MSINTERNAL
  15. ############################################################################
  16. goal: debug.mak
  17. all : debug.mak retail.mak
  18. ntall : ntdebug.mak ntretail.mak
  19. debug retail ntdebug ntretail internal header ntheader: $@.mak
  20. !ifndef MAKENAME
  21. MAKENAME = default.mk
  22. !endif
  23. debug.mak retail.mak ntdebug.mak ntretail.mak internal.mak:
  24. @if not exist $(DXROOT)\$(@B)\nul md $(DXROOT)\$(@B)
  25. @if not exist $(DXROOT)\$(@B)\bin\nul md $(DXROOT)\$(@B)\bin
  26. @if not exist $(DXROOT)\$(@B)\lib\nul md $(DXROOT)\$(@B)\lib
  27. @if not exist $(DXROOT)\$(@B)\lib16\nul md $(DXROOT)\$(@B)\lib16
  28. @if not exist $(DXROOT)\$(@B)\inc\nul md $(DXROOT)\$(@B)\inc
  29. @if not exist $(@B)\nul md $(@B)
  30. @cd $(@B)
  31. @nmake -nologo -f ..\$(MAKENAME) DEBUG="$(@B)"
  32. @cd ..
  33. @echo *** Done making $(@B) ***
  34. header.mak:
  35. @if not exist $(DXROOT)\debug\nul md $(DXROOT)\debug
  36. @if not exist $(DXROOT)\debug\inc\nul md $(DXROOT)\debug\inc
  37. @if not exist $(DXROOT)\retail\nul md $(DXROOT)\retail
  38. @if not exist $(DXROOT)\retail\inc\nul md $(DXROOT)\retail\inc
  39. @nmake -nologo -f $(MAKENAME) DEBUG="debug" COPYHEADERS="1"
  40. @nmake -nologo -f $(MAKENAME) DEBUG="retail" COPYHEADERS="1"
  41. @echo *** Done making $(@B) ***
  42. ntheader.mak:
  43. @if not exist $(DXROOT)\ntdebug\nul md $(DXROOT)\ntdebug
  44. @if not exist $(DXROOT)\ntdebug\inc\nul md $(DXROOT)\ntdebug\inc
  45. @if not exist $(DXROOT)\ntretail\nul md $(DXROOT)\ntretail
  46. @if not exist $(DXROOT)\ntretail\inc\nul md $(DXROOT)\ntretail\inc
  47. @nmake -nologo -f $(MAKENAME) DEBUG="ntdebug" COPYHEADERS="1"
  48. @nmake -nologo -f $(MAKENAME) DEBUG="ntretail" COPYHEADERS="1"
  49. @echo *** Done making $(@B) ***
  50. !ifndef NOCLEAN
  51. clean: debug.cln retail.cln internal.cln ntclean
  52. ntclean: ntdebug.cln ntretail.cln
  53. debug.cln retail.cln ntdebug.cln ntretail.cln internal.cln:
  54. @if exist $(@B)\nul del $(@B) /q
  55. @if exist $(@B)\nul rd $(@B) >nul
  56. @echo *** $(@B) is clean ***
  57. !endif