home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / SAMPLES / COMPILER / SAMPLE03 / MAKE03R < prev    next >
Text File  |  1993-05-07  |  3KB  |  77 lines

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: MAKE03R                                                     *
  3. #*                                                                             *
  4. #* COPYRIGHT:                                                                  *
  5. #* ----------                                                                  *
  6. #* Copyright (C) International Business Machines Corp., 1991,1993.             *
  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. # IBM Developer's Workframe/2 Make File Creation
  21.  
  22. # Make File Creation run in directory:
  23. #   E:\IBMCPP\SAMPLES\SAMPLE03;
  24.  
  25. .SUFFIXES: .c .dll .exe
  26.  
  27. CCFLAGS= /O /C
  28. LKFLAGS= /A:16 /NOI /NOL /NOE
  29.  
  30. INITTERM.OBJ:  INITTERM.C
  31.    ICC.EXE $(CCFLAGS) /Ge- /DSTATIC_LINK .\initterm.c
  32.  
  33. SAMPLE03.OBJ:  SAMPLE03.C SAMPLE03.H
  34.    ICC.EXE $(CCFLAGS) /Ge- /DSTATIC_LINK .\sample03.c
  35.  
  36. MAIN03.OBJ:  MAIN03.C SAMPLE03.H
  37.    ICC.EXE $(CCFLAGS)      .\main03.c
  38.  
  39. ALL: sample03.dll  main03.exe
  40.  
  41. sample03.dll:  \
  42.   INITTERM.OBJ \
  43.   SAMPLE03.OBJ \
  44.   sample3r.def \
  45.   MAKE03S
  46.    @REM @<<SAMPLE03.@0
  47.      $(LKFLAGS) +
  48.      INITTERM.OBJ +
  49.      SAMPLE03.OBJ
  50.      sample03.dll
  51.  
  52.  
  53.      sample3r.def;
  54. <<
  55.    LINK386.EXE @SAMPLE03.@0
  56.    IMPLIB SAMPLE03.LIB SAMPLE3R.DEF
  57.    COPY SAMPLE03.DLL ..\..\..\DLL > NUL:
  58.  
  59. MAIN03.EXE:  \
  60.   MAIN03.OBJ \
  61.   main03.def \
  62.   MAKE03S
  63.    @REM @<<MAIN03.@0
  64.      $(LKFLAGS) /NOD /BAS:65536 +
  65.      MAIN03.OBJ
  66.      MAIN03.EXE
  67.  
  68.      DDE4SBSO SAMPLE03 OS2386
  69.      main03.def;
  70. <<
  71.    LINK386.EXE @MAIN03.@0
  72.  
  73. clean        :
  74.          -Del  INITTERM.obj SAMPLE03.obj MAIN03.obj
  75.          -Del  SAMPLE03.dll SAMPLE03.lib MAIN03.exe
  76.          -Del  ..\..\..\DLL\SAMPLE03.dll
  77.