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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: hello5 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\hello5
  29. #    - current directory will be used to store:
  30. #        object, executable, and resource files
  31. #
  32. # RTF versus IPF:
  33. #    - This makefile by default uses RTP source files to create RTF help.
  34. #      By specifying USE_IPF=1, the makefile will use IPF sources files
  35. #      to create IPF help.  Example: nmake USE_IPF=1 /a
  36.  
  37. # --- Tool defintions ---
  38. ERASE=ERASE
  39. GCPPC=ICC
  40. GLINK=ICC
  41. GRC=IRC
  42. GRCV=IRCCNV
  43. GIPFC=IPFC
  44. GHCW=HCW
  45. GIPFCVIEW=IVIEW
  46. GIMAGE=IBMPCNV
  47.  
  48. # --- Tool flags ---
  49. ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+
  50. !IFDEF USE_IPF
  51. ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+ /DUSE_IPF
  52. !ENDIF
  53. GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)
  54. GCPPLFLAGS=/Tdp /B"/pmtype:pm /debug /browse"
  55. GPERFOBJ=cppwpa3.obj
  56. GRCFLAGS=-DIC_WIN
  57. GRCVFLAGS=
  58. GIPFCFLAGS=/q
  59. GHCWFLAGS=/c /e
  60. GIMAGEFLAGS=
  61.  
  62. # --- Body ---
  63. all:  hello5.exe ahellow5.hlp
  64.  
  65. hello5.exe:  ahellow5.obj adialog5.obj aearthw5.obj ahellow5.res
  66.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"hello5.exe" \
  67.       ahellow5.obj adialog5.obj aearthw5.obj $(GPERFOBJ) ahellow5.res
  68.  
  69. ahellow5.obj:  ahellow5.cpp ahellow5.hpp ahellow5.h
  70.       $(GCPPC) /C+ $(GCPPFLAGS) ahellow5.cpp
  71.  
  72. adialog5.obj:  adialog5.cpp adialog5.hpp ahellow5.h ahellow5.hpp
  73.       $(GCPPC) /C+ $(GCPPFLAGS) adialog5.cpp
  74.  
  75. aearthw5.obj:  aearthw5.cpp aearthw5.hpp ahellow5.h ahellow5.hpp
  76.       $(GCPPC) /C+ $(GCPPFLAGS) aearthw5.cpp
  77.  
  78. ahellow5.res:  ahellow5.rc ahellow5.h ahellow5.ico
  79.       $(GRC) $(GRCFLAGS) ahellow5.rc
  80.  
  81. ahellow5.rc:  ahellow5.rcx ahellow5.ico
  82.       $(GRCV) $(GRCVFLAGS) ahellow5.rcx ahellow5.rc
  83.  
  84. ahellow5.ico:  ahellow5.icx
  85.       $(GIMAGE) -I $(GIMAGEFLAGS) ahellow5.icx ahellow5.ico
  86.  
  87. # --- RTP Help ---
  88. !IFNDEF USE_IPF
  89. ahellow5.hlp:  ahellow5.hpj ahellow5.rtf
  90.       $(GHCW) $(GHCWFLAGS) ahellow5.hpj
  91. !ENDIF
  92.  
  93. # --- IPF Help ---
  94. !IFDEF USE_IPF
  95. ahellow5.hlp:  ahellow5.ipf
  96.       $(GIPFC) $(GIPFCFLAGS) ahellow5.ipf
  97. !ENDIF
  98.  
  99.  
  100. # --- Cleanup ---
  101. clean:
  102.         -$(ERASE) hello5.exe
  103.         -$(ERASE) ahellow5.obj
  104.         -$(ERASE) adialog5.obj
  105.         -$(ERASE) aearthw5.obj
  106.         -$(ERASE) ahellow5.pdb
  107.         -$(ERASE) adialog5.pdb
  108.         -$(ERASE) aearthw5.pdb
  109.         -$(ERASE) ahellow5.res
  110.         -$(ERASE) ahellow5.ph
  111.         -$(ERASE) ahellow5.hlp
  112. #        -$(ERASE) ahellow5.rc
  113. #        -$(ERASE) ahellow5.ico
  114.  
  115.