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

  1. #===================================================================
  2. #
  3. #   HANOI.MAK - Hanoi Make file
  4. #   Copyright  IBM Corporation 1992
  5. #
  6. #===================================================================
  7.  
  8. #-------------------------------------------------------------------
  9. #   IBMSAMP.INC - sets up for IBM Compiler
  10. #-------------------------------------------------------------------
  11. include ..\ibmsamp.inc
  12.  
  13. HEADERS = hanoi.h
  14. #-------------------------------------------------------------------
  15. #
  16. #   A list of all of the object files
  17. #
  18. #-------------------------------------------------------------------
  19.  
  20. ALL_OBJS = hanoi.obj
  21. ALL_IPF = hanoi.ipf
  22.  
  23. #-------------------------------------------------------------------
  24. #   This section lists all files to be built by the make.  The
  25. #   makefile builds the executible as well as its associated help
  26. #   file.
  27. #-------------------------------------------------------------------
  28. all: hanoi.exe hanoi.hlp
  29.  
  30. #-------------------------------------------------------------------
  31. #   This section creates the command file used by the linker.  This
  32. #   command file is recreated automatically every time you change
  33. #   the object file list, linker flags, or library list.
  34. #-------------------------------------------------------------------
  35. hanoi.lnk: hanoi.mak
  36.     echo $(ALL_OBJS)               > hanoi.lnk
  37.     echo hanoi.exe                >> hanoi.lnk
  38.     echo hanoi.map                >> hanoi.lnk
  39.     echo $(MTLIBS)                >> hanoi.lnk
  40.     echo hanoi.def                >> hanoi.lnk
  41.  
  42. #-------------------------------------------------------------------
  43. #   Dependencies
  44. #     This section lists all object files needed to be built for the
  45. #     application, along with the files it is dependent upon (e.g.
  46. #     its source and any header files).
  47. #-------------------------------------------------------------------
  48. hanoi.res: hanoi.rc $(HEADERS) hanoi.ico hanoi.dlg
  49.  
  50. hanoi.hlp: $(ALL_IPF)
  51.  
  52. hanoi.obj: hanoi.c $(HEADERS)
  53.  
  54. hanoi.exe: $(ALL_OBJS) hanoi.def hanoi.res hanoi.lnk
  55.    $(LINK) @hanoi.lnk
  56.    rc -p -x hanoi.res hanoi.exe
  57.  
  58.