aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: bfe557566f77f476ada1c2e434bb5d281c928a8a (plain)
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
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = subdir-objects

if IS_GIT_REPO
GITVERSION_FLAGS = -DGITVERSION="\"`git describe --dirty`\""
else
GITVERSION_FLAGS =
endif

libtoolame_dab_la_LINK = $(LINK) $(libtoolame_dab_la_LDFLAGS)
# Mention a dummy pure C file to trigger generation of the $(LINK) variable

toolame_dabincludedir = $(includedir)/libtoolame-dab
toolame_dabinclude_HEADERS = \
	$(top_srcdir)/libtoolame-dab/absthr.h \
	$(top_srcdir)/libtoolame-dab/ath.h \
	$(top_srcdir)/libtoolame-dab/availbits.h \
	$(top_srcdir)/libtoolame-dab/bitstream.h \
	$(top_srcdir)/libtoolame-dab/common.h \
	$(top_srcdir)/libtoolame-dab/crc.h \
	$(top_srcdir)/libtoolame-dab/critband.h \
	$(top_srcdir)/libtoolame-dab/encode.h \
	$(top_srcdir)/libtoolame-dab/encode_new.h \
	$(top_srcdir)/libtoolame-dab/encoder.h \
	$(top_srcdir)/libtoolame-dab/enwindow.h \
	$(top_srcdir)/libtoolame-dab/fft.h \
	$(top_srcdir)/libtoolame-dab/freqtable.h \
	$(top_srcdir)/libtoolame-dab/ieeefloat.h \
	$(top_srcdir)/libtoolame-dab/mem.h \
	$(top_srcdir)/libtoolame-dab/musicin.h \
	$(top_srcdir)/libtoolame-dab/options.h \
	$(top_srcdir)/libtoolame-dab/portableio.h \
	$(top_srcdir)/libtoolame-dab/psycho_0.h \
	$(top_srcdir)/libtoolame-dab/psycho_1.h \
	$(top_srcdir)/libtoolame-dab/psycho_1_priv.h \
	$(top_srcdir)/libtoolame-dab/psycho_2.h \
	$(top_srcdir)/libtoolame-dab/psycho_3.h \
	$(top_srcdir)/libtoolame-dab/psycho_3priv.h \
	$(top_srcdir)/libtoolame-dab/psycho_4.h \
	$(top_srcdir)/libtoolame-dab/psycho_n1.h \
	$(top_srcdir)/libtoolame-dab/subband.h \
	$(top_srcdir)/libtoolame-dab/tables.h \
	$(top_srcdir)/libtoolame-dab/toolame.h \
	$(top_srcdir)/libtoolame-dab/utils.h

pkgconfigdir = $(libdir)/pkgconfig

lib_LTLIBRARIES = libtoolame-dab.la

libtoolame_dab_la_CFLAGS  = -fomit-frame-pointer -DNEWENCODE -std=c99
libtoolame_dab_la_LDFLAGS = -version-info @LIBTOOLAME_DAB_VERSION@ \
							-no-undefined \
							-export-symbols $(top_srcdir)/libtoolame-dab.sym

if HAVE_JACK
odr_audioenc_LDADD_JACK  = -ljack
else
odr_audioenc_LDADD_JACK  =
endif

if HAVE_ALSA
odr_audioenc_LDADD_ALSA  = -lasound
else
odr_audioenc_LDADD_ALSA  =
endif

FEC_SOURCES = contrib/fec/char.h \
			  contrib/fec/decode_rs_char.c contrib/fec/decode_rs.h \
			  contrib/fec/encode_rs_char.c contrib/fec/encode_rs.h \
			  contrib/fec/fec.h \
			  contrib/fec/init_rs_char.c contrib/fec/init_rs.h \
			  contrib/fec/rs-common.h


odr_audioenc_LDFLAGS     = -no-install
odr_audioenc_LDADD       = libtoolame-dab.la \
						   -lzmq \
						   $(odr_audioenc_LDADD_JACK) \
						   $(odr_audioenc_LDADD_ALSA) \
						   $(LIBVLC_LIBS)
odr_audioenc_CPPFLAGS    = $(AM_CPPFLAGS) $(GITVERSION_FLAGS) -ggdb -O2
odr_audioenc_SOURCES     = src/odr-audioenc.cpp \
						   src/FileInput.cpp \
						   src/FileInput.h \
						   src/AlsaInput.cpp \
						   src/AlsaInput.h \
						   src/JackInput.cpp \
						   src/JackInput.h \
						   src/VLCInput.cpp \
						   src/VLCInput.h \
						   src/AACDecoder.cpp \
						   src/AACDecoder.h \
						   src/SampleQueue.h \
						   src/encryption.c \
						   src/encryption.h \
						   src/zmq.hpp \
						   src/utils.c \
						   src/utils.h \
						   src/wavfile.cpp \
						   src/common.h \
						   $(FEC_SOURCES)

bin_PROGRAMS =  odr-audioenc$(EXEEXT)

noinst_HEADERS = src/wavfile.h

libtoolame_dab_la_SOURCES = \
							libtoolame-dab/common.c \
							libtoolame-dab/encode.c \
							libtoolame-dab/ieeefloat.c \
							libtoolame-dab/toolame.c \
							libtoolame-dab/portableio.c \
							libtoolame-dab/psycho_n1.c \
							libtoolame-dab/psycho_0.c \
							libtoolame-dab/psycho_1.c \
							libtoolame-dab/psycho_2.c \
							libtoolame-dab/psycho_3.c \
							libtoolame-dab/psycho_4.c \
							libtoolame-dab/fft.c \
							libtoolame-dab/subband.c \
							libtoolame-dab/bitstream.c \
							libtoolame-dab/mem.c \
							libtoolame-dab/crc.c \
							libtoolame-dab/tables.c \
							libtoolame-dab/availbits.c \
							libtoolame-dab/ath.c \
							libtoolame-dab/encode_new.c \
							libtoolame-dab/utils.c


EXTRA_DIST = $(top_srcdir)/bootstrap \
			 $(top_srcdir)/README.md \
			 $(top_srcdir)/ChangeLog \
			 $(top_srcdir)/libtoolame-dab.sym \
			 $(top_srcdir)/Doxyfile \
			 $(top_srcdir)/contrib/fec/LICENSE \
			 $(top_srcdir)/contrib/fec/README.md

doc: export PROJECT_NUMBER:=$(shell git describe --dirty)

.PHONY: doc
doc:
	doxygen