home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / examples / makefile.dep < prev    next >
Encoding:
Makefile  |  1996-01-30  |  1.5 KB  |  50 lines

  1. #-----------------------------------------------------------------------------
  2. #                               EXAMPLES  Makefile
  3. #-----------------------------------------------------------------------------
  4. #
  5. # Intructions to Add a new example
  6. #
  7. #   1. Update the variable LIST_EXEC with the new target (executable name).
  8. #      Do not include any extensions; instead append $e to this name.
  9. #
  10. #   2. Add a new entry in the dependencies with the following format :
  11. #       name_exec_DEP= {list of .o files needed to build the executable -
  12. #         use $o as the extension instead of .o or .obj}
  13. #       name_exec$e : name_exec.$o $(name_exec_DEP)
  14. #-----------------------------------------------------------------------------
  15.  
  16. # Put here the final target of each test case.
  17. # it can be a '.o' file if the test is just a compilation one
  18. # otherwise it is the final executable
  19. LIST_COMPILE_ONLY =
  20. LIST_EXEC = hello$e texioexa$e useofimp.g$e tgef$e tef$e \
  21.  demo1$e demo2$e
  22.  
  23. #-----------------------------------------------------------------------------
  24. # Dependencies
  25.  
  26. hello_DEP=
  27. hello$e : hello.$o $(hello_DEP)
  28.  
  29. demo1_DEP=
  30. demo1$e : demo1.$o  instr.$o $(demo1_DEP)
  31.  
  32. demo2_DEP=
  33. demo2$e : demo2.$o instr.$o instchil.$o $(demo2_DEP)
  34.  
  35. useofimp.g_DEP = imported_function.$o
  36. useofimp.g$e : useofimp.$o $(useofimp_DEP)
  37.  
  38. texioexa_DEP =
  39. texioexa$e : texioexa.$o $(texioexa_DEP)
  40.  
  41. tgef_DEP =
  42. tgef$e : tgef.$o $(tgef_DEP)
  43.  
  44. tef_DEP =
  45. tef$e : tef.$o $(tef_DEP)
  46.  
  47. ex6_main_DEP = ex6.$o
  48. ex6_main.$o : ex6_main.adb ex6_if.ads
  49. ex6_if.$o : ex6_if.ads ex6_if.adb
  50.