| 1 |
# Module for non-recursive mpg123 build system. |
| 2 |
|
| 3 |
include src/tests/Makemodule.am |
| 4 |
include src/compat/Makemodule.am |
| 5 |
include src/common/Makemodule.am |
| 6 |
if NEED_LIB |
| 7 |
include src/libout123/Makemodule.am |
| 8 |
if NEED_MAINLIB |
| 9 |
include src/libmpg123/Makemodule.am |
| 10 |
include src/libsyn123/Makemodule.am |
| 11 |
endif |
| 12 |
endif |
| 13 |
|
| 14 |
if BUILD_PROGRAMS |
| 15 |
bin_PROGRAMS += src/out123 |
| 16 |
if HAVE_LFS_WRAP |
| 17 |
bin_PROGRAMS += \ |
| 18 |
src/mpg123 \ |
| 19 |
src/mpg123-id3dump \ |
| 20 |
src/mpg123-strip |
| 21 |
endif |
| 22 |
endif |
| 23 |
|
| 24 |
if NEED_LIB |
| 25 |
if NEED_MAINLIB |
| 26 |
# All main libraries need fmt123 header installed. |
| 27 |
include_HEADERS += src/include/fmt123.h |
| 28 |
endif |
| 29 |
endif |
| 30 |
|
| 31 |
src_mpg123_LDADD = \ |
| 32 |
src/compat/libcompat.la \ |
| 33 |
$(LIBMPG123) \ |
| 34 |
$(LIBOUT123) \ |
| 35 |
$(LIBSYN123) \ |
| 36 |
@PROG_LIBS@ |
| 37 |
|
| 38 |
src_mpg123_LDFLAGS = @EXEC_LT_LDFLAGS@ |
| 39 |
|
| 40 |
src_out123_LDADD = \ |
| 41 |
src/compat/libcompat.la \ |
| 42 |
$(LIBSYN123) \ |
| 43 |
$(LIBOUT123) \ |
| 44 |
@PROG_LIBS@ |
| 45 |
|
| 46 |
src_out123_LDFLAGS = @EXEC_LT_LDFLAGS@ |
| 47 |
|
| 48 |
EXTRA_DIST += \ |
| 49 |
src/version.h \ |
| 50 |
src/mpg123-with-modules \ |
| 51 |
src/out123-with-modules |
| 52 |
|
| 53 |
CLEANFILES += src/*.a |
| 54 |
|
| 55 |
src_mpg123_id3dump_LDADD = \ |
| 56 |
src/compat/libcompat.la \ |
| 57 |
$(LIBMPG123) \ |
| 58 |
@PROG_LIBS@ |
| 59 |
|
| 60 |
src_mpg123_strip_LDADD = \ |
| 61 |
src/compat/libcompat.la \ |
| 62 |
$(LIBMPG123) \ |
| 63 |
@PROG_LIBS@ |
| 64 |
|
| 65 |
src_mpg123_SOURCES = \ |
| 66 |
src/audio.c \ |
| 67 |
src/audio.h \ |
| 68 |
src/common.c \ |
| 69 |
src/common.h \ |
| 70 |
src/sysutil.c \ |
| 71 |
src/sysutil.h \ |
| 72 |
src/control_generic.c \ |
| 73 |
src/equalizer.c \ |
| 74 |
src/getlopt.c \ |
| 75 |
src/getlopt.h \ |
| 76 |
src/httpget.c \ |
| 77 |
src/httpget.h \ |
| 78 |
src/resolver.c \ |
| 79 |
src/resolver.h \ |
| 80 |
src/genre.h \ |
| 81 |
src/genre.c \ |
| 82 |
src/mpg123.c \ |
| 83 |
src/mpg123app.h \ |
| 84 |
src/mpg123config.h \ |
| 85 |
src/metaprint.c \ |
| 86 |
src/metaprint.h \ |
| 87 |
src/local.h \ |
| 88 |
src/local.c \ |
| 89 |
src/playlist.c \ |
| 90 |
src/playlist.h \ |
| 91 |
src/streamdump.h \ |
| 92 |
src/streamdump.c \ |
| 93 |
src/term.c \ |
| 94 |
src/term.h \ |
| 95 |
src/terms.h \ |
| 96 |
src/win32_support.h |
| 97 |
|
| 98 |
# Does that finally work to build/link the correct object file? |
| 99 |
src_mpg123_SOURCES += |
| 100 |
|
| 101 |
# Replace common.h by sysutil.h! |
| 102 |
src_out123_SOURCES = \ |
| 103 |
src/sysutil.c \ |
| 104 |
src/sysutil.h \ |
| 105 |
src/common.h \ |
| 106 |
src/getlopt.c \ |
| 107 |
src/getlopt.h \ |
| 108 |
src/local.h \ |
| 109 |
src/local.c \ |
| 110 |
src/filters.h \ |
| 111 |
src/filters.c \ |
| 112 |
src/out123.c \ |
| 113 |
src/mpg123app.h \ |
| 114 |
src/win32_support.h |
| 115 |
|
| 116 |
src_mpg123_id3dump_SOURCES = \ |
| 117 |
src/mpg123-id3dump.c \ |
| 118 |
src/getlopt.c \ |
| 119 |
src/getlopt.h |
| 120 |
|
| 121 |
src_mpg123_strip_SOURCES = \ |
| 122 |
src/mpg123-strip.c \ |
| 123 |
src/getlopt.c \ |
| 124 |
src/getlopt.h |
| 125 |
|
| 126 |
if TERM_POSIX |
| 127 |
src_mpg123_SOURCES += src/term_posix.c |
| 128 |
endif |
| 129 |
|
| 130 |
if TERM_WIN32 |
| 131 |
src_mpg123_SOURCES += src/term_win32.c |
| 132 |
endif |
| 133 |
|
| 134 |
if TERM_NONE |
| 135 |
src_mpg123_SOURCES += src/term_none.c |
| 136 |
endif |
| 137 |
|
| 138 |
if NET123 |
| 139 |
src_mpg123_SOURCES += src/net123.h |
| 140 |
endif |
| 141 |
|
| 142 |
if NET123_EXEC |
| 143 |
src_mpg123_SOURCES += src/net123_exec.c |
| 144 |
endif |
| 145 |
|
| 146 |
if NET123_WINHTTP |
| 147 |
src_mpg123_SOURCES += src/net123_winhttp.c |
| 148 |
src_mpg123_LDADD += -lwinhttp |
| 149 |
endif |
| 150 |
|
| 151 |
if NET123_WININET |
| 152 |
src_mpg123_SOURCES += src/net123_wininet.c |
| 153 |
src_mpg123_LDADD += -lwininet |
| 154 |
endif |
| 155 |
|
| 156 |
if WIN32_CODES |
| 157 |
src_mpg123_SOURCES += \ |
| 158 |
src/win32_support.c |
| 159 |
|
| 160 |
if NETWORK_WINSOCK |
| 161 |
src_mpg123_SOURCES += src/win32_net.c |
| 162 |
src_mpg123_LDADD += -lws2_32 |
| 163 |
endif |
| 164 |
|
| 165 |
src_out123_SOURCES+= \ |
| 166 |
src/win32_support.c |
| 167 |
|
| 168 |
src_mpg123_id3dump_SOURCES += \ |
| 169 |
src/win32_support.c |
| 170 |
endif |