home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_03 / 1n03047a < prev    next >
Text File  |  1990-07-05  |  1KB  |  46 lines

  1.  
  2. echo off
  3. cls
  4. echo XYZ library build/rebuild utility
  5. echo .^H 
  6. echo NOTES: Uses the WhizBang XYZ compiler ver. 98.6 which must be
  7. echo        available in the PATH.
  8. echo .^H 
  9. echo        If you haven't already set your LIB environment variable,
  10. echo        a library path of \XYZ\LIB is assumed.
  11. echo .^H 
  12. echo        If LIB is set, it will be used as the path for existing libraries.
  13. echo        New libraries will be created in the current directory.
  14. echo *------------------------------------------------------------------------
  15. for %%m in (s c m l S C M L) do if %1~==%%m~ set modl=%%m
  16. if %modl%~==~ goto error
  17. if %modl%==s set modl=S
  18. if %modl%==c set modl=C
  19. if %modl%==m set modl=M
  20. if %modl%==l set modl=L
  21. goto work
  22. :error
  23. echo Usage: BUILD model module1 [...moduleN]
  24. echo where: model     is S, C, M, or L
  25. echo where: module(s) is(are) the object file(s) to build, "LIBS" for all
  26. echo .^H 
  27. echo Examples:
  28. echo    BUILD s module1.obj module2.obj
  29. echo    BUILD c libs
  30. echo *------------------------------------------------------------------------
  31. goto exit
  32. :work
  33. if exist XYZ%modl%.LOG del XYZ%modl%.LOG >nul
  34. echo Logging output to XYZ%modl%.LOG
  35. :loop
  36. echo BUILDing %modl% model: %2
  37. make %2 mm=%modl% lib=%lib% >> xyz%modl%.log
  38. if %3~==~ goto makedone
  39. shift
  40. goto loop
  41. :makedone
  42. if errorlevel 1 goto exit
  43. del *.obj
  44. :exit
  45. set modl=
  46.