home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / README.TXT < prev    next >
Text File  |  1996-09-11  |  3KB  |  66 lines

  1. SDK Samples
  2. -----------
  3.  
  4. All SDK samples are designed to be built in the directory they are in.  
  5. Just ensure that your Win32 development environment is set up, and you 
  6. can go to any sample directory and do a make.
  7.  
  8. There is a main make files each sample directory:
  9. MAKEFILE        - for use with Microsoft VC++ 2.0 or higher (NMAKE)
  10.  
  11. There are 2 ways to build each sample, debug or retail.   To build a
  12. sample as retail with VC++, just type:
  13.  
  14. nmake retail
  15.  
  16. From the SAMPLES directory, you may also run the following batch files:
  17.  
  18. MAKEALL.BAT     - makes all examples with Microsoft VC++
  19.  
  20. Setup
  21. -----
  22. We have included the source code to a sample setup program for a game
  23. and DirectX.  This is found under the SETUP directory.   Note that to build 
  24. your own custom setup program, all you need to do is edit the copy_list 
  25. at the start of DINSTALL.C to be your list of files, and then search for 
  26. "fox", and then for "bear", and change things appropriately.
  27.  
  28. Once you are done this, create a game directory that includes your files, 
  29. the setup program you have built, and then xcopy /s the REDIST directory to
  30. the root of your game directory, ie:
  31.  
  32. XCOPY /S GAMESDKCDROMDRIVE:\REDIST\*.* D:\FUNGAME
  33.  
  34. If you are building an autorun CD title, you can copy our AUTORUN.INF at 
  35. the root of the Game SDK CD to the root of your game directory 
  36. is called SETUP.EXE, you will not have to make any changes to this file.   
  37. If it is something else, then you can edit AUTORUN.INF appropriately.
  38.  
  39.  
  40. Notes for users of Visual C++ 4.2
  41. ---------------------------------
  42. Visual C++ 4.2 includes the DX2 header files and libraries.  If you are
  43. getting errors compiling the samples, make sure that the DX3 include
  44. and lib paths come before the MSVC++ 4.2 include and libs.
  45.  
  46.  
  47. Notes for users of Watcom C/C++
  48. -------------------------------
  49. Watcom C/C++ v10.6 is required to compile the DXSDK samples.
  50. v10.0 is not sufficient. The Microsoft Win32 SDK is also required
  51. and is expected to be in \MSTOOLS on the same drive as your DXSDK
  52. sample files. If the Win32 SDK is elsewhere, you can set the MSTOOLS
  53. environment variable to point to its root directory (e.g. set
  54. MSTOOLS=\MSTOOLS).
  55.  
  56. The Watcom makefiles expect the WATCOM environment variable
  57. to be set, as it should have been by the Watcom installation procedure.
  58.  
  59. Only a subset of the samples have Watcom makefiles. These are:
  60. ddex1 through ddex5, donut and stretch.
  61. CD into the appropriate directory and type 'wmake /f makefile.wat'.
  62. There is also a makeallw.bat file in the sdk\samples directory which
  63. you can run to automatically build all these samples under Watcom.
  64.  
  65. Watcom and Watcom C/C++ are trademarks of Powersoft, Watcom Division.
  66.