home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / PM / GRAPHICS / GRAPHIC.MAK < prev    next >
Makefile  |  1994-11-17  |  3KB  |  79 lines

  1. #===================================================================
  2. #
  3. #   Graphic Sample Make file
  4. #
  5. #  Copyright (C) 1991, 1994 IBM Corporation
  6. #
  7. #      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  8. #      sample code created by IBM Corporation. This sample code is not
  9. #      part of any standard or IBM product and is provided to you solely
  10. #      for  the purpose of assisting you in the development of your
  11. #      applications.  The code is provided "AS IS", without
  12. #      warranty of any kind.  IBM shall not be liable for any damages
  13. #      arising out of your use of the sample code, even if they have been
  14. #      advised of the possibility of such damages.
  15. #
  16. #===================================================================
  17.  
  18. include ..\..\ibmsamp.inc
  19.  
  20. HEADERS = graphic.h
  21.  
  22. #-------------------------------------------------------------------
  23. #   A list of all of the object files
  24. #-------------------------------------------------------------------
  25. ALL_OBJ1 = graphic.obj file.obj
  26.  
  27. #-------------------------------------------------------------------
  28. #   This section lists all files to be built by the make.  The
  29. #   makefile builds the executible as well as its associated help
  30. #   file.
  31. #-------------------------------------------------------------------
  32. all: graphic.exe graphic.hlp
  33.  
  34. #-------------------------------------------------------------------
  35. #   This section creates the command file used by the linker.  This
  36. #   command file is recreated automatically every time you change
  37. #   the object file list, linker flags, or library list.
  38. #-------------------------------------------------------------------
  39. graphic.lnk: graphic.mak
  40.     echo $(ALL_OBJ1)            > graphic.lnk
  41.     echo graphic.exe            >> graphic.lnk
  42.     echo graphic.map /map /cod           >> graphic.lnk
  43.     echo $(LIBS)                >> graphic.lnk
  44.     echo graphic.def            >> graphic.lnk
  45.  
  46. #===================================================================
  47. #
  48. # Dependencies
  49. #
  50. #   This section lists all object files needed to be built for the
  51. #   application, along with the files it is dependent upon (e.g. its
  52. #   source and any header files).
  53. #
  54. #===================================================================
  55.  
  56. graphic.res: graphic.rc graphic.ico graphic.h
  57.          copy ..\..\prodinfo.bmp
  58.          rc -r graphic.rc
  59.          del prodinfo.bmp
  60.  
  61. graphic.obj: graphic.c $(HEADERS)
  62.  
  63. file.obj: file.c $(HEADERS)
  64.  
  65.  
  66. #-------------------------------------------------------------------
  67. #   This section creates the help manager file.
  68. #-------------------------------------------------------------------
  69. graphic.hlp: graphic.ipf
  70.  
  71. #-------------------------------------------------------------------
  72. #   This section links the object modules into the finished program
  73. #   using the linker command file created earlier.  At the end, the
  74. #   resource file is bound to the application.
  75. #-------------------------------------------------------------------
  76. graphic.exe: $(ALL_OBJ1) graphic.def graphic.lnk graphic.res
  77.     $(LINK) @graphic.lnk
  78.     rc -p -x graphic.res graphic.exe
  79.