| 1 |
# Module for non-recursive mpg123 build system. |
| 2 |
|
| 3 |
# Component selection: |
| 4 |
# If HAVE_MODULES, the library can be built fully independently. |
| 5 |
# If not, the library depends on the one builtin module from |
| 6 |
# the subdirectory. |
| 7 |
|
| 8 |
# For dynamic modules. |
| 9 |
if HAVE_MODULES |
| 10 |
include src/libout123/modules/Makemodule.am |
| 11 |
endif |
| 12 |
|
| 13 |
if NEED_MAINLIB |
| 14 |
if BUILD_LIBOUT123 |
| 15 |
|
| 16 |
# Just for libdefaultmodule.la. |
| 17 |
if !HAVE_MODULES |
| 18 |
include src/libout123/modules/Makemodule.am |
| 19 |
endif |
| 20 |
|
| 21 |
include_HEADERS += src/include/out123.h |
| 22 |
|
| 23 |
noinst_LTLIBRARIES += src/libout123/libmodule.la |
| 24 |
|
| 25 |
lib_LTLIBRARIES += src/libout123/libout123.la |
| 26 |
|
| 27 |
endif |
| 28 |
endif |
| 29 |
|
| 30 |
src_libout123_libout123_la_SOURCES = \ |
| 31 |
src/libout123/libout123.c \ |
| 32 |
src/libout123/stringlists.h \ |
| 33 |
src/libout123/stringlists.c \ |
| 34 |
src/libout123/out123_int.h \ |
| 35 |
src/libout123/wav.c \ |
| 36 |
src/libout123/wav.h \ |
| 37 |
src/libout123/hextxt.c \ |
| 38 |
src/libout123/hextxt.h \ |
| 39 |
src/libout123/wavhead.h |
| 40 |
|
| 41 |
if BUILD_BUFFER |
| 42 |
src_libout123_libout123_la_SOURCES += \ |
| 43 |
src/libout123/buffer.c \ |
| 44 |
src/libout123/buffer.h \ |
| 45 |
src/libout123/xfermem.c \ |
| 46 |
src/libout123/xfermem.h |
| 47 |
endif |
| 48 |
|
| 49 |
src_libout123_libout123_la_CFLAGS = @LIB_CFLAGS@ |
| 50 |
|
| 51 |
src_libout123_libout123_la_LDFLAGS = \ |
| 52 |
-no-undefined -version-info @LIBOUT123_VERSION@ -export-symbols-regex '^out123_' |
| 53 |
|
| 54 |
src_libout123_libout123_la_LIBADD = \ |
| 55 |
src/libout123/libmodule.la \ |
| 56 |
src/compat/libcompat.la \ |
| 57 |
@LIBOUT123_LIBS@ |
| 58 |
|
| 59 |
if HAVE_MODULES |
| 60 |
|
| 61 |
src_libout123_libout123_la_LIBADD += \ |
| 62 |
src/compat/libcompat_dl.la |
| 63 |
|
| 64 |
else |
| 65 |
|
| 66 |
src_libout123_libout123_la_LIBADD += \ |
| 67 |
src/libout123/modules/libdefaultmodule.la |
| 68 |
|
| 69 |
endif |
| 70 |
|
| 71 |
src_libout123_libmodule_la_SOURCES = src/libout123/module.h |
| 72 |
|
| 73 |
if HAVE_MODULES |
| 74 |
|
| 75 |
src_libout123_libmodule_la_SOURCES += src/libout123/module.c |
| 76 |
|
| 77 |
else |
| 78 |
|
| 79 |
src_libout123_libmodule_la_SOURCES += src/libout123/legacy_module.c |
| 80 |
|
| 81 |
endif |
| 82 |
|
| 83 |
|
| 84 |
# The sfifo code is directly used in some modules. |
| 85 |
EXTRA_DIST += \ |
| 86 |
src/libout123/sfifo.c \ |
| 87 |
src/libout123/sfifo.h |
| 88 |
|