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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: Hello6 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\hello6
  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:  hello6.exe ahellow6.hlp
  64.  
  65. hello6.exe:  ahellow6.obj adialog6.obj aearthw6.obj anotebw6.obj ahellow6.res
  66.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"hello6.exe" \
  67.       ahellow6.obj adialog6.obj aearthw6.obj anotebw6.obj $(GPERFOBJ) ahellow6.res
  68.  
  69. ahellow6.obj:  ahellow6.cpp ahellow6.hpp ahellow6.h
  70.       $(GCPPC) /C+ $(GCPPFLAGS) ahellow6.cpp
  71.  
  72. adialog6.obj:  adialog6.cpp adialog6.hpp ahellow6.h ahellow6.hpp
  73.       $(GCPPC) /C+ $(GCPPFLAGS) adialog6.cpp
  74.  
  75. aearthw6.obj:  aearthw6.cpp aearthw6.hpp ahellow6.h ahellow6.hpp
  76.       $(GCPPC) /C+ $(GCPPFLAGS) aearthw6.cpp
  77.  
  78. anotebw6.obj:  anotebw6.cpp anotebw6.hpp ahellow6.h ahellow6.hpp
  79.       $(GCPPC) /C+ $(GCPPFLAGS) anotebw6.cpp
  80.  
  81. ahellow6.res:  ahellow6.rc ahellow6.h ahellow6.ico
  82.       $(GRC) $(GRCFLAGS) ahellow6.rc
  83.  
  84. ahellow6.rc:  ahellow6.rcx
  85.       $(GRCV) $(GRCVFLAGS) ahellow6.rcx ahellow6.rc
  86.  
  87. ahellow6.ico:  ahellow6.icx
  88.       $(GIMAGE) -I $(GIMAGEFLAGS) ahellow6.icx ahellow6.ico
  89.  
  90. !IFNDEF USE_IPF
  91. ahellow6.hlp:  ahellow6.hpj ahellow6.rtf
  92.       $(GHCW) $(GHCWFLAGS) ahellow6.hpj
  93. !ENDIF
  94.  
  95. !IFDEF USE_IPF
  96. ahellow6.hlp:  ahellow6.ipf
  97.       $(GIPFC) $(GIPFCFLAGS) ahellow6.ipf
  98. !ENDIF
  99.  
  100.  
  101. # --- Cleanup ---
  102. clean:
  103.         -$(ERASE) hello6.exe
  104.         -$(ERASE) ahellow6.obj
  105.         -$(ERASE) adialog6.obj
  106.         -$(ERASE) aearthw6.obj
  107.         -$(ERASE) anotebw6.obj
  108.         -$(ERASE) ahellow6.pdb
  109.         -$(ERASE) adialog6.pdb
  110.         -$(ERASE) aearthw6.pdb
  111.         -$(ERASE) anotebw6.pdb
  112.         -$(ERASE) ahellow6.res
  113.         -$(ERASE) ahellow6.hlp
  114.         -$(ERASE) ahellow6.ph
  115. #        -$(ERASE) ahellow6.rc
  116. #        -$(ERASE) ahellow6.ico
  117.  
  118.