home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 v2.4 Fix / W95-v2.4fix.iso / ACADWIN / ADS / SAMPLE / WINADS.BAT < prev    next >
Encoding:
DOS Batch File  |  1995-02-08  |  1.9 KB  |  75 lines

  1. @echo off
  2. :: --------------------------------------------------------------------
  3. :: (C) Copyright 1990-1994 by Autodesk, Inc.
  4. :: Permission to use, copy, modify, and distribute this software and its
  5. :: documentation for any purpose and without fee is hereby granted.   
  6. :: THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 
  7. :: ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF 
  8. :: MERCHANTABILITY ARE HEREBY DISCLAIMED.                                 
  9. :: --------------------------------------------------------------------
  10. ::
  11. ::             ADS environment setup for nmake
  12. ::
  13. :: Batch file to set up environment for building Windows ADS programs with
  14. :: the MSVC++ 1.1 (or greater) 32-bit edition command line compiler. This batch 
  15. :: file requires NMAKE and the make file WINADS.MAK. 
  16.  
  17.  
  18.  
  19. ::  The name of source file (without extension) must be supplied as first
  20. ::  parameter to batch file.
  21.  
  22. if (%1) == () goto noname
  23.  
  24. :: set variable for name of source file (without extension)
  25. set INFILE=%1
  26.  
  27. :: set CPU type for 
  28. set CPU=i386
  29.  
  30. :: save off old path
  31. set OLDPATH=%PATH%
  32.  
  33. :: set variable for location of root of WIN32S MSVC++ directory tree
  34. set MSVCPATH=\msvc32s
  35.  
  36. :: add MSVC++ binaries to path
  37. set PATH=%MSVCPATH%\bin;%PATH%
  38.  
  39. :: set variable for location of ADS include files
  40. set ADSINC=\acadr\ads
  41.  
  42. :: set variable for location of ADS library file
  43. set ADSLIB=\acadr\ads
  44.  
  45. :: set variable to tell MSVC++ where to look for include files
  46. set INCLUDE=%MSVCPATH%\include;%ADSINC%
  47.  
  48. :: set variable to tell MSVC++ where to look for library files
  49. set LIB=%MSVCPATH%\lib;%ADSLIB%
  50.  
  51. nmake -nologo -s -k -f winads.mak
  52.  
  53. @echo off
  54.  
  55. :: restore old path
  56. set PATH=%OLDPATH%
  57.  
  58. :: clean up environment space
  59. set INFILE=
  60. set OLDPATH=
  61. set MSVCPATH=
  62. set ADSINC=
  63. set ADSLIB=
  64. set INCLUDE=
  65. set LIB=
  66. set CPU=
  67.  
  68. goto end
  69.  
  70. :noname
  71. echo syntax is
  72. echo mkacrx [filename with no extension]
  73.  
  74. :end
  75.