home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem =================================================================
- rem
- rem Build batch file for Microsoft C/C++ 7.0 WINDOS app using NMK
- rem
- rem from "Undocumented Windows" by Schulman et al. (Addison-Wesley, 1992)
- rem
- rem Copyright (c) David Maxey 1992
- rem Modified for C/C++ 7.0 -- ARGCARGV hack
- rem
- rem =================================================================
- rem
- rem -----------------------------------------------------------------
- rem Set up application name in APP environment variable
- rem
- set APP=%1
- set EXTRAOBJS=argcargv
- if "%1"=="" goto noargs
- if "%2"=="m" goto medium
- if "%2"=="M" goto medium
- goto extraobj
- :medium
- set MODEL=M
- shift
- rem
- rem -----------------------------------------------------------------
- rem Set up additional command line parameters as dependent .OBJ files
- rem
- :extraobj
- if "%2"=="" goto do_it
- set DEPEND=%DEPEND% %2.obj
- set EXTRAOBJS=%EXTRAOBJS%+%2
- shift
- goto extraobj
- :do_it
- rem
- rem -----------------------------------------------------------------
- rem Is there an application specific .RES or .DEF file?
- rem
- if exist %APP%.res set RES=%app%.res
- if exist %APP%.def set DEF=%app%.def
- rem
- rem -----------------------------------------------------------------
- rem Run the makefile
- rem
- nmk -e -f winioapp.nmk > %APP%.log
- type %app%.log
- set DEPEND=
- set EXTRAOBJS=
- set MODEL=
- set APP=
- set RES=
- set DEF=
- goto allover
- :noargs
- echo Usage is WINIOMS appname [M] [extra-obj-files]
- echo where M means build a Medium model application
- echo and extra-obj-files is a list of space separated .OBJ
- echo filenames without extensions.
- :allover
-