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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: cnr 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\cnr
  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:  cnr.exe
  56.  
  57. cnr.exe:  acnr.obj acnr.res
  58.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"cnr.exe" \
  59.       acnr.obj $(GPERFOBJ) acnr.res
  60.  
  61. acnr.obj:  acnr.cpp acnr.hpp acnr.h
  62.       $(GCPPC) /C+ $(GCPPFLAGS) acnr.cpp
  63.  
  64. acnr.res:  acnr.rc acnr.h mesa.ico brazil.ico cpp2.ico os2logo.ico wklogo.ico
  65.       $(GRC) $(GRCFLAGS) acnr.rc
  66.  
  67. acnr.rc:  acnr.rcx
  68.       $(GRCV) $(GRCVFLAGS) acnr.rcx acnr.rc
  69.  
  70. mesa.ico:  mesa.icx
  71.       $(GIMAGE) -I $(GIMAGEFLAGS) mesa.icx mesa.ico
  72.  
  73. brazil.ico:  brazil.icx
  74.       $(GIMAGE) -I $(GIMAGEFLAGS) brazil.icx brazil.ico
  75.  
  76. cpp2.ico:  cpp2.icx
  77.       $(GIMAGE) -I $(GIMAGEFLAGS) cpp2.icx cpp2.ico
  78.  
  79. os2logo.ico:  os2logo.icx
  80.       $(GIMAGE) -I $(GIMAGEFLAGS) os2logo.icx os2logo.ico
  81.  
  82. wklogo.ico:  wklogo.icx
  83.       $(GIMAGE) -I $(GIMAGEFLAGS) wklogo.icx wklogo.ico
  84.  
  85.  
  86. # --- Cleanup ---
  87. clean:
  88.         -$(ERASE) cnr.exe
  89.         -$(ERASE) acnr.obj
  90.         -$(ERASE) acnr.pdb
  91.         -$(ERASE) acnr.res
  92. #        -$(ERASE) acnr.rc
  93. #        -$(ERASE) mesa.ico
  94. #        -$(ERASE) brazil.ico
  95. #        -$(ERASE) cpp2.ico
  96. #        -$(ERASE) os2logo.ico
  97. #        -$(ERASE) wklogo.ico
  98.  
  99.