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

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