home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / sql / dblib / c / makefile next >
Encoding:
Makefile  |  1997-10-10  |  1.5 KB  |  61 lines

  1. DIRS = \
  2.     EXAMPLE1\~   \
  3.     EXAMPLE2\~   \
  4.     EXAMPLE3\~   \
  5.     EXAMPLE4\~   \
  6.     EXAMPLE5\~   \
  7.     EXAMPLE6\~   \
  8.     EXAMPLE7\~   \
  9.     EXAMPLE8\~   \
  10.     MSDOS\~   \
  11.     NMPSDMP\~   \
  12.     SQLCURS\~   \
  13.     SQLEXAMP\~   \
  14.     SQLTESTC\~   \
  15.     SQLTESTN\~   \
  16.     TEXTCOPY\~   \
  17.     TWOPHASE\~   \
  18.     WIN16\~   \
  19.  
  20.  
  21. SDKPROJ =DbMsg\SQL\DBLIB\C
  22.  
  23.  
  24. #
  25. # This is a Platform SDK non-leaf-node makefile.  It is used to allow NMAKE, 
  26. #  or a similar tool, to recursively build all of the samples in a directory 
  27. #  tree.  To add or remove a directory from the build process, modify the 
  28. #  DIRS list above.  
  29. #
  30. # The SDKPROJ macro (above) is defined solely for the purpose of echoing
  31. #  the current directory location to the screen.  
  32. #
  33. # Do not modify this makefile except for the DIRS and SDKPROJ macros above.
  34. #
  35.  
  36. #
  37. # Include sdkpropbld.mak in order to get standard build options, environment
  38. #  variables, and macros.  The sdkpropbld.mak file is installed with the SDK 
  39. #  in the include directory.
  40.  
  41. !include <sdkpropbld.mak>
  42.  
  43. # In order to build "all," process each of the entries in the DIRS list.
  44. #
  45.  
  46. all: $(DIRS)
  47.  
  48.  
  49. #
  50. # In order to build each of the entries in the DIRS list, change dir into the
  51. #  directory in question, echo the current location, run nmake recursively, 
  52. #  and change dir back to the original directory level.  This four step process 
  53. #  is encapsulated in sdkbld.mak which is installed with the SDK in the include
  54. #  directory.
  55. #
  56.  
  57. $(DIRS):
  58. !include <sdkbld.mak>
  59.