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

  1. #===================================================================
  2. #
  3. #   DRAGDROP.MAK - Drag Drop 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 = dragdrop.h draghelp.h
  25.  
  26. ALL_IPF = dragdrop.ipf
  27. #-------------------------------------------------------------------
  28. #
  29. #   A list of all of the object files
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. OBJS = $(OBJDIR)\dragdrop.obj $(OBJDIR)\dragdrag.obj $(OBJDIR)\dragheap.obj \
  34.        $(OBJDIR)\draghelp.obj
  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)\dragdrop.exe $(EXEDIR)\dragdrop.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)\dragdrop.res: $(HEADERS) dragdrop.rc  dragdrop.ico dragdrop.ptr \
  51.                                    dragdrop.dlg draghelp.rc  prodinfo.bmp
  52.                 $(RC) $(RCFLAGS) $(@B).rc $@
  53.                 @del prodinfo.bmp
  54.  
  55. prodinfo.bmp :
  56.            copy ..\..\prodinfo.bmp $@
  57.  
  58. $(EXEDIR)\dragdrop.hlp: $(ALL_IPF)
  59.  
  60. $(OBJDIR)\dragdrop.obj: dragdrop.c
  61.  
  62. $(OBJDIR)\draghelp.obj: draghelp.c
  63.  
  64. $(OBJDIR)\dragheap.obj: dragheap.c
  65.  
  66. $(OBJDIR)\dragdrag.obj: dragdrag.c
  67.  
  68. $(EXEDIR)\dragdrop.exe: $(OBJS) $(@B).def $(OBJDIR)\$(@B).res
  69.    -$(CREATE_PATH)
  70.    $(LINK) $@ $(@B).def $(MTLIBS) $(OBJS)
  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.