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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: hello4 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\hello4
  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. GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)
  46. GCPPLFLAGS=/Tdp /B"/pmtype:pm /debug /browse"
  47. GPERFOBJ=cppwpa3.obj
  48. GRCFLAGS=-DIC_WIN
  49. GRCVFLAGS=
  50. GIPFCFLAGS=/q
  51. GHCWFLAGS=/c /e
  52. GIMAGEFLAGS=
  53.  
  54. # --- Body ---
  55. all:  hello4.exe
  56.  
  57. hello4.exe:  ahellow4.obj adialog4.obj ahellow4.res
  58.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"hello4.exe" \
  59.       ahellow4.obj adialog4.obj $(GPERFOBJ) ahellow4.res
  60.  
  61. ahellow4.obj:  ahellow4.cpp ahellow4.hpp ahellow4.h
  62.       $(GCPPC) /C+ $(GCPPFLAGS) ahellow4.cpp
  63.  
  64. adialog4.obj:  adialog4.cpp adialog4.hpp ahellow4.h ahellow4.hpp
  65.       $(GCPPC) /C+ $(GCPPFLAGS) adialog4.cpp
  66.  
  67. ahellow4.res:  ahellow4.rc ahellow4.h ahellow4.ico
  68.       $(GRC) $(GRCFLAGS) ahellow4.rc
  69.  
  70. ahellow4.rc:  ahellow4.rcx
  71.       $(GRCV) $(GRCVFLAGS) ahellow4.rcx ahellow4.rc
  72.  
  73. ahellow4.ico:  ahellow4.icx
  74.       $(GIMAGE) -I $(GIMAGEFLAGS) ahellow4.icx ahellow4.ico
  75.  
  76.  
  77. # --- Cleanup ---
  78. clean:
  79.         -$(ERASE) hello4.exe
  80.         -$(ERASE) ahellow4.obj
  81.         -$(ERASE) adialog4.obj
  82.         -$(ERASE) ahellow4.pdb
  83.         -$(ERASE) adialog4.pdb
  84.         -$(ERASE) ahellow4.res
  85. #        -$(ERASE) ahellow4.rc
  86. #        -$(ERASE) ahellow4.ico
  87.  
  88.