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.

38 lines
1.1 KiB

  1. DOCDIR = doc
  2. TITLE = Help
  3. DOCHDR = API Reference
  4. AD = autodoc.exe
  5. ADTAB = 4
  6. ADPRN = /RD /O$(DOCDIR)\inscodec.doc /D "doc_header=$(DOCHDR)" /t$(ADTAB) /u $(EXTRACT)
  7. HC = hcw /a /e /c
  8. EXTRACT = /x "EXTERNAL"
  9. # Specify COMP value as an argument to get specific behavior
  10. # Example: nmake -f autodoc.mak inscodec.doc "COMP=INSCODEC"
  11. # Help and Doc targets
  12. clean:
  13. if exist $(DOCDIR)\*.rtf del $(DOCDIR)\*.rtf
  14. if exist $(DOCDIR)\*.doc del $(DOCDIR)\*.doc
  15. if exist $(DOCDIR)\*.hlp del $(DOCDIR)\*.hlp
  16. # Generate a Help file
  17. .cpp.hlp :
  18. @if not exist $(DOCDIR) mkdir $(DOCDIR)
  19. $(HC) $(DOCDIR)\$*.cpp
  20. # Generate a rtf-for-help documentation file
  21. .cpp.rtf :
  22. @if not exist $(DOCDIR) mkdir $(DOCDIR)
  23. $(AD) /RH /O$(DOCDIR)\$*.rtf /D "title=$(TITLE)" /t$(ADTAB) $*.cpp
  24. # Generate a rtf-for-print documentation file
  25. .cpp.doc :
  26. @if not exist $(DOCDIR) mkdir $(DOCDIR)
  27. !IF "$(COMP)" == "INSCODEC"
  28. $(AD) $(ADPRN) ..\..\h\codecs.h
  29. $(AD) $(ADPRN) /a ..\..\h\appavcap.h
  30. !ENDIF
  31. $(AD) $(ADPRN) /a $*.cpp $*.h