CAPD DynSys Library
5.2.0
|
When adding new files or directories to automated build system it is very important to modify only configure.ac
and Makefile.am
files. After each modification we need to generate new configure scripts and Makefile.in by
and then new Makefile
s using
A list of last used parameters can be obtained by running
After adding new header file to some subfolder of include directory one needs to add its name to the list of files in the file include/Makefile.am
of corresponding package. Without this header file will not be copied during installation.
File Makefile.am
containing list of all header files in the package capdXXX can be created using script listHeaderFiles.sh
. It needs to be called from the include directory.
To correct lists of header files in all packages use
It generates new Makefile.am only if there are some changes.
To add new source file to the existing folder in
source.cpp
to folder src/capd/moduleName
one needs to add in src/capd/moduleName/Makefile.am
the name source.cpp
to the list of files stored in variable libmoduleName_a_SOURCES
XXXX.cpp
and ZZZZ.cpp
and will be linked with module or package YYYY
(e.g. YYYY=capdintervals or YYYY=capdDynSys).Makefile.am
: XXXX
to the listnoinst_PROGRAMS
in case of examples directory, (they will be compiled by calling make
for library)bin_PROGRAMS
in case of programs directory, (they will be compiled by make
and installed to bin directory by make install
)check_PROGRAMS
in case of tests directory (they are compiled and executed by make check
).Assume we want to add new module XXXX to package YYYY:
YYYY/src/capd/XXXX
and YYYY/src/capd/XXXX
YYYY/src/capd/XXXX
create (or copy from other module)Makefile.am
capdXXXX-dev.pc.in
- description of module for pkg-config (dependencies, compilation flags, directories) for developer version of librarycapdXXXX-install.pc.in
- description of module for pkg-config for version of library that will be installed.YYYY/src/capd/Makefile.am
add XXXX
to SUBDIRS
list YYYY/configure.ac
add