home *** CD-ROM | disk | FTP | other *** search
- @echo off
- :: --------------------------------------------------------------------
- :: (C) Copyright 1990-1994 by Autodesk, Inc.
- :: Permission to use, copy, modify, and distribute this software and its
- :: documentation for any purpose and without fee is hereby granted.
- :: THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
- :: ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
- :: MERCHANTABILITY ARE HEREBY DISCLAIMED.
- :: --------------------------------------------------------------------
- ::
- :: ADS environment setup for nmake
- ::
- :: Batch file to set up environment for building Windows ADS programs with
- :: the MSVC++ 1.1 (or greater) 32-bit edition command line compiler. This batch
- :: file requires NMAKE and the make file WINADS.MAK.
-
-
-
- :: The name of source file (without extension) must be supplied as first
- :: parameter to batch file.
-
- if (%1) == () goto noname
-
- :: set variable for name of source file (without extension)
- set INFILE=%1
-
- :: set CPU type for
- set CPU=i386
-
- :: save off old path
- set OLDPATH=%PATH%
-
- :: set variable for location of root of WIN32S MSVC++ directory tree
- set MSVCPATH=\msvc32s
-
- :: add MSVC++ binaries to path
- set PATH=%MSVCPATH%\bin;%PATH%
-
- :: set variable for location of ADS include files
- set ADSINC=\acadr\ads
-
- :: set variable for location of ADS library file
- set ADSLIB=\acadr\ads
-
- :: set variable to tell MSVC++ where to look for include files
- set INCLUDE=%MSVCPATH%\include;%ADSINC%
-
- :: set variable to tell MSVC++ where to look for library files
- set LIB=%MSVCPATH%\lib;%ADSLIB%
-
- nmake -nologo -s -k -f winads.mak
-
- @echo off
-
- :: restore old path
- set PATH=%OLDPATH%
-
- :: clean up environment space
- set INFILE=
- set OLDPATH=
- set MSVCPATH=
- set ADSINC=
- set ADSLIB=
- set INCLUDE=
- set LIB=
- set CPU=
-
- goto end
-
- :noname
- echo syntax is
- echo mkacrx [filename with no extension]
-
- :end
-