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

  1. #===================================================================
  2. #
  3. #   VMM.MAK -    VMM Application Make file
  4. #   Copyright    IBM Corporation 1996
  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 = vmm.h
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. OBJS = $(OBJDIR)\vmm_main.obj $(OBJDIR)\vmm_init.obj $(OBJDIR)\vmm_dlg.obj \
  32.        $(OBJDIR)\vmm_user.obj $(OBJDIR)\vmm_help.obj
  33.  
  34. ALL_IPF = vmm.ipf
  35.  
  36. #-------------------------------------------------------------------
  37. #   This section lists all files to be built by  make.  The
  38. #   makefile builds the executable as well as its associated help
  39. #   file.
  40. #-------------------------------------------------------------------
  41. all: $(EXEDIR)\vmm.exe $(EXEDIR)\vmm.hlp
  42.  
  43. #-------------------------------------------------------------------
  44. #   Dependencies
  45. #     This section lists all object files needed to be built for the
  46. #     application, along with the files it is dependent upon (e.g.
  47. #     its source and any header files).
  48. #-------------------------------------------------------------------
  49.  
  50. $(OBJDIR)\vmm.res: $(HEADERS) vmm.dlg vmm.ico vmm.rc prodinfo.bmp
  51.                 $(RC) $(RCFLAGS) $(@B).rc $@
  52.                 @del prodinfo.bmp
  53.  
  54. prodinfo.bmp :
  55.            copy ..\..\prodinfo.bmp $@
  56.  
  57. $(EXEDIR)\vmm.hlp:      $(ALL_IPF)
  58.  
  59. $(OBJDIR)\vmm_main.obj: vmm_main.c $(HEADERS)
  60.  
  61. $(OBJDIR)\vmm_user.obj: vmm_user.c $(HEADERS)
  62.  
  63. $(OBJDIR)\vmm_init.obj: vmm_init.c $(HEADERS)
  64.  
  65. $(OBJDIR)\vmm_dlg.obj:  vmm_dlg.c  $(HEADERS)
  66.  
  67. $(OBJDIR)\vmm_help.obj: vmm_help.c $(HEADERS)
  68.  
  69. $(EXEDIR)\vmm.exe: $(OBJS) $(@B).def $(OBJDIR)\$(@B).res
  70.    -$(CREATE_PATH)
  71.    $(LINK) $@ $(@B).def $(MTLIBS) $(OBJS)
  72.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  73.  
  74. clean :
  75.         @if exist *.obj del *.obj
  76.         @if exist *.dll del *.dll
  77.         @if exist *.exe del *.exe
  78.