1 | |
---|
2 | Variable exports are performed over multiple directory levels from parent- to |
---|
3 | subdirectory-makefiles. |
---|
4 | |
---|
5 | To avoid specifying them at many locations, these exports are defined in files named |
---|
6 | export2sub. Currently these export2sub exist: |
---|
7 | |
---|
8 | ../SOURCE_TOOLS/export2sub |
---|
9 | ../UNIT_TESTER/export2sub |
---|
10 | ../AISC_COM/AISC/export2sub |
---|
11 | |
---|
12 | |
---|
13 | Short description of most important variables passed from parent makefiles: |
---|
14 | |
---|
15 | A_CC C-compiler |
---|
16 | A_CXX C++-compiler |
---|
17 | |
---|
18 | cflags C-compiler flags |
---|
19 | cxxflags additional C++-compiler flags |
---|
20 | (should be used as '$(cflags) $(cxxflags)'!) |
---|
21 | shared_cflags additional compiler flags used when compiling objects for a shared library |
---|
22 | |
---|
23 | CC_INCLUDES include directories for C-compiler |
---|
24 | CXX_INCLUDES include directories for C++-compiler |
---|
25 | |
---|
26 | POST_COMPILE global filter applied to compiler output (i.e. to errors and warnings) |
---|
27 | |
---|
28 | LINK_EXECUTABLE linker command for executables |
---|
29 | LINK_STATIC_LIB linker command for static libs |
---|
30 | LINK_SHARED_LIB linker command for shared libs (depends on LINK_STATIC) |
---|
31 | |
---|
32 | LINK_STATIC =0 -> use dynamic libs, =1 -> use only static libs |
---|
33 | SHARED_LIB_SUFFIX suffix for shared libs (contains .a if LINK_STATIC=1) |
---|
34 | |
---|
35 | Several dynamic library definitions are documented in ../Makefile@DYNLIBDEFS |
---|
36 | |
---|
37 | Note: |
---|
38 | Several variables are still passed directly via the call of the submakefile, e.g. |
---|
39 | make -C subdir "VAR=content" target |
---|
40 | If passing them is common at many places, they should better be passed via export2sub |
---|
41 | |
---|