1# This file is part of MiniDLNA.
2#
3# MiniDLNA is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as
5# published by the Free Software Foundation; either version 2 of the
6# License, or (at your option) any later version.
7#
8# MiniDLNA is distributed in the hope that it will be useful, but WITHOUT
9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11# License for more details.
12#
13# You should have received a copy of the GNU Lesser General Public
14# License along with MiniDLNA; if not, write to the Free Software
15# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16# USA.
17
18AM_CFLAGS = -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 @STATIC_CFLAGS@
19
20SUBDIRS=po
21
22sbin_PROGRAMS = minidlnad
23check_PROGRAMS = testupnpdescgen
24minidlnad_SOURCES = minidlna.c upnphttp.c upnpdescgen.c upnpsoap.c \
25			upnpreplyparse.c minixml.c clients.c \
26			getifaddr.c process.c upnpglobalvars.c \
27			options.c minissdp.c uuid.c upnpevents.c \
28			sql.c utils.c metadata.c scanner.c inotify.c \
29			tivo_utils.c tivo_beacon.c tivo_commands.c \
30			playlist.c image_utils.c albumart.c log.c \
31			containers.c tagutils/tagutils.c
32
33#if NEED_VORBIS
34vorbisflag = -lvorbis
35#endif
36
37#if NEED_OGG
38flacoggflag = -logg
39#endif
40
41minidlnad_LDADD = \
42	@LIBJPEG_LIBS@ \
43	@LIBID3TAG_LIBS@ \
44	@LIBSQLITE3_LIBS@ \
45	@LIBAVFORMAT_LIBS@ \
46	@LIBAVUTIL_LIBS@ \
47	@LIBEXIF_LIBS@ \
48	@LIBINTL@ \
49	@LIBICONV@ \
50	-lFLAC  $(flacoggflag) $(vorbisflag)
51
52minidlnad_LDFLAGS = @STATIC_LDFLAGS@
53
54testupnpdescgen_SOURCES = testupnpdescgen.c upnpdescgen.c
55testupnpdescgen_LDADD = \
56	@LIBJPEG_LIBS@ \
57	@LIBID3TAG_LIBS@ \
58	@LIBSQLITE3_LIBS@ \
59	@LIBAVFORMAT_LIBS@ \
60	@LIBAVUTIL_LIBS@ \
61	@LIBEXIF_LIBS@ \
62	-lFLAC  $(flacoggflag) $(vorbisflag)
63
64SUFFIXES = .tmpl .
65
66.tmpl:
67	sed -e s@:SBINDIR:@${sbindir}@ <$< >$@
68
69GENERATED_FILES = \
70	linux/minidlna.init.d.script
71
72TEMPLATES = \
73	linux/minidlna.init.d.script.tmpl
74
75CLEANFILES = $(GENERATED_FILES)
76
77ACLOCAL_AMFLAGS = -I m4
78
79EXTRA_DIST = m4/ChangeLog $(TEMPLATES)
80noinst_DATA = $(GENERATED_FILES)
81