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

  1. #*******************************************************************************
  2. #* SAMPLE PROJECT: MAKE03S                                                     *
  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.   sample03.def \
  45.   MAKE03S
  46.    @REM @<<SAMPLE03.@0
  47.      $(LKFLAGS) +
  48.      INITTERM.OBJ +
  49.      SAMPLE03.OBJ
  50.      sample03.dll
  51.  
  52.  
  53.      sample03.def;
  54. <<
  55.    LINK386.EXE @SAMPLE03.@0
  56.    COPY SAMPLE03.DLL ..\..\..\DLL > NUL:
  57.  
  58. MAIN03.EXE:  \
  59.   MAIN03.OBJ \
  60.   main03.def \
  61.   MAKE03S
  62.    @REM @<<MAIN03.@0
  63.      /A:16 /NOI /BAS:65536 /NOL +
  64.      MAIN03.OBJ
  65.      MAIN03.EXE
  66.  
  67.  
  68.      main03.def;
  69. <<
  70.    LINK386.EXE @MAIN03.@0
  71.  
  72. clean        :
  73.          -Del  INITTERM.obj SAMPLE03.obj MAIN03.obj
  74.          -Del  SAMPLE03.dll MAIN03.exe
  75.          -Del  ..\..\..\DLL\SAMPLE03.dll
  76.