home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-01-30 | 1.5 KB | 50 lines |
- #-----------------------------------------------------------------------------
- # EXAMPLES Makefile
- #-----------------------------------------------------------------------------
- #
- # Intructions to Add a new example
- #
- # 1. Update the variable LIST_EXEC with the new target (executable name).
- # Do not include any extensions; instead append $e to this name.
- #
- # 2. Add a new entry in the dependencies with the following format :
- # name_exec_DEP= {list of .o files needed to build the executable -
- # use $o as the extension instead of .o or .obj}
- # name_exec$e : name_exec.$o $(name_exec_DEP)
- #-----------------------------------------------------------------------------
-
- # Put here the final target of each test case.
- # it can be a '.o' file if the test is just a compilation one
- # otherwise it is the final executable
- LIST_COMPILE_ONLY =
- LIST_EXEC = hello$e texioexa$e useofimp.g$e tgef$e tef$e \
- demo1$e demo2$e
-
- #-----------------------------------------------------------------------------
- # Dependencies
-
- hello_DEP=
- hello$e : hello.$o $(hello_DEP)
-
- demo1_DEP=
- demo1$e : demo1.$o instr.$o $(demo1_DEP)
-
- demo2_DEP=
- demo2$e : demo2.$o instr.$o instchil.$o $(demo2_DEP)
-
- useofimp.g_DEP = imported_function.$o
- useofimp.g$e : useofimp.$o $(useofimp_DEP)
-
- texioexa_DEP =
- texioexa$e : texioexa.$o $(texioexa_DEP)
-
- tgef_DEP =
- tgef$e : tgef.$o $(tgef_DEP)
-
- tef_DEP =
- tef$e : tef.$o $(tef_DEP)
-
- ex6_main_DEP = ex6.$o
- ex6_main.$o : ex6_main.adb ex6_if.ads
- ex6_if.$o : ex6_if.ads ex6_if.adb
-