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

  1. #*******************************************************************************
  2. #* SAMPLE PROGRAM 04: MAKE04S                                                  *
  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. all: samp04a.lib sample04.exe
  21.  
  22. # Use IMPLIB to build an import library of functions which will be bound at
  23. # load-time.
  24.  
  25. samp04a.lib: samp04a.def
  26.   implib samp04a.lib samp04a.def
  27.  
  28.  
  29. # Build sample04.exe.
  30.  
  31. sample04.exe: sample04.obj sample04.def
  32.   link386 /noi /pm:vio sample04,sample04,nul,samp04a,sample04
  33.   COPY SAMP04A.DLL ..\..\..\DLL > NUL:
  34.   COPY SAMP04B.DLL ..\..\..\DLL > NUL:
  35.  
  36. sample04.obj: sample04.c sample04.h
  37.   icc -c -Gd- sample04.c
  38.  
  39. clean:
  40.          -Del  SAMPLE04.obj SAMPLE04.exe SAMP04A.lib
  41.          -Del  ..\..\..\DLL\SAMP04A.dll
  42.          -Del  ..\..\..\DLL\SAMP04B.dll
  43.