home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v6.zip / MMPM2TK / TK / CDMCT / MAKEFILE < prev   
Text File  |  1993-03-22  |  4KB  |  128 lines

  1. #**    makefile for CD Audio Media Component Interface Drivers
  2. #
  3. #
  4. # ***************************************************************************
  5. # *
  6. # *            Copyright (c) IBM Corporation  1990 - 1993
  7. # *                  All Rights Reserved
  8. # *
  9. # ***************************************************************************
  10.  
  11. .SUFFIXES:    .asm .c .obj .lst .def .lnk .sys .sym .dll .lib
  12.  
  13. #################################
  14. # Definitions for C Compiler
  15. # Compiler options (C Set/2 (Toronto))
  16. #    C+  == Perform compile only, no link.
  17. #    Q+  == Supress logo
  18. #    O+  == Optimize code (don't use with Ti)
  19. #    Ti  == Debug information
  20. #    Kp+ == Produce messages about unused function parameters
  21. #    Ss+ == Allow // comments
  22. #    Sm+ == Migration libraries (Microsoft C)
  23. #    Sn+ == Provide DBCS support in runtime string routines
  24. #    Ge- == Build .DLL (default is .exe)
  25. #    Gm+ == Multithreaded libraries
  26. #    Gn+ == Do not generate default libraries in object
  27. #    Gs- == Do not remove stack probes (default)
  28. #    Kb- == Suppress basic diagnostic messages (default)
  29. #    Ki- == Suppress messages about uninitialized variables (default)
  30. #    Ms  == Use "system" calling conventions (as opposed to Mp optlink)
  31. #    Mp  =  Optlink (register passing convention ~10% faster)
  32. #    Fl+ == Produce listing
  33. #    L+  == Produce listing
  34. #    Ls+ == Include source in listing
  35. #    Fa+ == Produce assembler code
  36. #    Le+ == Expand macros
  37. #    La+ == Include offsets in structures in listing
  38. #################################
  39.  
  40.  
  41. CC=icc
  42. CFLAGS= /C /Ge- /Gm+ /Gs- /Kb- /Ki- /Ms /Sm /Ss+ /O+ /DINCL_32
  43. DEBUG = /Ti+ /O-
  44.  
  45. ##########################################################
  46. #    Definitions for linker                 #
  47. #                             #
  48. #    DDE4MBS is the C Set/2 standard run time Library #
  49. #       for multi-threaded DLLs.             #
  50. ##########################################################
  51.  
  52. LINK= link386
  53. LFLAGS= /batch /map /nod /noe /noi /map /packcode /packdata /exepack /align:16
  54. LIBS= OS2386.LIB DDE4MBS.LIB
  55.  
  56. #    Rules for generating object and linker response and definition files
  57.  
  58. .c.obj:
  59.     $(CC) $(CFLAGS) $*.c
  60.  
  61. .dll.lib:
  62.     implib $*.lib $*.dll
  63.  
  64. .sys.sym:
  65.     mapsym $*
  66.  
  67.  
  68. #    List of object files required
  69.  
  70. all: ibmcdrt.dll cdaudiot.dll
  71.  
  72. ibmcdrt.dll: ibmcdrom.obj ibmcdpro.obj ibmcdmsc.obj cdmccomn.obj cdmcinit.obj \
  73.              hhpheap.obj ibmcdrom.lnk ibmcdrom.def
  74.     $(LINK) $(LFLAGS) @ibmcdrom.lnk
  75.  
  76. ibmcdrom.def: makefile
  77.     @echo Creating file <<$(@B).def
  78. LIBRARY IBMCDRT INITINSTANCE TERMINSTANCE
  79. DESCRIPTION 'IBM CD-ROM Toolkit MCI Driver, (c) IBM Corp 1991-1993'
  80. DATA MULTIPLE NONSHARED
  81. HEAPSIZE      44120
  82. STACKSIZE      53000
  83. IMPORTS
  84.   mdm.mdmDriverNotify
  85. EXPORTS
  86.   vsdDriverEntry
  87. <<keep
  88.  
  89. ibmcdrom.lnk: makefile
  90.     @echo Creating file <<$(@B).lnk
  91. ibmcdrom ibmcdpro ibmcdmsc cdmccomn cdmcinit hhpheap
  92. ibmcdrt.dll
  93. ibmcdrom.map $(LFLAGS)
  94. $(LIBS)
  95. ibmcdrom.def;
  96. <<keep
  97.  
  98. cdaudiot.dll:  cdaudio.obj cdaudpro.obj cdaudutl.obj cdmccomn.obj\
  99.                cdmcinit.obj hhpheap.obj cdaudio.lnk cdaudio.def
  100.     $(LINK) $(LFLAGS) @cdaudio.lnk
  101.  
  102. cdaudio.def: makefile
  103.     @echo Creating file <<$(@B).def
  104. LIBRARY CDAUDIOT INITINSTANCE TERMINSTANCE
  105. DESCRIPTION 'CD Audio Toolkit MCI Driver, (c) IBM Corp 1991-1993'
  106. DATA MULTIPLE NONSHARED
  107. HEAPSIZE      44120
  108. STACKSIZE      53000
  109. IMPORTS
  110.   mdm.mdmDriverNotify
  111.   mdm.mciSendCommand
  112.   mdm.mciConnection
  113.   mdm.mciQueryConnections
  114.   mdm.mciQueryDefaultConnections
  115. EXPORTS
  116.    mciDriverEntry
  117. <<keep
  118.  
  119. cdaudio.lnk: makefile
  120.     @echo Creating file <<$(@B).lnk
  121. cdaudio cdaudpro cdaudutl cdmccomn cdmcinit hhpheap
  122. cdaudiot.dll
  123. cdaudio.map $(LFLAGS)
  124. $(LIBS)
  125. cdaudio.def;
  126. <<keep
  127.  
  128.