MiniDLNA: update from 1.1.2 to 1.1.4
[tomato.git] / release / src-rt-6.x.4708 / router / minidlna / Makefile.am
blob9273aa5c12639e6192e79a2e5b521cc32aa259d0
1 # This file is part of MiniDLNA.
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.
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.
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.
18 AM_CFLAGS = -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 @STATIC_CFLAGS@
20 SUBDIRS=po
22 sbin_PROGRAMS = minidlnad
23 check_PROGRAMS = testupnpdescgen
24 minidlnad_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
33 #if NEED_VORBIS
34 vorbisflag = -lvorbis
35 #endif
37 #if NEED_OGG
38 flacoggflag = -logg
39 #endif
41 minidlnad_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)
52 minidlnad_LDFLAGS = @STATIC_LDFLAGS@
54 testupnpdescgen_SOURCES = testupnpdescgen.c upnpdescgen.c
55 testupnpdescgen_LDADD = \
56         @LIBJPEG_LIBS@ \
57         @LIBID3TAG_LIBS@ \
58         @LIBSQLITE3_LIBS@ \
59         @LIBAVFORMAT_LIBS@ \
60         @LIBAVUTIL_LIBS@ \
61         @LIBEXIF_LIBS@ \
62         -lFLAC  $(flacoggflag) $(vorbisflag)
64 SUFFIXES = .tmpl .
66 .tmpl:
67         sed -e s@:SBINDIR:@${sbindir}@ <$< >$@
69 GENERATED_FILES = \
70         linux/minidlna.init.d.script
72 TEMPLATES = \
73         linux/minidlna.init.d.script.tmpl
75 CLEANFILES = $(GENERATED_FILES)
77 ACLOCAL_AMFLAGS = -I m4
79 EXTRA_DIST = m4/ChangeLog $(TEMPLATES)
80 noinst_DATA = $(GENERATED_FILES)