150 | | Since both files need to be setup by the user, here the private header includes the public header to avoid redundancy. Further, a header {{{configall_system.h}}} is included that tries to provide commonly used defines. Note that file '''config_coinutils.h''' is installed as '''CoinUtilsConfig.h''' for use by external users linking to the !CoinUtils library after the fact. |
| 150 | Since both files need to be setup by the user, here the private header includes the public header to avoid redundancy. Further, a header {{{configall_system.h}}} is included that tries to provide commonly used defines. Note that file '''config_coinutils.h''' is installed as '''CoinUtilsConfig.h''' for use by external users linking to the !CoinUtils library after the fact. This occurs by addition of the following lines to {{{src/Makefile.am}}}: |
| 151 | |
| 152 | {{{ |
| 153 | # You only need to adapt the following line |
| 154 | ConfigHeader = CoinUtilsConfig.h |
| 155 | |
| 156 | install-exec-local: |
| 157 | echo "#ifndef __CONFIG_COINUTILS_H__" > bla |
| 158 | echo "#define __CONFIG_COINUTILS_H__" >> bla |
| 159 | tail -n +3 ../inc/config_coinutils.h >> bla |
| 160 | echo "#endif" >> bla |
| 161 | $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader) |
| 162 | rm -f bla |
| 163 | |
| 164 | uninstall-local: |
| 165 | rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader) |
| 166 | |
| 167 | }}} |