home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / cdmcidrv / cdmct.mak < prev    next >
Makefile  |  1999-05-11  |  3KB  |  93 lines

  1. #===================================================================
  2. #
  3. #   CDMCT.MAK - Make file for CD Audio Media Component Interface Drivers
  4. #   Copyright  IBM Corporation 1992
  5. #
  6. #===================================================================
  7. #===================================================================
  8. # Include the file ibmsamp.inc which defines the various macros
  9. # depending on the target specified.
  10. #
  11. # The following macros are defined in ibmsamp.inc:
  12. #
  13. #       OBJDIR   - Directory where object files are created
  14. #       EXEDIR   - Directory where executable files are created
  15. #       RC       - Resource compiler
  16. #       RCFLAGS  - Resource compiler flags
  17. #       LINK     - Linker
  18. #       LFLAGS   - Linker flags
  19. #       MTLIBS   - Multithreaded versions of the runtime libraries
  20. #===================================================================
  21.  
  22. !include ..\..\ibmsamp.inc
  23.  
  24.  
  25.  
  26. HEADERS = cdaudibm.h hhpheap.h ibmcdrom.h
  27. #-------------------------------------------------------------------
  28. #
  29. #  Component specific requirements for compile flags
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. CC = $(CC) -Ge- -Sm -DINCL_32
  34.  
  35. #-------------------------------------------------------------------
  36. #
  37. #   A list of all of the object files
  38. #
  39. #-------------------------------------------------------------------
  40.  
  41. IBMCDRT_OBJS = \
  42. $(OBJDIR)\ibmcdrom.obj $(OBJDIR)\ibmcdpro.obj $(OBJDIR)\ibmcdmsc.obj
  43.  
  44. CDAUDIO_OBJS = \
  45. $(OBJDIR)\cdaudio.obj $(OBJDIR)\cdaudpro.obj $(OBJDIR)\cdaudutl.obj
  46.  
  47. COMMON_OBJS = \
  48. $(OBJDIR)\cdmccomn.obj $(OBJDIR)\cdmcinit.obj $(OBJDIR)\hhpheap.obj
  49.  
  50. OBJS = $(IBMCDRT_OBJS) $(CDAUDIO_OBJS) $(COMMON_OBJS)
  51.  
  52. ALL_IPF =
  53.  
  54. #-------------------------------------------------------------------
  55. #   This section lists all files to be built by the make.  The
  56. #   makefile builds the executible as well as its associated help
  57. #   file.
  58. #-------------------------------------------------------------------
  59. all: $(EXEDIR)\cdaudiot.dll $(EXEDIR)\ibmcdrt.dll
  60.  
  61. #-------------------------------------------------------------------
  62. #   This section creates the command file used by the linker.  This
  63. #   command file is recreated automatically every time you change
  64. #   the object file list, linker flags, or library list.
  65. #-------------------------------------------------------------------
  66. #-------------------------------------------------------------------
  67. #   Dependencies
  68. #     This section lists all object files needed to be built for the
  69. #     application, along with the files it is dependent upon (e.g.
  70. #     its source and any header files).
  71. #-------------------------------------------------------------------
  72.  
  73. prodinfo.bmp :
  74.            copy ..\..\prodinfo.bmp $@
  75.  
  76.  
  77. $(EXEDIR)\ibmcdrt.dll: $(IBMCDRT_OBJS) $(COMMON_OBJS) ibmcdrom.def
  78.    -$(CREATE_PATH)
  79.    $(LINK) $@ ibmcdrom.def $(MTLIBS) @<<$(OBJDIR)\ibmcdrom.lnk
  80. $(IBMCDRT_OBJS) $(COMMON_OBJS)
  81. <<
  82.  
  83. $(EXEDIR)\cdaudiot.dll: $(CDAUDIO_OBJS) $(COMMON_OBJS) cdaudio.def
  84.    -$(CREATE_PATH)
  85.    $(LINK) $@ cdaudio.def $(MTLIBS) @<<$(OBJDIR)\cdaudio.lnk
  86. $(CDAUDIO_OBJS) $(COMMON_OBJS)
  87. <<
  88.  
  89. clean :
  90.         @if exist *.obj del *.obj
  91.         @if exist *.dll del *.dll
  92.         @if exist *.exe del *.exe
  93.