home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / msgbox / makefile < prev    next >
Encoding:
Makefile  |  1996-02-22  |  3.4 KB  |  99 lines

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: msgbox Makefile for Windows                                 *
  3. #*                                                                             *
  4. #* COPYRIGHT:                                                                  *
  5. #* ----------                                                                  *
  6. #* Copyright (C) International Business Machines Corp., 1992,1996.             *
  7. #*                                                                             *
  8. #* DISCLAIMER OF WARRANTIES:                                                   *
  9. #* -------------------------                                                   *
  10. #* The following [enclosed] code is sample code created by IBM                 *
  11. #* Corporation. This sample code is not part of any standard IBM product       *
  12. #* and is provided to you solely for the purpose of assisting you in the       *
  13. #* development of your applications.  The code is provided "AS IS",            *
  14. #* without warranty of any kind.  IBM shall not be liable for any damages      *
  15. #* arising out of your use of the sample code, even if they have been          *
  16. #* advised of the possibility of such damages.                                 *
  17. #*                                                                             *
  18. #*******************************************************************************
  19.  
  20. # Make file assumptions:
  21. #    - Environment variable INCLUDE contains paths to:
  22. #       IBM Compiler target_directory\include;
  23. #       IBM Developer's Toolkit target_directory include paths
  24. #    - Environment variable LIB contains paths to:
  25. #       IBM Compiler target_directory\lib;
  26. #       IBM Developer's Toolkit target_directory lib paths
  27. #    - Current directory contains source files. Originals are in:
  28. #        IBM Compiler target_directory\samples\ioc\msgbox
  29. #    - current directory will be used to store:
  30. #        object, executable, and resource files
  31.  
  32. # --- Tool defintions ---
  33. ERASE=ERASE
  34. GCPPC=ICC
  35. GLINK=ICC
  36. GRC=IRC
  37. GRCV=IRCCNV
  38. GIPFC=IPFC
  39. GHCW=HCW
  40. GIPFCVIEW=IVIEW
  41. GIMAGE=IBMPCNV
  42.  
  43. # --- Tool flags ---
  44. ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+
  45. !IFDEF USE_IPF
  46. ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+ /DUSE_IPF
  47. !ENDIF
  48. GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)
  49. GCPPLFLAGS=/Tdp /B"/pmtype:pm /debug /browse"
  50. GPERFOBJ=cppwpa3.obj
  51. GRCFLAGS=-DIC_WIN
  52. GRCVFLAGS=
  53. GIPFCFLAGS=/q
  54. GHCWFLAGS=/c /e
  55. GIMAGEFLAGS=
  56.  
  57. # --- Body ---
  58. all:  msgbox.exe msgbox.hlp
  59.  
  60. msgbox.exe:  msgbox.obj msgbox.res
  61.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"msgbox.exe" \
  62.       msgbox.obj $(GPERFOBJ) msgbox.res
  63.  
  64. msgbox.obj:  msgbox.cpp msgbox.hpp msgbox.h
  65.       $(GCPPC) /C+ $(GCPPFLAGS) msgbox.cpp
  66.  
  67. msgbox.res:  msgbox.rc msgbox.h msgbox.ico
  68.       $(GRC) $(GRCFLAGS) msgbox.rc
  69.  
  70. msgbox.rc:  msgbox.rcx
  71.       $(GRCV) $(GRCVFLAGS) msgbox.rcx msgbox.rc
  72.  
  73. msgbox.ico:  msgbox.icx
  74.       $(GIMAGE) -I $(GIMAGEFLAGS) msgbox.icx msgbox.ico
  75.  
  76. # --- RTP Help ---
  77. !IFNDEF USE_IPF
  78. msgbox.hlp:  msgbox.hpj msgbox.rtf
  79.       $(GHCW) $(GHCWFLAGS) msgbox.hpj
  80. !ENDIF
  81.  
  82. # --- IPF Help ---
  83. !IFDEF USE_IPF
  84.       $(GIPFC) $(GIPFCFLAGS) msgbox.ipf
  85. !ENDIF
  86.  
  87.  
  88. # --- Cleanup ---
  89. clean:
  90.         -$(ERASE) msgbox.exe
  91.         -$(ERASE) msgbox.obj
  92.         -$(ERASE) msgbox.res
  93.         -$(ERASE) msgbox.pdb
  94.         -$(ERASE) msgbox.hlp
  95.         -$(ERASE) msgbox.ph
  96. #        -$(ERASE) msgbox.rc
  97. #        -$(ERASE) msgbox.ico
  98.  
  99.