2009-04-01 12:59:32 -04:00
|
|
|
|
2009-06-12 05:09:58 -04:00
|
|
|
sbin_PROGRAMS = forked-daapd
|
2003-10-30 17:42:53 -05:00
|
|
|
|
2005-02-26 19:41:55 -05:00
|
|
|
if COND_FLAC
|
2005-05-29 19:44:23 -04:00
|
|
|
FLACSRC=scan-flac.c
|
2005-02-26 19:41:55 -05:00
|
|
|
endif
|
|
|
|
|
2005-11-01 23:45:25 -05:00
|
|
|
if COND_MUSEPACK
|
|
|
|
MUSEPACKSRC=scan-mpc.c
|
|
|
|
endif
|
|
|
|
|
2009-11-22 05:09:59 -05:00
|
|
|
if COND_ITUNES
|
|
|
|
ITUNESSRC=filescanner_itunes.c
|
|
|
|
endif
|
|
|
|
|
2010-04-04 06:46:24 -04:00
|
|
|
if COND_ALSA
|
|
|
|
ALSASRC=laudio_alsa.c
|
|
|
|
endif
|
|
|
|
|
2010-05-01 13:07:16 -04:00
|
|
|
if COND_OSS4
|
|
|
|
OSS4SRC=laudio_oss4.c
|
|
|
|
endif
|
|
|
|
|
2011-03-31 12:05:41 -04:00
|
|
|
GPERF_FILES = \
|
2011-03-31 12:30:18 -04:00
|
|
|
daap_query.gperf \
|
2011-03-31 12:52:33 -04:00
|
|
|
rsp_query.gperf \
|
|
|
|
dacp_prop.gperf
|
2011-03-31 11:33:12 -04:00
|
|
|
|
2011-03-31 12:05:41 -04:00
|
|
|
GPERF_PRODUCTS = \
|
2011-03-31 12:30:18 -04:00
|
|
|
daap_query_hash.c \
|
2011-03-31 12:52:33 -04:00
|
|
|
rsp_query_hash.c \
|
|
|
|
dacp_prop_hash.c
|
2011-03-31 11:33:12 -04:00
|
|
|
|
2009-06-02 09:51:38 -04:00
|
|
|
ANTLR_GRAMMARS = \
|
2009-06-04 09:45:22 -04:00
|
|
|
RSP.g RSP2SQL.g \
|
2009-06-02 09:51:38 -04:00
|
|
|
DAAP.g DAAP2SQL.g
|
|
|
|
|
|
|
|
ANTLR_SOURCES = \
|
2009-06-04 09:45:22 -04:00
|
|
|
RSPLexer.c RSPLexer.h RSPParser.c RSPParser.h \
|
|
|
|
RSP2SQL.c RSP2SQL.h \
|
2009-06-02 09:51:38 -04:00
|
|
|
DAAPLexer.c DAAPLexer.h DAAPParser.c DAAPParser.h \
|
|
|
|
DAAP2SQL.c DAAP2SQL.h
|
|
|
|
|
|
|
|
ANTLR_PRODUCTS =
|
|
|
|
|
2011-02-06 11:17:58 -05:00
|
|
|
forked_daapd_CPPFLAGS = -D_GNU_SOURCE \
|
2011-02-06 11:49:30 -05:00
|
|
|
-DDATADIR="\"$(pkgdatadir)\"" -DCONFDIR="\"$(sysconfdir)\"" \
|
|
|
|
-DSTATEDIR="\"$(localstatedir)\"" -DPKGLIBDIR="\"$(pkglibdir)\"" \
|
|
|
|
@OSS4CPPFLAGS@
|
|
|
|
|
|
|
|
forked_daapd_CFLAGS = \
|
2011-02-06 11:17:58 -05:00
|
|
|
@ZLIB_CFLAGS@ @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @FFMPEG_CFLAGS@ \
|
|
|
|
@CONFUSE_CFLAGS@ @TAGLIB_CFLAGS@ @MINIXML_CFLAGS@ @LIBPLIST_CFLAGS@ \
|
2011-02-06 11:25:26 -05:00
|
|
|
@LIBGCRYPT_CFLAGS@ @GPG_ERROR_CFLAGS@ @ALSA_CFLAGS@
|
2009-06-12 05:09:58 -04:00
|
|
|
|
2011-02-06 11:28:27 -05:00
|
|
|
forked_daapd_LDADD = -lrt \
|
2011-02-06 11:17:58 -05:00
|
|
|
@ZLIB_LIBS@ @AVAHI_LIBS@ @SQLITE3_LIBS@ @FFMPEG_LIBS@ \
|
|
|
|
@CONFUSE_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBEVENT_LIBS@ \
|
|
|
|
@LIBAVL_LIBS@ @MINIXML_LIBS@ @ANTLR3C_LIBS@ @LIBPLIST_LIBS@ \
|
2011-02-06 11:25:26 -05:00
|
|
|
@LIBGCRYPT_LIBS@ @GPG_ERROR_LIBS@ @ALSA_LIBS@ @LIBUNISTRING@
|
2011-02-06 11:17:58 -05:00
|
|
|
|
2009-06-12 05:09:58 -04:00
|
|
|
forked_daapd_SOURCES = main.c \
|
2009-06-07 12:58:02 -04:00
|
|
|
db.c db.h \
|
2009-05-08 11:04:25 -04:00
|
|
|
logger.c logger.h \
|
2009-04-18 08:14:26 -04:00
|
|
|
conffile.c conffile.h \
|
2009-04-19 09:10:19 -04:00
|
|
|
filescanner.c filescanner.h \
|
2009-11-22 05:09:59 -05:00
|
|
|
filescanner_ffmpeg.c filescanner_urlfile.c filescanner_m3u.c $(ITUNESSRC) \
|
2010-09-18 10:29:06 -04:00
|
|
|
mdns_avahi.c mdns.h \
|
2010-01-15 13:38:21 -05:00
|
|
|
remote_pairing.c remote_pairing.h \
|
2010-01-26 11:54:45 -05:00
|
|
|
evhttp/http.c evhttp/evhttp.h \
|
|
|
|
evhttp/http-internal.h evhttp/log.h \
|
2010-03-07 04:48:54 -05:00
|
|
|
ffmpeg_url_evbuffer.c ffmpeg_url_evbuffer.h \
|
2009-04-22 15:25:41 -04:00
|
|
|
httpd.c httpd.h \
|
2009-04-24 09:41:20 -04:00
|
|
|
httpd_rsp.c httpd_rsp.h \
|
2009-04-28 11:48:57 -04:00
|
|
|
httpd_daap.c httpd_daap.h \
|
2010-01-29 16:39:27 -05:00
|
|
|
httpd_dacp.c httpd_dacp.h \
|
2010-01-29 16:35:00 -05:00
|
|
|
dmap_helpers.c dmap_helpers.h \
|
2009-05-01 09:31:59 -04:00
|
|
|
transcode.c transcode.h \
|
2010-03-07 05:07:09 -05:00
|
|
|
artwork.c artwork.h \
|
2009-04-30 08:25:52 -04:00
|
|
|
misc.c misc.h \
|
2010-04-04 06:46:24 -04:00
|
|
|
rng.c rng.h \
|
2009-06-04 09:45:22 -04:00
|
|
|
rsp_query.c rsp_query.h \
|
2009-06-02 09:51:38 -04:00
|
|
|
daap_query.c daap_query.h \
|
2010-04-04 06:46:24 -04:00
|
|
|
player.c player.h \
|
2010-05-01 13:07:16 -04:00
|
|
|
$(ALSASRC) $(OSS4SRC) laudio.h \
|
2010-04-04 06:46:24 -04:00
|
|
|
raop.c raop.h \
|
|
|
|
evrtsp/rtsp.c evrtp/evrtsp.h \
|
|
|
|
evrtsp/rtsp-internal.h evrtsp/log.h \
|
2009-04-20 10:48:37 -04:00
|
|
|
scan-wma.c \
|
2009-04-08 09:31:23 -04:00
|
|
|
$(FLACSRC) $(MUSEPACKSRC)
|
2003-10-30 17:42:53 -05:00
|
|
|
|
2009-06-12 05:09:58 -04:00
|
|
|
nodist_forked_daapd_SOURCES = \
|
2009-06-02 09:51:38 -04:00
|
|
|
$(ANTLR_SOURCES)
|
|
|
|
|
2011-03-31 11:33:12 -04:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
$(GPERF_PRODUCTS)
|
|
|
|
|
2009-06-02 09:51:38 -04:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(ANTLR_GRAMMARS) \
|
|
|
|
scan-mpc.c \
|
2009-06-07 12:58:02 -04:00
|
|
|
scan-flac.c
|
2009-06-02 09:51:38 -04:00
|
|
|
|
2011-03-31 11:33:12 -04:00
|
|
|
CLEANFILES = \
|
|
|
|
$(GPERF_PRODUCTS)
|
|
|
|
|
2009-06-02 09:51:38 -04:00
|
|
|
# Let's help the dependencies a little.
|
2009-06-04 09:45:22 -04:00
|
|
|
rsp_query.c: RSPLexer.h RSPParser.h RSP2SQL.h
|
2009-06-02 09:51:38 -04:00
|
|
|
daap_query.c: DAAPLexer.h DAAPParser.h DAAP2SQL.h
|
|
|
|
|
2011-03-31 11:33:12 -04: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 06:57:10 -04:00
|
|
|
# Support for building the parsers when ANTLR3 is available
|
|
|
|
if COND_ANTLR
|
2009-06-02 09:51:38 -04:00
|
|
|
SUFFIXES = .g .u
|
|
|
|
|
|
|
|
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
|
2010-06-26 06:20:49 -04:00
|
|
|
$(ANTLR) $(ANTLR_OPTIONS) $<
|
2009-06-02 09:51:38 -04:00
|
|
|
|
|
|
|
%.u: %.g
|
2010-06-26 06:20:49 -04:00
|
|
|
$(ANTLR) -depend $< > $@
|
2009-06-02 09:51:38 -04: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 09:45:22 -04:00
|
|
|
@rm $@.tmp
|
2009-06-02 09:51:38 -04:00
|
|
|
|
|
|
|
clean-local:
|
2010-09-04 06:01:30 -04:00
|
|
|
rm -f $(ANTLR_PRODUCTS)
|
|
|
|
rm -f $(ANTLR_GRAMMARS:.g=.u)
|
2009-06-02 09:51:38 -04:00
|
|
|
|
2010-09-04 06:57:10 -04:00
|
|
|
else !COND_ANTLR
|
|
|
|
distclean-local:
|
|
|
|
rm -f $(ANTLR_SOURCES)
|
|
|
|
rm -f $(ANTLR_GRAMMARS:.g=.u)
|
|
|
|
endif
|
|
|
|
|
2009-06-02 09:51:38 -04:00
|
|
|
-include $(ANTLR_GRAMMARS:.g=.u)
|