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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: mmstereo 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\mmstereo
  29. #    - current directory will be used to store:
  30. #        object, executable, and resource files
  31. #
  32.  
  33. # --- Tool defintions ---
  34. ERASE=ERASE
  35. GCPPC=ICC
  36. GLINK=ICC
  37. GRC=IRC
  38. GRCV=IRCCNV
  39. GIPFC=IPFC
  40. GHCW=HCW
  41. GIPFCVIEW=IVIEW
  42. GIMAGE=IBMPCNV
  43.  
  44. # --- Tool flags ---
  45. ICLCPPOPTS=/Gm+ /Gd+ /Gh+ /Ti+ /Fb+ /Q+
  46. GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)
  47. GCPPLFLAGS=/Tdp /B"/pmtype:pm /debug /browse"
  48. GPERFOBJ=cppwpa3.obj
  49. GRCFLAGS=-DIC_WIN
  50. GRCVFLAGS=
  51. GIPFCFLAGS=/q
  52. GHCWFLAGS=/c /e
  53. GIMAGEFLAGS=
  54.  
  55. # --- Body ---
  56. all:  mmstereo.exe
  57.  
  58. mmstereo.exe: mmstereo.obj mltamp.obj mltcd.obj mltvid.obj mltwave.obj mmstereo.res
  59.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"mmstereo.exe" \
  60.       mmstereo.obj mltamp.obj mltcd.obj mltvid.obj mltwave.obj \
  61.       $(GPERFOBJ) mmstereo.res
  62.  
  63. mmstereo.obj: mmstereo.cpp mmstereo.hpp mmstereo.h
  64.       $(GCPPC) /C+ $(GCPPFLAGS) mmstereo.cpp
  65.  
  66. mltamp.obj:   mltamp.cpp mltamp.hpp mltamp.h mmstereo.h
  67.       $(GCPPC) /C+ $(GCPPFLAGS) mltamp.cpp
  68.  
  69. mltcd.obj:    mltcd.cpp mltcd.hpp mltcd.h mmstereo.h
  70.       $(GCPPC) /C+ $(GCPPFLAGS) mltcd.cpp
  71.  
  72. mltvid.obj:   mltvid.cpp mltvid.hpp mltvid.h mmstereo.h
  73.       $(GCPPC) /C+ $(GCPPFLAGS) mltvid.cpp
  74.  
  75. mltwave.obj:  mltwave.cpp mltwave.hpp mltwave.h mmstereo.h
  76.       $(GCPPC) /C+ $(GCPPFLAGS) mltwave.cpp
  77.  
  78. mmstereo.res: mmstereo.rc mmstereo.h mmstereo.ico
  79.       $(GRC) $(GRCFLAGS) mmstereo.rc
  80.  
  81. mmstereo.rc:   mmstereo.rcx
  82.       $(GRCV) $(GRCVFLAGS) mmstereo.rcx mmstereo.rc
  83.  
  84. mmstereo.ico:  mmstereo.icx
  85.       $(GIMAGE) -I $(GIMAGEFLAGS) mmstereo.icx mmstereo.ico
  86.  
  87.  
  88. # --- Cleanup ---
  89. clean:
  90.        -$(ERASE) mmstereo.exe
  91.        -$(ERASE) mmstereo.res
  92.        -$(ERASE) mmstereo.obj
  93.        -$(ERASE) mltamp.obj
  94.        -$(ERASE) mltcd.obj
  95.        -$(ERASE) mltvid.obj
  96.        -$(ERASE) mltwave.obj
  97.        -$(ERASE) mmstereo.pdb
  98.        -$(ERASE) mltamp.pdb
  99.        -$(ERASE) mltcd.pdb
  100.        -$(ERASE) mltvid.pdb
  101.        -$(ERASE) mltwave.pdb
  102. #       -$(ERASE) mmstereo.rc
  103. #       -$(ERASE) mmstereo.ico
  104.  
  105.