home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dialog.zip / DIALOG.MAK < prev    next >
Makefile  |  1998-04-20  |  2KB  |  65 lines

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