home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l430 / 1.ddi / WINIOBC.ZIP / WINIOBC.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-06-13  |  1.6 KB  |  59 lines

  1. @echo off
  2. rem =================================================================
  3. rem
  4. rem Build batch file for Borland C WINDOS app using MAKE
  5. rem
  6. rem from "Undocumented Windows" by Schulman et al. (Addison-Wesley, 1992)
  7. rem
  8. rem Copyright (c) David Maxey 1992
  9. rem
  10. rem =================================================================
  11. rem
  12. rem -----------------------------------------------------------------
  13. rem Set up application name in APP environment variable
  14. rem 
  15. set APP=%1
  16. if "%1"=="" goto noargs
  17. if "%2"=="m" goto medium
  18. if "%2"=="M" goto medium
  19. goto extraobj
  20. :medium
  21. set MODEL=m
  22. shift
  23. rem
  24. rem -----------------------------------------------------------------
  25. rem Set up additional command line parameters as dependent .OBJ files
  26. rem
  27. :extraobj
  28. if "%2"=="" goto do_it
  29. set DEPEND=%DEPEND% %2.obj
  30. set EXTRAOBJS=%EXTRAOBJS%+%2
  31. shift
  32. goto extraobj
  33. :do_it
  34. rem
  35. rem -----------------------------------------------------------------
  36. rem Is there an application specific .RES or .DEF file?
  37. rem
  38. if exist %APP%.res set RES=%app%.res
  39. if exist %APP%.def set DEF=%app%.def
  40. rem
  41. rem -----------------------------------------------------------------
  42. rem Run the makefile
  43. rem
  44. make -e -f winioapp.mak %APP%.exe > %APP%.log
  45. type %app%.log
  46. set DEPEND=
  47. set EXTRAOBJS=
  48. set MODEL=
  49. set APP=
  50. set RES=
  51. set DEF=
  52. goto allover
  53. :noargs
  54. echo Usage is WINIOBC appname [M] [extra-obj-files]
  55. echo   where  M means build a Medium model application
  56. echo   and    extra-obj-files is a list of space separated .OBJ
  57. echo           filenames without extensions.
  58. :allover
  59.