home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / HELLO5 / MAKEFILE < prev    next >
Text File  |  1995-05-15  |  3KB  |  72 lines

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: Hello World Version 5 Makefile for OS/2                     *
  3. #*                                                                             *
  4. #* COPYRIGHT:                                                                  *
  5. #* ----------                                                                  *
  6. #* Copyright (C) International Business Machines Corp., 1992,1995.             *
  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. #       OS/2 Developer's Toolkit target_directory include paths
  24. #    - Environment variable LIB contains paths to:
  25. #       IBM Compiler target_directory\lib;
  26. #       OS/2 Developer's Toolkit target_directory lib paths
  27. #    - Current directory contains source files.  Originals are in:
  28. #       IBM Compiler target_directory\samples\ioc\hello5
  29. #    - current directory will be used to store:
  30. #       object, executable, and resource files
  31.  
  32. ERASE=ERASE
  33. GCPPC=ICC.EXE
  34. GLINK=ICC.EXE
  35.  
  36. ICLCPPOPTS=/GM /GD /DIC_TRACE_ALL /DIC_DEVELOP
  37.  
  38. GCPPFLAGS=$(LOCALOPTS) $(ICLCPPOPTS)
  39.  
  40. GCPPLFLAGS=/Tdp /B" /pmtype:pm"
  41.  
  42. all:  HELLO5.EXE AHELLOW5.ICO AHELLOW5.HLP
  43.  
  44.  
  45. HELLO5.EXE:  AHELLOW5.OBJ ADIALOG5.OBJ AEARTHW5.OBJ AHELLOW5.RES
  46.         $(GLINK) $(GCPPLFLAGS) /Fe"HELLO5.EXE" \
  47.           AHELLOW5.OBJ ADIALOG5.OBJ AEARTHW5.OBJ
  48.         RC AHELLOW5.RES HELLO5.EXE
  49.  
  50. AHELLOW5.OBJ:  AHELLOW5.CPP AHELLOW5.HPP ADIALOG5.HPP AEARTHW5.HPP AHELLOW5.H
  51.         $(GCPPC) /C $(GCPPFLAGS) AHELLOW5.CPP
  52.  
  53. ADIALOG5.OBJ:  ADIALOG5.CPP ADIALOG5.HPP AHELLOW5.H
  54.         $(GCPPC) /C $(GCPPFLAGS) ADIALOG5.CPP
  55.  
  56. AEARTHW5.OBJ:  AEARTHW5.CPP AEARTHW5.HPP AHELLOW5.H
  57.         $(GCPPC) /C $(GCPPFLAGS) AEARTHW5.CPP
  58.  
  59. AHELLOW5.RES:  AHELLOW5.RC AHELLOW5.H
  60.         RC -r -DIC_PM AHELLOW5.RC
  61.  
  62. AHELLOW5.HLP:  AHELLOW5.IPF
  63.         IPFC AHELLOW5.IPF
  64.  
  65. clean:
  66.         $(ERASE) HELLO5.EXE
  67.         $(ERASE) AHELLOW5.OBJ
  68.         $(ERASE) ADIALOG5.OBJ
  69.         $(ERASE) AEARTHW5.OBJ
  70.         $(ERASE) AHELLOW5.RES
  71.         $(ERASE) AHELLOW5.HLP
  72.