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

  1. #===================================================================
  2. #
  3. #  Queues Sample Makefile
  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. #
  19. # Comment out or delete the .inc file you don't want
  20. # IBMSAMP.INC - sets up for IBM 32-bit Compiler
  21. #
  22. include ..\..\ibmsamp.inc
  23.  
  24. SVR_HEADERS = svrqmain.h svrqxtrn.h svrqglbl.h svrqhelp.h queue.h
  25. CLI_HEADERS = cliqmain.h cliqxtrn.h cliqglbl.h cliqhelp.h queue.h
  26.  
  27.  
  28. #-------------------------------------------------------------------
  29. #   A list of all of the object files
  30. #-------------------------------------------------------------------
  31.  
  32. SVR_OBJ = svrqmain.obj svrqthrd.obj svrqpnt.obj svrqhelp.obj
  33. CLI_OBJ = cliqmain.obj cliqthrd.obj cliqhelp.obj
  34.  
  35.  
  36. #-------------------------------------------------------------------
  37. #   A list of all of the Help text files
  38. #-------------------------------------------------------------------
  39.  
  40. SVR_IPF = svrqueue.ipf file.ipf svroptn.ipf help.ipf dlg.ipf
  41. CLI_IPF = cliqueue.ipf file.ipf clientry.ipf help.ipf dlg.ipf
  42.  
  43.  
  44. #-------------------------------------------------------------------
  45. #   This section lists all files to be built by the make.  The
  46. #   makefile builds the executible as well as its associated help
  47. #   file.
  48. #-------------------------------------------------------------------
  49.  
  50. all: svrqueue.exe svrqueue.hlp cliqueue.exe cliqueue.hlp
  51.  
  52.  
  53. #-------------------------------------------------------------------
  54. #   This section creates the command file used by the linker.  This
  55. #   command file is recreated automatically every time you change
  56. #   the object file list, linker flags, or library list.
  57. #-------------------------------------------------------------------
  58.  
  59. svrqueue.lnk: queues.mak
  60.     echo $(SVR_OBJ)              > svrqueue.lnk
  61.     echo svrqueue.exe           >> svrqueue.lnk
  62.     echo svrqueue.map           >> svrqueue.lnk
  63.     echo $(MTLIBS)              >> svrqueue.lnk
  64.     echo svrqueue.def           >> svrqueue.lnk
  65.  
  66. cliqueue.lnk: queues.mak
  67.     echo $(CLI_OBJ)              > cliqueue.lnk
  68.     echo cliqueue.exe           >> cliqueue.lnk
  69.     echo cliqueue.map           >> cliqueue.lnk
  70.     echo $(MTLIBS)              >> cliqueue.lnk
  71.     echo cliqueue.def           >> cliqueue.lnk
  72.  
  73.  
  74. #===================================================================
  75. #
  76. # Dependencies
  77. #
  78. #   This section lists all object files needed to be built for the
  79. #   application, along with the files it is dependent upon (e.g. its
  80. #   source and any header files).
  81. #
  82. #===================================================================
  83.  
  84. svrqueue.res: svrqueue.rc queue.ico svrqmain.h svrqhelp.rc svrqhelp.h
  85.          copy ..\..\prodinfo.bmp
  86.          rc -r svrqueue.rc
  87.          del prodinfo.bmp
  88.  
  89. svrqmain.obj: svrqmain.c $(SVR_HEADERS)
  90.  
  91. svrqthrd.obj: svrqthrd.c $(SVR_HEADERS)
  92.  
  93. svrqpnt.obj:  svrqpnt.c  $(SVR_HEADERS)
  94.  
  95. svrqhelp.obj: svrqhelp.c $(SVR_HEADERS)
  96.  
  97.  
  98. cliqueue.res: cliqueue.rc queue.ico cliqmain.h cliqhelp.rc cliqhelp.h
  99.          copy ..\..\prodinfo.bmp
  100.          rc -r cliqueue.rc
  101.          del prodinfo.bmp
  102.  
  103. cliqmain.obj: cliqmain.c $(CLI_HEADERS)
  104.  
  105. cliqthrd.obj: cliqthrd.c $(CLI_HEADERS)
  106.  
  107. cliqhelp.obj: cliqhelp.c $(CLI_HEADERS)
  108.  
  109.  
  110.  
  111. #-------------------------------------------------------------------
  112. #   This section creates the help manager file.  The IPF compiler
  113. #   creates a file called main.hlp which is renamed to template.hlp.
  114. #-------------------------------------------------------------------
  115.  
  116. svrqueue.hlp: $(SVR_IPF)
  117. cliqueue.hlp: $(CLI_IPF)
  118.  
  119.  
  120.  
  121. #-------------------------------------------------------------------
  122. #   This section links the object modules into the finished program
  123. #   using the linker command file created earlier.  At the end, the
  124. #   resource file is bound to the application.
  125. #-------------------------------------------------------------------
  126.  
  127. svrqueue.exe: $(SVR_OBJ) svrqhelp.obj svrqueue.def svrqueue.lnk svrqueue.res
  128.     $(LINK) @svrqueue.lnk
  129.     rc -p -x svrqueue.res svrqueue.exe
  130.  
  131.  
  132. cliqueue.exe: $(CLI_OBJ) cliqhelp.obj cliqueue.def cliqueue.lnk cliqueue.res
  133.     $(LINK) @cliqueue.lnk
  134.     rc -p -x cliqueue.res cliqueue.exe
  135.