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

  1. #===================================================================
  2. #   Npipe.mak - Make file for named pipe sample
  3. #
  4. #  Copyright (C) 1992, 1994 IBM Corporation
  5. #
  6. #      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  7. #      sample code created by IBM Corporation. This sample code is not
  8. #      part of any standard or IBM product and is provided to you solely
  9. #      for  the purpose of assisting you in the development of your
  10. #      applications.  The code is provided "AS IS", without
  11. #      warranty of any kind.  IBM shall not be liable for any damages
  12. #      arising out of your use of the sample code, even if they have been
  13. #      advised of the possibility of such damages.
  14. #
  15. #===================================================================
  16.  
  17. #
  18. # Comment out or delete the .inc file you don't want
  19. # IBMSAMP.INC - sets up for IBM 32-bit compiler Compiler
  20. #
  21. include ..\..\ibmsamp.inc
  22.  
  23. SVR_HEADERS = svrpmain.h svrpxtrn.h svrpglbl.h svrphelp.h namepipe.h
  24. CLI_HEADERS = clnpmain.h clnpxtrn.h clnpglbl.h clnphelp.h namepipe.h
  25.  
  26.  
  27. #-------------------------------------------------------------------
  28. #   A list of all of the object files
  29. #-------------------------------------------------------------------
  30.  
  31. SVR_OBJ = svrpmain.obj svrpthrd.obj svrppnt.obj svrpgame.obj svrphelp.obj
  32. CLI_OBJ = clnpmain.obj clnpthrd.obj clnphelp.obj
  33.  
  34.  
  35. #-------------------------------------------------------------------
  36. #   A list of all of the Help text files
  37. #-------------------------------------------------------------------
  38.  
  39. SVR_IPF = svrnpipe.ipf file.ipf svroptn.ipf help.ipf dlg.ipf
  40. CLI_IPF = clinpipe.ipf clifile.ipf clioptn.ipf help.ipf clidlg.ipf
  41.  
  42.  
  43. #-------------------------------------------------------------------
  44. #   This section lists all files to be built by the make.  The
  45. #   makefile builds the executible as well as its associated help
  46. #   file.
  47. #-------------------------------------------------------------------
  48.  
  49. all: svrnpipe.exe svrnpipe.hlp \
  50.      clinpipe.exe clinpipe.hlp
  51.  
  52. #-------------------------------------------------------------------
  53. #   This section creates the command file used by the linker.  This
  54. #   command file is recreated automatically every time you change
  55. #   the object file list, linker flags, or library list.
  56. #-------------------------------------------------------------------
  57.  
  58. svrnpipe.lnk: npipe.mak
  59.     echo $(SVR_OBJ)              > svrnpipe.lnk
  60.     echo svrnpipe.exe           >> svrnpipe.lnk
  61.     echo svrnpipe.map           >> svrnpipe.lnk
  62.     echo $(MTLIBS)              >> svrnpipe.lnk
  63.     echo svrnpipe.def           >> svrnpipe.lnk
  64.  
  65. clinpipe.lnk: npipe.mak
  66.     echo $(CLI_OBJ)              > clinpipe.lnk
  67.     echo clinpipe.exe           >> clinpipe.lnk
  68.     echo clinpipe.map           >> clinpipe.lnk
  69.     echo $(MTLIBS)              >> clinpipe.lnk
  70.     echo clinpipe.def           >> clinpipe.lnk
  71.  
  72.  
  73. #===================================================================
  74. #
  75. # Dependencies
  76. #
  77. #   This section lists all object files needed to be built for the
  78. #   application, along with the files it is dependent upon (e.g. its
  79. #   source and any header files).
  80. #
  81. #===================================================================
  82.  
  83. svrnpipe.res: svrnpipe.rc namepipe.ico svrpmain.h svrphelp.rc svrphelp.h
  84.          copy ..\..\prodinfo.bmp
  85.          rc -r svrnpipe.rc
  86.          del prodinfo.bmp
  87.  
  88. svrpmain.obj: svrpmain.c $(SVR_HEADERS)
  89.  
  90. svrpthrd.obj: svrpthrd.c $(SVR_HEADERS)
  91.  
  92. svrpgame.obj: svrpgame.c $(SVR_HEADERS)
  93.  
  94. svrppnt.obj:  svrppnt.c  $(SVR_HEADERS)
  95.  
  96. svrphelp.obj: svrphelp.c $(SVR_HEADERS)
  97.  
  98.  
  99. clinpipe.res: clinpipe.rc namepipe.ico clnpmain.h clnphelp.rc clnphelp.h
  100.          copy ..\..\prodinfo.bmp
  101.          rc -r clinpipe.rc
  102.          del prodinfo.bmp
  103.  
  104. clnpmain.obj: clnpmain.c $(CLI_HEADERS)
  105.  
  106. clnpthrd.obj: clnpthrd.c $(CLI_HEADERS)
  107.  
  108. clnphelp.obj: clnphelp.c $(CLI_HEADERS)
  109.  
  110.  
  111.  
  112. #-------------------------------------------------------------------
  113. #   This section creates the help manager file.  The IPF compiler
  114. #   creates a file called main.hlp which is renamed to template.hlp.
  115. #-------------------------------------------------------------------
  116.  
  117. svrnpipe.hlp: $(SVR_IPF)
  118. clinpipe.hlp: $(CLI_IPF)
  119.  
  120.  
  121.  
  122. #-------------------------------------------------------------------
  123. #   This section links the object modules into the finished program
  124. #   using the linker command file created earlier.  At the end, the
  125. #   resource file is bound to the application.
  126. #-------------------------------------------------------------------
  127.  
  128. svrnpipe.exe: $(SVR_OBJ) svrphelp.obj svrnpipe.def svrnpipe.lnk svrnpipe.res
  129.     $(LINK) @svrnpipe.lnk
  130.     rc -p -x svrnpipe.res svrnpipe.exe
  131.  
  132.  
  133. clinpipe.exe: $(CLI_OBJ) clnphelp.obj clinpipe.def clinpipe.lnk clinpipe.res
  134.     $(LINK) @clinpipe.lnk
  135.     rc -p -x clinpipe.res clinpipe.exe
  136.