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

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