home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / shrcfile / shrc.mak < prev    next >
Makefile  |  1999-05-11  |  3KB  |  80 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. #===================================================================
  21.  
  22. !include ..\..\ibmsamp.inc
  23.  
  24. HEADERS =
  25. #-------------------------------------------------------------------
  26. #
  27. #  Component specific requirements for compile flags
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. CC = $(CC) -Ge- -Sm
  32.  
  33. #-------------------------------------------------------------------
  34. #
  35. #   A list of all of the object files
  36. #
  37. #-------------------------------------------------------------------
  38.  
  39. OBJS = $(OBJDIR)\rcstub.obj
  40.  
  41. ALL_IPF =
  42. #-------------------------------------------------------------------
  43. #   This section lists all files to be built by the make.  The
  44. #   makefile builds the executible as well as its associated help
  45. #   file.
  46. #-------------------------------------------------------------------
  47. all: $(EXEDIR)\shrc.dll
  48.  
  49.  
  50. #-------------------------------------------------------------------
  51. #   This section creates the command file used by the linker.  This
  52. #   command file is recreated automatically every time you change
  53. #   the object file list, linker flags, or library list.
  54. #-------------------------------------------------------------------
  55. #-------------------------------------------------------------------
  56. #   Dependencies
  57. #     This section lists all object files needed to be built for the
  58. #     application, along with the files it is dependent upon (e.g.
  59. #     its source and any header files).
  60. #-------------------------------------------------------------------
  61.  
  62. $(OBJDIR)\ssmres.res: ssmres.rc $(HEADERS) prodinfo.bmp
  63.                 $(RC) $(RCFLAGS) $(@B).rc $@
  64.                 @del prodinfo.bmp
  65.  
  66. prodinfo.bmp :
  67.            copy ..\..\prodinfo.bmp $@
  68.  
  69. $(EXEDIR)\shrc.dll: $(OBJS) $(OBJDIR)\ssmres.res shrc.def
  70.    -$(CREATE_PATH)
  71.    $(LINK) $@ shrc.def $(MTLIBS) @<<$(OBJDIR)\shrc.lnk
  72. $(OBJS)
  73. <<
  74.    $(RC) -p -x $(OBJDIR)\ssmres.res $@
  75.  
  76. clean :
  77.         @if exist *.obj del *.obj
  78.         @if exist *.dll del *.dll
  79.         @if exist *.exe del *.exe
  80.