2009-04-01 18:59:32 +02:00
|
|
|
|
2009-06-12 11:09:58 +02:00
|
|
|
sbin_PROGRAMS = forked-daapd
|
2003-10-30 22:42:53 +00:00
|
|
|
|
2005-02-27 00:41:55 +00:00
|
|
|
if COND_FLAC
|
2014-08-15 23:36:54 +02:00
|
|
|
FLAC_SRC=scan-flac.c
|
2005-02-27 00:41:55 +00:00
|
|
|
endif
|
|
|
|
|
2005-11-02 04:45:25 +00:00
|
|
|
if COND_MUSEPACK
|
2014-08-15 23:36:54 +02:00
|
|
|
MUSEPACK_SRC=scan-mpc.c
|
2005-11-02 04:45:25 +00:00
|
|
|
endif
|
|
|
|
|
2009-11-22 11:09:59 +01:00
|
|
|
if COND_ITUNES
|
2014-08-15 23:36:54 +02:00
|
|
|
ITUNES_SRC=filescanner_itunes.c
|
2009-11-22 11:09:59 +01:00
|
|
|
endif
|
|
|
|
|
2014-03-11 23:20:29 +01:00
|
|
|
if COND_SPOTIFY
|
2014-08-15 23:36:54 +02:00
|
|
|
SPOTIFY_SRC=spotify.c spotify.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_LASTFM
|
|
|
|
LASTFM_SRC=lastfm.c lastfm.h
|
2014-03-11 23:20:29 +01:00
|
|
|
endif
|
|
|
|
|
2014-12-21 20:41:44 +01:00
|
|
|
if COND_MPD
|
|
|
|
MPD_SRC=mpd.c mpd.h
|
|
|
|
endif
|
|
|
|
|
2010-04-04 12:46:24 +02:00
|
|
|
if COND_ALSA
|
2014-08-15 23:36:54 +02:00
|
|
|
ALSA_SRC=laudio_alsa.c
|
2010-04-04 12:46:24 +02:00
|
|
|
endif
|
|
|
|
|
2010-05-01 19:07:16 +02:00
|
|
|
if COND_OSS4
|
2014-08-15 23:36:54 +02:00
|
|
|
OSS4_SRC=laudio_oss4.c
|
2010-05-01 19:07:16 +02:00
|
|
|
endif
|
|
|
|
|
2014-05-30 23:39:03 +02:00
|
|
|
if COND_LIBEVENT20
|
|
|
|
RTSP_SRC=evrtsp/rtsp-libevent20.c evrtp/evrtsp.h evrtsp/rtsp-internal.h evrtsp/log.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_LIBEVENT21
|
|
|
|
RTSP_SRC=evrtsp/rtsp.c evrtp/evrtsp.h evrtsp/rtsp-internal.h evrtsp/log.h
|
|
|
|
endif
|
|
|
|
|
2011-03-31 18:05:41 +02:00
|
|
|
GPERF_FILES = \
|
2011-03-31 18:30:18 +02:00
|
|
|
daap_query.gperf \
|
2011-03-31 18:52:33 +02:00
|
|
|
rsp_query.gperf \
|
2011-04-01 19:01:35 +02:00
|
|
|
dacp_prop.gperf \
|
|
|
|
dmap_fields.gperf
|
2011-03-31 17:33:12 +02:00
|
|
|
|
2011-03-31 18:05:41 +02:00
|
|
|
GPERF_PRODUCTS = \
|
2011-03-31 18:30:18 +02:00
|
|
|
daap_query_hash.c \
|
2011-03-31 18:52:33 +02:00
|
|
|
rsp_query_hash.c \
|
2011-04-01 19:01:35 +02:00
|
|
|
dacp_prop_hash.c \
|
|
|
|
dmap_fields_hash.c
|
2011-03-31 17:33:12 +02:00
|
|
|
|
2009-06-02 15:51:38 +02:00
|
|
|
ANTLR_GRAMMARS = \
|
2009-06-04 15:45:22 +02:00
|
|
|
RSP.g RSP2SQL.g \
|
2015-04-12 06:49:38 +02:00
|
|
|
DAAP.g DAAP2SQL.g \
|
|
|
|
SMARTPL.g SMARTPL2SQL.g
|
2009-06-02 15:51:38 +02:00
|
|
|
|
|
|
|
ANTLR_SOURCES = \
|
2009-06-04 15:45:22 +02:00
|
|
|
RSPLexer.c RSPLexer.h RSPParser.c RSPParser.h \
|
|
|
|
RSP2SQL.c RSP2SQL.h \
|
2009-06-02 15:51:38 +02:00
|
|
|
DAAPLexer.c DAAPLexer.h DAAPParser.c DAAPParser.h \
|
2015-04-12 06:49:38 +02:00
|
|
|
DAAP2SQL.c DAAP2SQL.h \
|
|
|
|
SMARTPLLexer.c SMARTPLLexer.h SMARTPLParser.c SMARTPLParser.h \
|
|
|
|
SMARTPL2SQL.c SMARTPL2SQL.h
|
2009-06-02 15:51:38 +02:00
|
|
|
|
|
|
|
ANTLR_PRODUCTS =
|
|
|
|
|
2011-02-06 17:17:58 +01:00
|
|
|
forked_daapd_CPPFLAGS = -D_GNU_SOURCE \
|
2011-02-06 17:49:30 +01:00
|
|
|
-DDATADIR="\"$(pkgdatadir)\"" -DCONFDIR="\"$(sysconfdir)\"" \
|
2015-02-11 22:58:54 +01:00
|
|
|
-DSTATEDIR="\"$(localstatedir)\"" -DPKGLIBDIR="\"$(pkglibdir)\""
|
2011-02-06 17:49:30 +01:00
|
|
|
|
|
|
|
forked_daapd_CFLAGS = \
|
2011-06-02 21:07:53 +02:00
|
|
|
@ZLIB_CFLAGS@ @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @LIBAV_CFLAGS@ \
|
2011-02-06 17:17:58 +01:00
|
|
|
@CONFUSE_CFLAGS@ @TAGLIB_CFLAGS@ @MINIXML_CFLAGS@ @LIBPLIST_CFLAGS@ \
|
2014-08-15 23:36:54 +02:00
|
|
|
@LIBGCRYPT_CFLAGS@ @GPG_ERROR_CFLAGS@ @ALSA_CFLAGS@ @SPOTIFY_CFLAGS@ \
|
|
|
|
@LIBCURL_CFLAGS@
|
2009-06-12 11:09:58 +02:00
|
|
|
|
2011-02-06 17:28:27 +01:00
|
|
|
forked_daapd_LDADD = -lrt \
|
2011-06-02 21:07:53 +02:00
|
|
|
@ZLIB_LIBS@ @AVAHI_LIBS@ @SQLITE3_LIBS@ @LIBAV_LIBS@ \
|
2011-02-06 17:17:58 +01:00
|
|
|
@CONFUSE_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBEVENT_LIBS@ \
|
2015-02-14 20:58:01 +01:00
|
|
|
@MINIXML_LIBS@ @ANTLR3C_LIBS@ @LIBPLIST_LIBS@ \
|
2014-08-15 23:36:54 +02:00
|
|
|
@LIBGCRYPT_LIBS@ @GPG_ERROR_LIBS@ @ALSA_LIBS@ @LIBUNISTRING@ @SPOTIFY_LIBS@ \
|
|
|
|
@LIBCURL_LIBS@
|
2011-02-06 17:17:58 +01:00
|
|
|
|
2009-06-12 11:09:58 +02:00
|
|
|
forked_daapd_SOURCES = main.c \
|
2009-06-07 18:58:02 +02:00
|
|
|
db.c db.h \
|
2009-05-08 17:04:25 +02:00
|
|
|
logger.c logger.h \
|
2009-04-18 14:14:26 +02:00
|
|
|
conffile.c conffile.h \
|
2015-02-14 20:58:01 +01:00
|
|
|
cache.c cache.h \
|
2009-04-19 15:10:19 +02:00
|
|
|
filescanner.c filescanner.h \
|
2015-04-12 06:49:38 +02:00
|
|
|
filescanner_ffmpeg.c filescanner_playlist.c \
|
|
|
|
filescanner_smartpl.c $(ITUNES_SRC) \
|
2010-09-18 16:29:06 +02:00
|
|
|
mdns_avahi.c mdns.h \
|
2010-01-15 19:38:21 +01:00
|
|
|
remote_pairing.c remote_pairing.h \
|
2015-04-12 20:05:14 +02:00
|
|
|
avio_evbuffer.c avio_evbuffer.h \
|
2009-04-22 21:25:41 +02:00
|
|
|
httpd.c httpd.h \
|
2009-04-24 15:41:20 +02:00
|
|
|
httpd_rsp.c httpd_rsp.h \
|
2009-04-28 17:48:57 +02:00
|
|
|
httpd_daap.c httpd_daap.h \
|
2010-01-29 22:39:27 +01:00
|
|
|
httpd_dacp.c httpd_dacp.h \
|
2015-03-20 23:40:42 +01:00
|
|
|
http.c http.h \
|
2011-03-08 19:22:16 +01:00
|
|
|
dmap_common.c dmap_common.h \
|
2009-05-01 15:31:59 +02:00
|
|
|
transcode.c transcode.h \
|
2014-03-31 13:10:18 +02:00
|
|
|
pipe.c pipe.h \
|
2010-03-07 11:07:09 +01:00
|
|
|
artwork.c artwork.h \
|
2009-04-30 14:25:52 +02:00
|
|
|
misc.c misc.h \
|
2010-04-04 12:46:24 +02:00
|
|
|
rng.c rng.h \
|
2009-06-04 15:45:22 +02:00
|
|
|
rsp_query.c rsp_query.h \
|
2009-06-02 15:51:38 +02:00
|
|
|
daap_query.c daap_query.h \
|
2010-04-04 12:46:24 +02:00
|
|
|
player.c player.h \
|
2015-03-31 23:05:24 +02:00
|
|
|
worker.c worker.h \
|
2015-03-31 17:31:14 +02:00
|
|
|
$(ALSA_SRC) $(OSS4_SRC) \
|
|
|
|
laudio_dummy.c \
|
|
|
|
laudio.c laudio.h \
|
2010-04-04 12:46:24 +02:00
|
|
|
raop.c raop.h \
|
2014-03-13 23:33:35 +01:00
|
|
|
$(RTSP_SRC) \
|
2009-04-20 16:48:37 +02:00
|
|
|
scan-wma.c \
|
2014-08-15 23:36:54 +02:00
|
|
|
$(SPOTIFY_SRC) $(LASTFM_SRC) \
|
2014-12-21 20:41:44 +01:00
|
|
|
$(MPD_SRC) \
|
2014-08-15 23:36:54 +02:00
|
|
|
$(FLAC_SRC) $(MUSEPACK_SRC)
|
2003-10-30 22:42:53 +00:00
|
|
|
|
2009-06-12 11:09:58 +02:00
|
|
|
nodist_forked_daapd_SOURCES = \
|
2009-06-02 15:51:38 +02:00
|
|
|
$(ANTLR_SOURCES)
|
|
|
|
|
2011-03-31 17:33:12 +02:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
$(GPERF_PRODUCTS)
|
|
|
|
|
2009-06-02 15:51:38 +02:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(ANTLR_GRAMMARS) \
|
|
|
|
scan-mpc.c \
|
2009-06-07 18:58:02 +02:00
|
|
|
scan-flac.c
|
2009-06-02 15:51:38 +02:00
|
|
|
|
2011-03-31 17:33:12 +02:00
|
|
|
CLEANFILES = \
|
|
|
|
$(GPERF_PRODUCTS)
|
|
|
|
|
2009-06-02 15:51:38 +02:00
|
|
|
|
2011-03-31 17:33:12 +02:00
|
|
|
# gperf construction rules
|
|
|
|
%_hash.c: %.gperf
|
|
|
|
if $(GPERF) $< > $@.tmp; then \
|
|
|
|
mv $@.tmp $@; \
|
|
|
|
elif $(GPERF) --version >/dev/null 2>&1; then \
|
|
|
|
rm $@.tmp; \
|
|
|
|
exit 1; \
|
|
|
|
else \
|
|
|
|
rm $@.tmp; \
|
|
|
|
touch $@; \
|
|
|
|
fi
|
|
|
|
|
2010-09-04 12:57:10 +02:00
|
|
|
# Support for building the parsers when ANTLR3 is available
|
|
|
|
if COND_ANTLR
|
2009-06-02 15:51:38 +02:00
|
|
|
SUFFIXES = .g .u
|
|
|
|
|
|
|
|
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
|
2015-05-08 22:25:12 +02:00
|
|
|
$(ANTLR) -Xconversiontimeout 30000 $(ANTLR_OPTIONS) $<
|
2009-06-02 15:51:38 +02:00
|
|
|
|
|
|
|
%.u: %.g
|
2010-06-26 12:20:49 +02:00
|
|
|
$(ANTLR) -depend $< > $@
|
2009-06-02 15:51:38 +02:00
|
|
|
@echo -n "ANTLR_PRODUCTS += " > $@.tmp
|
|
|
|
@grep : $@ | cut -d : -f 1 | tr -d ' ' | { while read f; do test "$$f" != "$<" && echo -n "$$f "; done } >> $@.tmp
|
|
|
|
@cat $@.tmp >> $@
|
2009-06-04 15:45:22 +02:00
|
|
|
@rm $@.tmp
|
2009-06-02 15:51:38 +02:00
|
|
|
|
2011-04-01 21:40:11 +02:00
|
|
|
BUILT_SOURCES += $(ANTLR_SOURCES)
|
|
|
|
|
|
|
|
CLEANFILES += \
|
|
|
|
$(ANTLR_PRODUCTS) \
|
|
|
|
$(ANTLR_GRAMMARS:.g=.u)
|
2009-06-02 15:51:38 +02:00
|
|
|
|
2010-09-04 12:57:10 +02:00
|
|
|
else !COND_ANTLR
|
2011-04-01 21:40:11 +02:00
|
|
|
DISTCLEANFILES = \
|
|
|
|
$(ANTLR_PRODUCTS) \
|
|
|
|
$(ANTLR_GRAMMARS:.g=.u)
|
|
|
|
|
2010-09-04 12:57:10 +02:00
|
|
|
endif
|
|
|
|
|
2009-06-02 15:51:38 +02:00
|
|
|
-include $(ANTLR_GRAMMARS:.g=.u)
|