home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / samples / sam04l / makefile.___ / MAKEFILE
Encoding:
Text File  |  1992-04-01  |  1.9 KB  |  44 lines

  1. #*******************************************************************************
  2. #* SAMPLE PROGRAM 04: MAKEFILE                                                 *
  3. #*                                                                             *
  4. #* COPYRIGHT:                                                                  *
  5. #* ----------                                                                  *
  6. #* Copyright (C) International Business Machines Corp., 1991,1992.             *
  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. !if "$(LIBRARY)" == "DYNAMIC"
  21. LIBFLAG=-Gd
  22. !else
  23. LIBFLAG=-Gd-
  24. !endif
  25.  
  26. all: samp04a.lib main04.exe
  27.  
  28.  
  29. # Use IMPLIB to build an import library of functions which will be bound at
  30. # load-time.
  31.  
  32. samp04a.lib: samp04a.def
  33.   implib /nologo samp04a.lib samp04a.def
  34.  
  35.  
  36. # Build main04.exe.
  37.  
  38. main04.exe: main04.obj main04.def
  39.   link386 /nologo /noi /pm:vio main04,main04,nul,samp04a,main04
  40.  
  41. main04.obj: main04.c sample04.h
  42.   icc -c -Q $(LIBFLAG) main04.c
  43.  
  44.