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

  1. #===================================================================
  2. #
  3. #   MMOTTK.MAK - Makefile for Toolkit MMotion Image IOProc
  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.  
  26.  
  27. HEADERS = mmotproc.h
  28. #-------------------------------------------------------------------
  29. #
  30. #  Component specific requirements for compile flags
  31. #
  32. #-------------------------------------------------------------------
  33.  
  34. CC = $(CC) -Ge- -Sm
  35.  
  36. #-------------------------------------------------------------------
  37. #
  38. #   A list of all of the object files
  39. #
  40. #-------------------------------------------------------------------
  41.  
  42. OBJS = $(OBJDIR)\mmotproc.obj $(OBJDIR)\mmotfunc.obj
  43.  
  44. ALL_IPF =
  45.  
  46. #-------------------------------------------------------------------
  47. #   This section lists all files to be built by the make.  The
  48. #   makefile builds the executible as well as its associated help
  49. #   file.
  50. #-------------------------------------------------------------------
  51. all: $(EXEDIR)\mmottk.dll
  52.  
  53. #-------------------------------------------------------------------
  54. #   This section creates the command file used by the linker.  This
  55. #   command file is recreated automatically every time you change
  56. #   the object file list, linker flags, or library list.
  57. #-------------------------------------------------------------------
  58. #-------------------------------------------------------------------
  59. #   Dependencies
  60. #     This section lists all object files needed to be built for the
  61. #     application, along with the files it is dependent upon (e.g.
  62. #     its source and any header files).
  63. #-------------------------------------------------------------------
  64. $(OBJDIR)\mmotproc.res: mmotproc.rc $(HEADERS) prodinfo.bmp
  65.                 $(RC) $(RCFLAGS) $(@B).rc $@
  66.                 @del prodinfo.bmp
  67.  
  68. prodinfo.bmp :
  69.            copy ..\..\prodinfo.bmp $@
  70.  
  71.  
  72. $(EXEDIR)\mmottk.dll: $(OBJS) mmottk.def $(HEADERS) $(OBJDIR)\mmotproc.res
  73.    -$(CREATE_PATH)
  74.    $(LINK) $@ mmottk.def $(MTLIBS) $(MMLIBS) @<<$(OBJDIR)\mmottk.lnk
  75. $(OBJS)
  76. <<
  77.  
  78. clean :
  79.         @if exist *.obj del *.obj
  80.         @if exist *.dll del *.dll
  81.         @if exist *.exe del *.exe
  82.