home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / samples / queues / queues.mak < prev    next >
Encoding:
Makefile  |  1993-03-12  |  4.0 KB  |  118 lines

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