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

  1. #===================================================================
  2. #
  3. #   QUEUES.MAK - Queues 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. SVR_HEADERS = svrqmain.h svrqxtrn.h svrqglbl.h svrqhelp.h queue.h
  25. CLI_HEADERS = cliqmain.h cliqxtrn.h cliqglbl.h cliqhelp.h queue.h
  26. #-------------------------------------------------------------------
  27. #
  28. #   A list of all of the object files
  29. #
  30. #-------------------------------------------------------------------
  31.  
  32. SVR_OBJS = $(OBJDIR)\svrqmain.obj $(OBJDIR)\svrqthrd.obj $(OBJDIR)\svrqpnt.obj  \
  33.            $(OBJDIR)\svrqhelp.obj
  34. CLI_OBJS = $(OBJDIR)\cliqmain.obj $(OBJDIR)\cliqthrd.obj $(OBJDIR)\cliqhelp.obj
  35.  
  36. SVR_IPF = svrqueue.ipf file.ipf svroptn.ipf  help.ipf dlg.ipf
  37. CLI_IPF = cliqueue.ipf file.ipf clientry.ipf help.ipf dlg.ipf
  38.  
  39. #-------------------------------------------------------------------
  40. #   This section lists all files to be built by  make.  The
  41. #   makefile builds the executable as well as its associated help
  42. #   file.
  43. #-------------------------------------------------------------------
  44. all: $(EXEDIR)\svrqueue.exe $(EXEDIR)\svrqueue.hlp \
  45.      $(EXEDIR)\cliqueue.exe $(EXEDIR)\cliqueue.hlp
  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.  
  54. $(OBJDIR)\svrqueue.res: svrqueue.rc queue.ico   svrqmain.h \
  55.                         svrqhelp.rc svrqhelp.h  prodinfo.bmp
  56.                 $(RC) $(RCFLAGS) $(@B).rc $@
  57.                 @del prodinfo.bmp
  58.  
  59. $(OBJDIR)\cliqueue.res: cliqueue.rc queue.ico cliqmain.h \
  60.                         cliqhelp.rc cliqhelp.h
  61.                 copy ..\..\prodinfo.bmp
  62.                 $(RC) $(RCFLAGS) $(@B).rc $@
  63.                 @del prodinfo.bmp
  64.  
  65. prodinfo.bmp :
  66.            copy ..\..\prodinfo.bmp $@
  67.  
  68. $(EXEDIR)\svrqueue.hlp: $(SVR_IPF)
  69.  
  70. $(EXEDIR)\cliqueue.hlp: $(CLI_IPF)
  71.  
  72. $(OBJDIR)\svrqmain.obj: svrqmain.c $(SVR_HEADERS)
  73.  
  74. $(OBJDIR)\svrqthrd.obj: svrqthrd.c $(SVR_HEADERS)
  75.  
  76. $(OBJDIR)\svrqpnt.obj:  svrqpnt.c  $(SVR_HEADERS)
  77.  
  78. $(OBJDIR)\svrqhelp.obj: svrqhelp.c $(SVR_HEADERS)
  79.  
  80. $(OBJDIR)\cliqmain.obj: cliqmain.c $(CLI_HEADERS)
  81.  
  82. $(OBJDIR)\cliqthrd.obj: cliqthrd.c $(CLI_HEADERS)
  83.  
  84. $(OBJDIR)\cliqhelp.obj: cliqhelp.c $(CLI_HEADERS)
  85.  
  86. $(EXEDIR)\svrqueue.exe: $(SVR_OBJS) $(@B).def $(OBJDIR)\$(@B).res
  87.    -$(CREATE_PATH)
  88.    $(LINK) $@ $(@B).def $(MTLIBS) $(SVR_OBJS)
  89.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  90.  
  91. $(EXEDIR)\cliqueue.exe: $(CLI_OBJS) $(@B).def $(OBJDIR)\$(@B).res
  92.    -$(CREATE_PATH)
  93.    $(LINK) $@ $(@B).def $(MTLIBS) $(CLI_OBJS)
  94.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  95.  
  96. clean :
  97.         @if exist *.obj del *.obj
  98.         @if exist *.dll del *.dll
  99.         @if exist *.exe del *.exe
  100.