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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: mmremote 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\mmremote
  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:  mmremote.exe
  57.  
  58. mmremote.exe:  mmremote.obj mmremote.res
  59.       $(GLINK) $(GCPPLFLAGS) $(GCPPFLAGS) /Fe"mmremote.exe" \
  60.       mmremote.obj $(GPERFOBJ) mmremote.res
  61.  
  62. mmremote.obj: mmremote.cpp mmremote.h
  63.       $(GCPPC) /C+ $(GCPPFLAGS) mmremote.cpp
  64.  
  65. mmremote.res: mmremote.rc mmremote.h mmremote.ico cd.bmp midi.bmp power.bmp
  66.       $(GRC) $(GRCFLAGS) mmremote.rc
  67.  
  68. mmremote.rc:   mmremote.rcx
  69.       $(GRCV) $(GRCVFLAGS) mmremote.rcx mmremote.rc
  70.  
  71. mmremote.ico:  mmremote.icx
  72.       $(GIMAGE) -I $(GIMAGEFLAGS) mmremote.icx mmremote.ico
  73.  
  74.  
  75. # --- Cleanup ---
  76. clean:
  77.        -$(ERASE) mmremote.exe
  78.        -$(ERASE) mmremote.res
  79.        -$(ERASE) mmremote.obj
  80.        -$(ERASE) mmremote.pdb
  81. #       -$(ERASE) mmremote.rc
  82. #       -$(ERASE) mmremote.ico
  83.  
  84.