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.

65 lines
1.8 KiB

  1. !ifndef NAME
  2. NAME =default
  3. !endif
  4. !ifndef ROOT
  5. ROOT =..
  6. !endif
  7. # Need to use *.mak because 32 bit nmake is broken
  8. goal: debug.mak retail.mak
  9. all: internal.mak debug.mak retail.mak
  10. ntwow:
  11. @nmake MAKE1632= -nologo NTWOW=1
  12. docs:
  13. @autodoc /x $(DOCS) /o help\$(NAME).doc *.c *.d
  14. apidocs:
  15. @autodoc /x $(APIDOCS) /o help\apidoc.doc *.c *.d
  16. apistructdocs:
  17. @autodoc /x $(APISTRUCTDOCS) /o help\apistrct.doc *.c *.d
  18. messagedocs:
  19. @autodoc /x $(MESSAGEDOCS) /o help\message.doc *.c *.d
  20. messagestructdocs:
  21. @autodoc /x $(MESSAGESTRUCTDOCS) /o help\messtrct.doc *.c *.d
  22. !ifndef FMT
  23. FMT =autodoc.fmt
  24. !endif
  25. help:
  26. @autodoc /rh /x $(HELP) /f $(FMT) /o help\$(NAME).doc *.c *.d
  27. hc help\$(NAME).hpj
  28. debug internal retail: $@.mak
  29. debug.mak internal.mak retail.mak:
  30. @if not exist $(@B)\nul md $(@B)
  31. @if not exist $(@B)\win16\nul md $(@B)\win16
  32. @if not exist $(ROOT)\mciavi32\vfw16\$(@B)\nul md $(ROOT)\mciavi32\vfw16\$(@B)
  33. @if not exist $(ROOT)\mciavi32\vfw16\$(@B)\inc.16\nul md $(ROOT)\mciavi32\vfw16\$(@B)\inc.16
  34. @if not exist $(ROOT)\mciavi32\vfw16\$(@B)\lib.16\nul md $(ROOT)\mciavi32\vfw16\$(@B)\lib.16
  35. @cd $(@B)\win16
  36. @nmake -nologo -f ..\..\$(NAME).mk DEBUG="$(@B)"
  37. @cd ..\..
  38. clean: debug.cln internal.cln retail.cln
  39. debug.cln internal.cln retail.cln:
  40. !if "$(NO_OBJ)" != "TRUE"
  41. !if "$(WIN32)" == "TRUE" || "$(MAKE1632)" == "TRUE"
  42. @if exist $(@B)\win32\nul del $(@B)\win32 <$(ROOT)\build\yes >nul
  43. @if exist $(@B)\win32\nul rd $(@B)\win32 >nul
  44. !endif
  45. !if "$(WIN32)" != "TRUE" || "$(MAKE1632)" == "TRUE"
  46. @if exist $(@B)\win16\nul del $(@B)\win16 <$(ROOT)\build\yes >nul
  47. @if exist $(@B)\win16\nul rd $(@B)\win16 >nul
  48. !endif
  49. @if exist $(@B)\nul rd $(@B) >nul
  50. !endif
  51. @echo ***** Finished cleaning $(@B) *****