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

  1. #===================================================================
  2. #   Npipe.mak - Make file for named pipe sample
  3. #   Copyright 1992 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 Compiler
  10. #
  11. include ..\ibmsamp.inc
  12.  
  13. SVR_HEADERS = svrpmain.h svrpxtrn.h svrpglbl.h svrphelp.h namepipe.h
  14. CLI_HEADERS = clnpmain.h clnpxtrn.h clnpglbl.h clnphelp.h namepipe.h
  15.  
  16.  
  17. #-------------------------------------------------------------------
  18. #   A list of all of the object files
  19. #-------------------------------------------------------------------
  20.  
  21. SVR_OBJ = svrpmain.obj svrpthrd.obj svrppnt.obj svrpgame.obj svrphelp.obj
  22. CLI_OBJ = clnpmain.obj clnpthrd.obj clnphelp.obj
  23.  
  24.  
  25. #-------------------------------------------------------------------
  26. #   A list of all of the Help text files
  27. #-------------------------------------------------------------------
  28.  
  29. SVR_IPF = svrnpipe.ipf file.ipf svroptn.ipf help.ipf dlg.ipf
  30. CLI_IPF = clinpipe.ipf clifile.ipf clioptn.ipf help.ipf clidlg.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: svrnpipe.exe svrnpipe.hlp \
  40.      clinpipe.exe clinpipe.hlp
  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. svrnpipe.lnk: npipe.mak
  49.     echo $(SVR_OBJ)              > svrnpipe.lnk
  50.     echo svrnpipe.exe           >> svrnpipe.lnk
  51.     echo svrnpipe.map           >> svrnpipe.lnk
  52.     echo $(MTLIBS)              >> svrnpipe.lnk
  53.     echo svrnpipe.def           >> svrnpipe.lnk
  54.  
  55. clinpipe.lnk: npipe.mak
  56.     echo $(CLI_OBJ)              > clinpipe.lnk
  57.     echo clinpipe.exe           >> clinpipe.lnk
  58.     echo clinpipe.map           >> clinpipe.lnk
  59.     echo $(MTLIBS)              >> clinpipe.lnk
  60.     echo clinpipe.def           >> clinpipe.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. svrpmain.res: svrpmain.rc namepipe.ico svrpmain.h svrphelp.rc svrphelp.h
  74.  
  75. svrpmain.obj: svrpmain.c $(SVR_HEADERS)
  76.  
  77. svrpthrd.obj: svrpthrd.c $(SVR_HEADERS)
  78.  
  79. svrpgame.obj: svrpgame.c $(SVR_HEADERS)
  80.  
  81. svrppnt.obj:  svrppnt.c  $(SVR_HEADERS)
  82.  
  83. svrphelp.obj: svrphelp.c $(SVR_HEADERS)
  84.  
  85.  
  86. clnpmain.res: clnpmain.rc namepipe.ico clnpmain.h clnphelp.rc clnphelp.h
  87.  
  88. clnpmain.obj: clnpmain.c $(CLI_HEADERS)
  89.  
  90. clnpthrd.obj: clnpthrd.c $(CLI_HEADERS)
  91.  
  92. clnphelp.obj: clnphelp.c $(CLI_HEADERS)
  93.  
  94.  
  95.  
  96. #-------------------------------------------------------------------
  97. #   This section creates the help manager file.  The IPF compiler
  98. #   creates a file called main.hlp which is renamed to template.hlp.
  99. #-------------------------------------------------------------------
  100.  
  101. svrnpipe.hlp: $(SVR_IPF)
  102. clinpipe.hlp: $(CLI_IPF)
  103.  
  104.  
  105.  
  106. #-------------------------------------------------------------------
  107. #   This section links the object modules into the finished program
  108. #   using the linker command file created earlier.  At the end, the
  109. #   resource file is bound to the application.
  110. #-------------------------------------------------------------------
  111.  
  112. svrnpipe.exe: $(SVR_OBJ) svrphelp.obj svrnpipe.def svrnpipe.lnk svrnpipe.res
  113.     $(LINK) @svrnpipe.lnk
  114.     rc -p -x svrnpipe.res svrnpipe.exe
  115.  
  116.  
  117. clinpipe.exe: $(CLI_OBJ) clnphelp.obj clinpipe.def clinpipe.lnk clinpipe.res
  118.     $(LINK) @clinpipe.lnk
  119.     rc -p -x clinpipe.res clinpipe.exe
  120.