home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Nt / make.nt.bat < prev    next >
Encoding:
DOS Batch File  |  1995-12-17  |  1.7 KB  |  48 lines  |  [TEXT/R*ch]

  1. @echo off
  2.  
  3. : Due to NMAKE being completely brain-dead, I decided to replace the
  4. : Top Level makefile with a batch file.
  5.  
  6. : The primary reason was NMAKEs inability to recurse properly, and pasing
  7. : params and macro defn's from toplevel to lower levels is nearly impossible.
  8.  
  9. : Common flags are handled by each lower level makefile including make.nt.in.
  10.  
  11. : This batch file only passes first 9 params to make.  Note that macro 
  12. : definitions must be passed with quotes - eg: make_nt -a "NODEBUG=1" "MSVC=1"
  13.  
  14. : See the bottom of the file for some useful flags to nmake.
  15.  
  16. : check for MSVC (save passing on cmd line)
  17. if exist \msvcnt\. set MSVC=1
  18. if exist c:\msvcnt\. set MSVC=1
  19.  
  20. set subdirs=Parser Objects Python Modules
  21. set makefile=makefile.nt.mak
  22. for %%i in (%subdirs%) do echo %%i & title Python build - %%i & cd %%i & nmake /nologo /F %makefile% %1 %2 %3 %4 %5 %6 %7 %8 %9 & cd ..
  23.  
  24. : Clean up the environment.
  25. set subdirs=
  26. set makefile=
  27. set MSVC=
  28. title Command Prompt
  29.  
  30. : NOTE:  The following is pulled from winnt32.mak.  By passing these 
  31. : arguments to this batch file, you will effect the specified build.
  32.  
  33. : Application Information Type         Invoke NMAKE
  34. : ----------------------------         ------------
  35. : For No Debugging Info                nmake nodebug=1
  36. : For Working Set Tuner Info           nmake tune=1
  37. : For Call Attributed Profiling Info   nmake profile=1
  38. :
  39. : Note: Working Set Tuner and Call Attributed Profiling is for available
  40. :       for the Intel x86 and Pentium systems.
  41. :
  42. : Note: The three options above are mutually exclusive (you may use only
  43. :       one to compile/link the application).
  44. :
  45. : Note: creating the environment variables NODEBUG, TUNE, and PROFILE is an
  46. :       alternate method to setting these options via the nmake command line.
  47. :
  48.