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

  1. @echo off
  2. rem =================================================================
  3. rem
  4. rem Build batch file for Microsoft C/C++ 7.0 WINDOS app using NMK
  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 Modified for C/C++ 7.0 -- ARGCARGV hack
  10. rem
  11. rem =================================================================
  12. rem
  13. rem -----------------------------------------------------------------
  14. rem Set up application name in APP environment variable
  15. rem 
  16. set APP=%1
  17. set EXTRAOBJS=argcargv
  18. if "%1"=="" goto noargs
  19. if "%2"=="m" goto medium
  20. if "%2"=="M" goto medium
  21. goto extraobj
  22. :medium
  23. set MODEL=M
  24. shift
  25. rem
  26. rem -----------------------------------------------------------------
  27. rem Set up additional command line parameters as dependent .OBJ files
  28. rem
  29. :extraobj
  30. if "%2"=="" goto do_it
  31. set DEPEND=%DEPEND% %2.obj
  32. set EXTRAOBJS=%EXTRAOBJS%+%2
  33. shift
  34. goto extraobj
  35. :do_it
  36. rem
  37. rem -----------------------------------------------------------------
  38. rem Is there an application specific .RES or .DEF file?
  39. rem
  40. if exist %APP%.res set RES=%app%.res
  41. if exist %APP%.def set DEF=%app%.def
  42. rem
  43. rem -----------------------------------------------------------------
  44. rem Run the makefile
  45. rem
  46. nmk -e -f winioapp.nmk > %APP%.log
  47. type %app%.log
  48. set DEPEND=
  49. set EXTRAOBJS=
  50. set MODEL=
  51. set APP=
  52. set RES=
  53. set DEF=
  54. goto allover
  55. :noargs
  56. echo Usage is WINIOMS appname [M] [extra-obj-files]
  57. echo   where  M means build a Medium model application
  58. echo   and    extra-obj-files is a list of space separated .OBJ
  59. echo           filenames without extensions.
  60. :allover
  61.