home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / PM / IPF / IPF.MAK < prev    next >
Makefile  |  1995-08-24  |  3KB  |  114 lines

  1. #===================================================================
  2. #
  3. # Makefile for IPF Sample
  4. #
  5. #  Copyright (C) 1991, 1994  IBM Corporation
  6. #
  7. #      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  8. #      sample code created by IBM Corporation. This sample code is not
  9. #      part of any standard or IBM product and is provided to you solely
  10. #      for  the purpose of assisting you in the development of your
  11. #      applications.  The code is provided "AS IS", without
  12. #      warranty of any kind.  IBM shall not be liable for any damages
  13. #      arising out of your use of the sample code, even if they have been
  14. #      advised of the possibility of such damages.
  15. #
  16. #===================================================================
  17.  
  18. #===================================================================
  19. #
  20. # Common definitions for the IBM compiler environment
  21. #
  22. #===================================================================
  23.  
  24. .SUFFIXES:
  25. .SUFFIXES: .c .bmp .def .dll .h .ico .ipf .obj .rc .res
  26.  
  27. #===================================================================
  28. #
  29. # Default compilation macros for sample programs
  30. #
  31. # Compile switches that are enabled
  32. # /c      compile without linking
  33. # /Ge-    build a DLL file, not an .EXE
  34. # /Gd-    statically link the run-time library
  35. # /Re     generate executable code to run in a run-time environment
  36. # /ss     allow use of double slashes (//) for comments
  37. # /Ms     use SYSTEM linkage for functions and not OPTILINK
  38. # /Gm-    link with single-threading libraries
  39. # /W3     set the warning level to three
  40. #
  41. #===================================================================
  42.  
  43. CC      = icc /c /Ge- /Gd- /Se /Re /ss /Ms /Gm- /W3
  44.  
  45. LFLAGS  = /NOE /NOD /NOI /M
  46. LINK    = link386 $(LFLAGS)
  47.  
  48. #===================================================================
  49. #
  50. # Libraries
  51. #
  52. # DDE4NBS  - Single tasking, standard library, static binding
  53. # DDE4NBSO - Single tasking, standard library, dynamic binding
  54. # DDE4NBSI - Single tasking, standard library, import dynamic binding
  55. # DDE4SBS  - Single tasking, standard library
  56. # DDE4SBM  - Single tasking, migration library
  57. # DDE4MBS  - Multi tasking, standard library
  58. # DDE4MBM  - Multi tasking, migration library
  59. #
  60. #===================================================================
  61.  
  62. LIBS    = DDE4MBS + OS2386
  63. STLIBS  = DDE4SBS + OS2386
  64. MTLIBS  = DDE4MBS + OS2386
  65. DLLLIBS = DDE4NBS + DDE4NBSO + OS2386
  66. VLIBS   = DDE4SBS + VDH + OS2386
  67.  
  68. #===================================================================
  69. #
  70. # Rules for generating object, linker response and definition files
  71. #
  72. #===================================================================
  73.  
  74. .c.obj:
  75.     $(CC) -Fo $*.obj $*.c
  76.  
  77. .rc.res:
  78.         rc -r $*.rc
  79.  
  80. .ipf.inf:
  81.         ipfc /inf $*.ipf
  82.  
  83. #===================================================================
  84.  
  85. all: ipf.dll ipf.inf
  86.  
  87. #
  88. # Create .DLL file
  89. #
  90.  
  91. ipf.dll: ipf.def ipf.obj ipf.res
  92.          $(LINK) ipf.obj, ipf.dll, ipf, $(DLLLIBS), ipf.def
  93.          rc -p -x ipf.res ipf.dll
  94.  
  95. #
  96. # Create .RES file
  97. #
  98.  
  99. ipf.res: ipf.rc ipf.ico ipf.h \
  100.          frame1.bmp frame2.bmp frame3.bmp frame4.bmp frame5.bmp
  101.  
  102. #
  103. # Create .OBJ file
  104. #
  105.  
  106. ipf.obj: ipf.c ipf.h
  107.  
  108. #
  109. # Create .INF file
  110. #
  111.  
  112. ipf.inf: ipf.ipf
  113.  
  114.