Jeff Thompson | ff092f5 | 2013-06-19 13:38:12 -0700 | [diff] [blame] | 1 | ## Helloworld C++: an example project using Automake |
| 2 | |
| 3 | ## Place generated object files (.o) into the same directory as their source |
| 4 | ## files, in order to avoid collisions when non-recursive make is used. |
| 5 | AUTOMAKE_OPTIONS = subdir-objects |
| 6 | |
| 7 | ## Additional flags to pass to aclocal when it is invoked automatically at |
| 8 | ## make time. The ${ACLOCAL_FLAGS} variable is picked up from the environment |
| 9 | ## to provide a way for the user to supply additional arguments. |
| 10 | ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} |
| 11 | |
| 12 | ## Define an executable target "hello", which will be installed into the |
| 13 | ## directory named by the predefined variable $(bindir). |
| 14 | bin_PROGRAMS = test1 |
| 15 | |
| 16 | ## Define the list of source files for the "hello" target. The file extension |
| 17 | ## .cpp is recognized by Automake, and causes it to produce rules which invoke |
| 18 | ## the C++ compiler to produce an object file (.o) from each source file. The |
| 19 | ## header files (.h) do not result in object files by themselves, but will be |
| 20 | ## included in distribution archives of the project. |
| 21 | test1_SOURCES = test/test1.cpp |
| 22 | |
| 23 | ## Define an independent executable script for inclusion in the distribution |
| 24 | ## archive. It will not be installed on an end user's system, however. |
| 25 | dist_noinst_SCRIPTS = autogen.sh |