-
Notifications
You must be signed in to change notification settings - Fork 67
/
Makefile.am
196 lines (172 loc) · 4.69 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = wavpack.pc
dist_doc_DATA = README.md
dist_pdf_DATA = \
doc/WavPack5FileFormat.pdf \
doc/WavPack5LibraryDoc.pdf \
doc/WavPack5PortingGuide.pdf
dist_html_DATA = \
doc/wavpack_doc.html \
doc/style.css
EXTRA_DIST = \
CMakeLists.txt \
cmake/CheckCLinkerFlag.cmake \
cmake/modules/FindIconv.cmake \
cmake/TestLargeFiles.cmake \
\
cli/Makefile.w32 \
src/Makefile.os2 \
src/Makefile.w32 \
src/wavpack.exports \
src/pack_x64.asm \
src/pack_x86.asm \
src/unpack_x64.asm \
src/unpack_x86.asm \
\
src/libwavpack.vcxproj \
wavpackexe/wavpack.vcxproj \
wavpackdll/wavpackdll.vcxproj \
wvgainexe/wvgain.vcxproj \
wvunpackexe/wvunpack.vcxproj \
wvtagexe/wvtag.vcxproj \
wvtestexe/wvtest.vcxproj \
wavpack.sln masm.rules
MAINTAINERCLEANFILES = \
aclocal.m4 \
ar-lib \
compile \
config.guess \
config.rpath \
config.sub \
configure \
depcomp \
install-sh \
ltmain.sh \
Makefile.in \
missing
########
# cli/ #
########
if ENABLE_APPS
bin_PROGRAMS = cli/wavpack cli/wvunpack cli/wvgain cli/wvtag
endif
cli_wavpack_SOURCES = cli/wavpack.c cli/riff.c cli/wave64.c cli/caff.c cli/dsdiff.c cli/dsf.c cli/aiff.c cli/utils.c cli/md5.c cli/import_id3.c
if WINDOWS_HOST
cli_wavpack_SOURCES += cli/win32_unicode_support.c
endif
cli_wavpack_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
if ENABLE_RPATH
cli_wavpack_LDFLAGS = -rpath $(libdir)
endif
cli_wavpack_LDADD = $(AM_LDADD) src/libwavpack.la $(LIBM) $(LIBICONV)
cli_wvunpack_SOURCES = cli/wvunpack.c cli/riff_write.c cli/wave64_write.c cli/caff_write.c cli/dsdiff_write.c cli/aiff_write.c cli/dsf_write.c cli/utils.c cli/md5.c
if WINDOWS_HOST
cli_wvunpack_SOURCES += cli/win32_unicode_support.c
endif
cli_wvunpack_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
if ENABLE_RPATH
cli_wvunpack_LDFLAGS = -rpath $(libdir)
endif
cli_wvunpack_LDADD = $(AM_LDADD) src/libwavpack.la $(LIBM) $(LIBICONV)
cli_wvgain_SOURCES = cli/wvgain.c cli/utils.c
if WINDOWS_HOST
cli_wvgain_SOURCES += cli/win32_unicode_support.c
endif
cli_wvgain_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
if ENABLE_RPATH
cli_wvgain_LDFLAGS = -rpath $(libdir)
endif
cli_wvgain_LDADD = $(AM_LDADD) src/libwavpack.la $(LIBM)
cli_wvtag_SOURCES = cli/wvtag.c cli/utils.c cli/import_id3.c
if WINDOWS_HOST
cli_wvtag_SOURCES += cli/win32_unicode_support.c
endif
cli_wvtag_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
if ENABLE_RPATH
cli_wvtag_LDFLAGS = -rpath $(libdir)
endif
cli_wvtag_LDADD = $(AM_LDADD) src/libwavpack.la $(LIBM) $(LIBICONV)
# FIXME: wvtest relies on pthreads only and doesn't use win32 threads
check_PROGRAMS = cli/wvtest
cli_wvtest_SOURCES = cli/wvtest.c cli/md5.c
cli_wvtest_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
if ENABLE_RPATH
cli_wvtest_LDFLAGS = -rpath $(libdir)
endif
cli_wvtest_LDADD = $(AM_LDADD) src/libwavpack.la $(LIBM) $(LIBTHREAD)
TESTS = cli/fast-tests
TESTS_ENVIRONMENT = $(SHELL)
noinst_HEADERS = \
cli/win32_unicode_support.h \
cli/utils.h \
cli/md5.h
############
# include/ #
############
pkginclude_HEADERS = include/wavpack.h
########
# man/ #
########
dist_man_MANS = \
man/wavpack.1 \
man/wvgain.1 \
man/wvunpack.1 \
man/wvtag.1
########
# src/ #
########
lib_LTLIBRARIES = src/libwavpack.la
src_libwavpack_la_SOURCES = \
src/common_utils.c \
src/decorr_utils.c \
src/entropy_utils.c \
src/extra1.c \
src/extra2.c \
src/open_utils.c \
src/open_filename.c \
src/open_legacy.c \
src/open_raw.c \
src/pack.c \
src/pack_dns.c \
src/pack_floats.c \
src/pack_utils.c \
src/read_words.c \
src/tags.c \
src/tag_utils.c \
src/unpack.c \
src/unpack_floats.c \
src/unpack_seek.c \
src/unpack_utils.c \
src/write_words.c \
src/decorr_tables.h \
src/unpack3.h \
src/wavpack_local.h \
src/wavpack_version.h
if ENABLE_LEGACY
src_libwavpack_la_SOURCES += src/unpack3.c src/unpack3_open.c src/unpack3_seek.c
endif
if ENABLE_DSD
src_libwavpack_la_SOURCES += src/pack_dsd.c src/unpack_dsd.c
endif
if ENABLE_X86ASM
src_libwavpack_la_SOURCES += src/pack_x86.S src/unpack_x86.S
endif
if ENABLE_X64ASM
src_libwavpack_la_SOURCES += src/pack_x64.S src/unpack_x64.S
endif
if ENABLE_ARMASM
src_libwavpack_la_SOURCES += src/unpack_armv7.S
endif
if WINDOWS_HOST
if HAVE_WINDRES
src_libwavpack_la_SOURCES += wavpackdll/dummy.c wavpackdll/wavpackdll.rc wavpackdll/resource.h
src_libwavpack_la_DEPENDENCIES = wavpackdll/wavpackdll.o
win32res_link = -Wl,wavpackdll/wavpackdll.o
wavpackdll/wavpackdll.o: wavpackdll/wavpackdll.rc
endif
endif
src_libwavpack_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
src_libwavpack_la_LIBADD = $(AM_LDADD) $(LIBM) $(LIBTHREAD)
src_libwavpack_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(win32res_link) -export-symbols-regex '^Wavpack.*$$' -no-undefined
.rc.o:
$(RC) $(AM_CPPFLAGS) -i $< $@