| 1 |
##TODO Using automake 1.9 it would be possible to conditional |
| 2 |
## use lib_ or noinst_ for libavfs depending on configure flag |
| 3 |
## Currently a static is always built but the shared is only built if wanted |
| 4 |
|
| 5 |
if BUILD_SHARED |
| 6 |
lib_LTLIBRARIES = libavfs.la |
| 7 |
endif |
| 8 |
|
| 9 |
noinst_LTLIBRARIES = libavfs_static.la |
| 10 |
|
| 11 |
##TODO --version-script is not supported by some linkers (Sun linker for example) |
| 12 |
##libavfs_la_LDFLAGS = -Wl,--version-script=libavfs.map -version-info 0:1:0 |
| 13 |
##TODO Exporting only virt_ symbols doesn't work because avfs_server needs |
| 14 |
## other symbols too |
| 15 |
## Possible solution: Also build a static library which doesn't get installed |
| 16 |
|
| 17 |
libavfs_la_LDFLAGS = @VERSIONSCRIPT_OPTS@ -version-info 1:0:0 |
| 18 |
libavfs_la_LIBADD = ../src/libavfscore.la ../modules/libmodules.la @LIBZ@ @LIBBZ2@ @LIBDAV@ |
| 19 |
libavfs_la_SOURCES = |
| 20 |
|
| 21 |
libavfs_static_la_LDFLAGS = -static |
| 22 |
libavfs_static_la_LIBADD = ../src/libavfscore.la ../modules/libmodules.la @LIBZ@ @LIBBZ2@ @LIBDAV@ |
| 23 |
libavfs_static_la_SOURCES = |
| 24 |
|
| 25 |
EXTRA_DIST = libavfs.map |