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

  1. #===================================================================
  2. #
  3. #   TKCLOCK.MAK - Time Services 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 = clock.h clkdata.h
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. OBJS = $(OBJDIR)\clock.obj   $(OBJDIR)\dialogs.obj   $(OBJDIR)\paint.obj  \
  32.        $(OBJDIR)\wndproc.obj $(OBJDIR)\clkdata.obj   $(OBJDIR)\udtime.obj \
  33.        $(OBJDIR)\digital.obj $(OBJDIR)\alarmthd.obj  $(OBJDIR)\help.obj
  34.  
  35. ALL_IPF = clock.ipf help.ipf dlg.ipf view.ipf settings.ipf
  36.  
  37. #-------------------------------------------------------------------
  38. #   This section lists all files to be built by  make.  The
  39. #   makefile builds the executable as well as its associated help
  40. #   file.
  41. #-------------------------------------------------------------------
  42. all: $(EXEDIR)\clock.exe $(EXEDIR)\clock.hlp
  43.  
  44. #-------------------------------------------------------------------
  45. #   Dependencies
  46. #     This section lists all object files needed to be built for the
  47. #     application, along with the files it is dependent upon (e.g.
  48. #     its source and any header files).
  49. #-------------------------------------------------------------------
  50.  
  51. $(OBJDIR)\clock.res: $(HEADERS) clock.rc help.rc clock.ico clock.dlg \
  52.                      product.dlg prodinfo.bmp
  53.                 $(RC) $(RCFLAGS) $(@B).rc $@
  54.                 @del prodinfo.bmp
  55.  
  56. prodinfo.bmp :
  57.            copy ..\..\prodinfo.bmp $@
  58.  
  59. $(EXEDIR)\clock.hlp:   $(ALL_IPF)
  60.  
  61. $(OBJDIR)\help.obj:    help.c    $(HEADERS)
  62.  
  63. $(OBJDIR)\clock.obj:   clock.c   $(HEADERS)
  64.  
  65. $(OBJDIR)\dialogs.obj: dialogs.c $(HEADERS)
  66.  
  67. $(EXEDIR)\clock.exe: $(OBJS) $(@B).def $(OBJDIR)\$(@B).res
  68.    -$(CREATE_PATH)
  69.    $(LINK) $@ $(@B).def $(MTLIBS) @<<$(OBJDIR)\tkclock.lnk
  70.    $(OBJS)
  71. <<
  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.