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

  1. #===================================================================
  2. #
  3. #   MCISPY.MAK - Make file for the OS/2 MMPM/2 MCISPY Application
  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. #       MMLIBS   - Multimedia libraries
  21. #===================================================================
  22.  
  23. !include ..\..\ibmsamp.inc
  24.  
  25. HEADERS = mcispy.h
  26. #-------------------------------------------------------------------
  27. #
  28. #   A list of all of the object files
  29. #
  30. #-------------------------------------------------------------------
  31.  
  32. MCIOBJS = \
  33. $(OBJDIR)\dlgprocs.obj \
  34. $(OBJDIR)\mcispy.obj   \
  35. $(OBJDIR)\mcisubs.obj  \
  36. $(OBJDIR)\mcitbl.obj
  37.  
  38. MDMOBJS = $(OBJDIR)\mdm.obj
  39.  
  40. OBJS = $(MCIOBJS) $(MDMOBJS)
  41.  
  42.  
  43. ALL_IPF = mcispy.ipf
  44.  
  45. #-------------------------------------------------------------------
  46. #   This section lists all files to be built by the make.  The
  47. #   makefile builds the executible as well as its associated help
  48. #   file.
  49. #-------------------------------------------------------------------
  50. all: $(EXEDIR)\mcispy.exe $(EXEDIR)\mdm.dll $(EXEDIR)\mcispy.hlp
  51.  
  52. #-------------------------------------------------------------------
  53. #   This section creates the command file used by the linker.  This
  54. #   command file is recreated automatically every time you change
  55. #   the object file list, linker flags, or library list.
  56. #-------------------------------------------------------------------
  57. #-------------------------------------------------------------------
  58. #   Dependencies
  59. #     This section lists all object files needed to be built for the
  60. #     application, along with the files it is dependent upon (e.g.
  61. #     its source and any header files).
  62. #-------------------------------------------------------------------
  63. $(OBJDIR)\mcispy.res: mcispy.rc $(HEADERS) mcispy.ico mcispy.dlg prodinfo.bmp
  64.                 $(RC) $(RCFLAGS) $(@B).rc $@
  65.                 @del prodinfo.bmp
  66.  
  67. $(EXEDIR)\mcispy.hlp: $(ALL_IPF)
  68.  
  69. prodinfo.bmp :
  70.            copy ..\..\prodinfo.bmp $@
  71.  
  72. $(OBJDIR)\mdm.obj: mdm.c mdm.h
  73.         $(CC) -Ge- -c -Fo"$(OBJDIR)\$(@B).obj" -DINCL_32 -DINCL_OS2MM $(@B).c
  74.  
  75. $(EXEDIR)\mcispy.exe: $(MCIOBJS) mcispy.def $(OBJDIR)\mcispy.res
  76.    -$(CREATE_PATH)
  77.    $(LINK) $@ mcispy.def $(MTLIBS) $(MMLIBS) @<<$(OBJDIR)\mcispy.lnk
  78. $(MCIOBJS)
  79. <<
  80.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  81.  
  82. $(EXEDIR)\mdm.dll: $(MDMOBJS) mdmcmd.res mdm.def
  83.    -$(CREATE_PATH)
  84.    $(LINK) $@ mdm.def $(MTLIBS) $(MMLIBS) @<<$(OBJDIR)\mcispy.lnk
  85. $(MDMOBJS)
  86. <<
  87.    $(RC) -p -x mdmcmd.res $@
  88.  
  89. clean :
  90.         @if exist *.obj del *.obj
  91.         @if exist *.dll del *.dll
  92.         @if exist *.exe del *.exe
  93.