home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / samples / clock / tkclock.mak < prev    next >
Encoding:
Makefile  |  1993-03-12  |  2.2 KB  |  78 lines

  1. #===================================================================
  2. #
  3. #   Copyright 1990,1992 IBM Corporation
  4. #
  5. #===================================================================
  6.  
  7. #
  8. # Comment out or delete the .inc file you don't want
  9. # IBMSAMP.INC - sets up for IBM/TORONTO Compiler
  10. #
  11. include ..\ibmsamp.inc
  12. HEADERS = clock.h clkdata.h
  13.  
  14. #===================================================================
  15. #
  16. #   A list of all of the object files
  17. #
  18. #===================================================================
  19.  
  20.  
  21. COBJ = clock.obj dialogs.obj paint.obj wndproc.obj \
  22.        clkdata.obj udtime.obj digital.obj \
  23.        alarmthd.obj  help.obj
  24.  
  25. ALL_IPF = clock.ipf help.ipf dlg.ipf view.ipf settings.ipf
  26.  
  27.  
  28. #-------------------------------------------------------------------
  29. #   This section lists all files to be built by the make.  The
  30. #   makefile builds the executible as well as its associated help
  31. #   file.
  32. #-------------------------------------------------------------------
  33. all: clock.exe clock.hlp
  34.  
  35.  
  36.  
  37. #-------------------------------------------------------------------
  38. #   This section creates the command file used by the linker.  This
  39. #   command file is recreated automatically every time you change
  40. #   the object file list, linker flags, or library list.
  41. #-------------------------------------------------------------------
  42. clock.lnk: tkclock.mak
  43.     echo $(COBJ)                > clock.lnk
  44.     echo clock.exe              >> clock.lnk
  45.     echo clock.map              >> clock.lnk
  46.     echo $(MTLIBS)              >> clock.lnk
  47.     echo clock.def              >> clock.lnk
  48.  
  49.  
  50.  
  51.  
  52. #===================================================================
  53. #
  54. # Dependencies
  55. #
  56. #   This section lists all object files needed to be built for the
  57. #   application, along with the files it is dependent upon (e.g. its
  58. #   source and any header files).
  59. #
  60. #===================================================================
  61.  
  62. clock.res: clock.rc help.rc clock.ico clock.dlg product.dlg
  63.  
  64.  
  65. clock.hlp: $(ALL_IPF)
  66.  
  67. help.obj : help.c
  68.  
  69. clock.obj: clock.c
  70.  
  71. dialogs.obj: dialogs.c
  72.  
  73.  
  74. clock.exe: clock.res $(COBJ) clock.def clock.lnk
  75.     $(LINK) @clock.lnk
  76.     rc -p -x clock.res clock.exe
  77.  
  78.