home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / TUTORIAL / ICLCC / TUTOR4 / MAKEFILE < prev    next >
Text File  |  1993-05-07  |  3KB  |  72 lines

  1. #******************************************************************************/
  2. #*                                                                            */
  3. #* COPYRIGHT:                                                                 */
  4. #* ----------                                                                 */
  5. #* Copyright (C) International Business Machines Corp., 1991,1992.            */
  6. #*                                                                            */
  7. #* DISCLAIMER OF WARRANTIES:                                                  */
  8. #* -------------------------                                                  */
  9. #* The following [enclosed] code is sample code created by IBM                */
  10. #* Corporation.  This sample code is not part of any standard IBM product     */
  11. #* and is provided to you solely for the purpose of assisting you in the      */
  12. #* development of your applications.  The code is provided "AS IS",           */
  13. #* without warranty of any kind.  IBM shall not be liable for any damages     */
  14. #* arising out of your use of the sample code, even if they have been         */
  15. #* advised of the possibility of such damages.                                */
  16. #*                                                                            */
  17. #******************************************************************************/
  18. #--------------------------------------------------------------------------------
  19. #
  20. #      Make the Tutorials for the Collection Classes
  21. #      """"""""""""""""""""""""""""""""""""""""""""""""""""""
  22. #      Written for use with:
  23. #                               OS:     OS/2 2.0
  24. #                               Make:   nmake
  25. #                               C++:    ICC
  26. #
  27. #
  28. #  We assume that the environment variable ICLCC points to the top directory of
  29. #  the library installation (like ICLCC=E:\IBMCLASS) with the following
  30. #  subtree:                        ...\
  31. #                                     \ibmclass
  32. #                                     \lib
  33. #
  34. #-------------------------------------------------------------------------------
  35. #
  36. ICLCC_INC=$(ICLCC)\ibmclass
  37. ICLCC_LIB=$(ICLCC)\lib
  38. #-------------------------------------------------------------------------------
  39. # Options to get Debug Info:
  40. CCDEBUG= -Ti -DIALL_CHECKS
  41. LKDEBUG= -B"/De "
  42. #
  43. # Options for NO Debug Info:
  44. #CCDEBUG=
  45. #LKDEBUG=
  46. #-------------------------------------------------------------------------------
  47. CCFLAGS= -I . -I .. -I ..\.. -I $(ICLCC_INC)  -Fd -Ft  -Tdp  $(CCDEBUG)
  48. LKFLAGS= $(LKDEBUG)
  49. #-------------------------------------------------------------------------------
  50.  
  51.  
  52. .SUFFIXES: .C .exe .out
  53.  
  54. example4.exe :
  55.  
  56. .C.exe       :
  57.         @echo Using the library code from '$(ICLCC)' ....
  58.         -Del tempinc\*.cpp tempinc\*.obj  2>nul
  59.          icc  $(CCFLAGS) $(LKFLAGS) $*.C  $(ICLCC_LIB)\dde4cc.lib
  60.  
  61. .exe.out     :
  62.          $*    >    $*.out 2>&1
  63.  
  64.  
  65. clean :
  66.          -Del tempinc\*.cpp tempinc\*.obj  2>nul
  67.          -Del *.obj                        2>nul
  68.          -Del *.out                        2>nul
  69.          -Del example?.exe                 2>nul
  70. #
  71.  
  72.