owntone-server/src/Makefile.am

177 lines
3.9 KiB
Makefile
Raw Normal View History

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
if COND_ITUNES
ITUNES_SRC=filescanner_itunes.c
endif
if COND_SPOTIFY
SPOTIFY_SRC=spotify.c spotify.h
endif
if COND_LASTFM
LASTFM_SRC=lastfm.c lastfm.h
endif
if COND_CHROMECAST
2016-02-06 07:38:43 -05:00
if COND_PROTOBUF_OLD
CHROMECAST_SRC=outputs/cast.c outputs/cast_channel.v0.pb-c.h outputs/cast_channel.v0.pb-c.c
else
CHROMECAST_SRC=outputs/cast.c outputs/cast_channel.pb-c.h outputs/cast_channel.pb-c.c
endif
2016-02-06 07:38:43 -05:00
endif
2014-12-21 14:41:44 -05:00
if COND_MPD
MPD_SRC=mpd.c mpd.h
endif
2010-04-04 06:46:24 -04:00
if COND_ALSA
ALSA_SRC=outputs/alsa.c
2010-04-04 06:46:24 -04:00
endif
2016-07-21 16:13:32 -04:00
if COND_PULSEAUDIO
PULSEAUDIO_SRC=outputs/pulse.c
endif
GPERF_FILES = \
daap_query.gperf \
rsp_query.gperf \
dacp_prop.gperf \
dmap_fields.gperf
GPERF_SRC = $(GPERF_FILES:.gperf=_hash.h)
2009-06-02 09:51:38 -04:00
ANTLR_GRAMMARS = \
RSP.g RSP2SQL.g \
DAAP.g DAAP2SQL.g \
SMARTPL.g SMARTPL2SQL.g
2009-06-02 09:51:38 -04:00
ANTLR_TOKENS = $(ANTLR_GRAMMARS:.g=.tokens)
ANTLR_DEPS = $(ANTLR_GRAMMARS:%.g=$(srcdir)/%.u)
ANTLR_SRC = \
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 \
SMARTPLLexer.c SMARTPLLexer.h SMARTPLParser.c SMARTPLParser.h \
SMARTPL2SQL.c SMARTPL2SQL.h
2009-06-02 09:51:38 -04:00
AM_CPPFLAGS += \
$(ZLIB_CFLAGS) \
$(AVAHI_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(LIBAV_CFLAGS) \
$(CONFUSE_CFLAGS) \
$(MINIXML_CFLAGS) \
$(LIBPLIST_CFLAGS) \
$(SPOTIFY_CFLAGS) \
$(LIBGCRYPT_CFLAGS) \
$(GPG_ERROR_CFLAGS) \
$(ALSA_CFLAGS) \
$(LIBPULSE_CFLAGS) \
$(LIBCURL_CFLAGS) \
$(LIBPROTOBUF_C_CFLAGS) \
$(GNUTLS_CFLAGS) \
$(JSON_C_CFLAGS) \
\
-D_GNU_SOURCE \
-DDATADIR=\"$(pkgdatadir)\" \
-DCONFDIR=\"$(sysconfdir)\" \
-DSTATEDIR=\"$(localstatedir)\" \
-DPKGLIBDIR=\"$(pkglibdir)\"
2009-06-12 05:09:58 -04:00
forked_daapd_LDADD = -lrt \
$(ZLIB_LIBS) \
$(AVAHI_LIBS) \
$(SQLITE3_LIBS) \
$(LIBAV_LIBS) \
$(CONFUSE_LIBS) \
$(LIBEVENT_LIBS) \
$(LIBUNISTRING) \
$(MINIXML_LIBS) \
$(ANTLR3C_LIBS) \
$(LIBPLIST_LIBS) \
$(SPOTIFY_LIBS) \
$(LIBGCRYPT_LIBS) \
$(GPG_ERROR_LIBS) \
$(ALSA_LIBS) \
$(LIBPULSE_LIBS) \
$(LIBCURL_LIBS) \
$(LIBPROTOBUF_C_LIBS) \
$(GNUTLS_LIBS) \
$(JSON_C_LIBS)
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 \
db_init.c db_init.h \
db_upgrade.c db_upgrade.h \
2009-05-08 11:04:25 -04:00
logger.c logger.h \
conffile.c conffile.h \
cache.c cache.h \
filescanner.c filescanner.h \
filescanner_ffmpeg.c filescanner_playlist.c \
filescanner_smartpl.c $(ITUNES_SRC) \
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 \
avio_evbuffer.c avio_evbuffer.h \
2009-04-22 15:25:41 -04:00
httpd.c httpd.h \
httpd_rsp.c httpd_rsp.h \
httpd_daap.c httpd_daap.h \
httpd_dacp.c httpd_dacp.h \
httpd_streaming.c httpd_streaming.h \
http.c http.h \
dmap_common.c dmap_common.h \
2009-05-01 09:31:59 -04:00
transcode.c transcode.h \
pipe.c pipe.h \
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 \
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 \
worker.c worker.h \
outputs.h outputs.c \
2016-10-25 15:23:09 -04:00
outputs/raop.c outputs/streaming.c outputs/dummy.c outputs/fifo.c \
2016-07-21 16:13:32 -04:00
$(ALSA_SRC) $(PULSEAUDIO_SRC) $(CHROMECAST_SRC) \
evrtsp/rtsp.c evrtsp/evrtsp.h evrtsp/rtsp-internal.h evrtsp/log.h \
$(SPOTIFY_SRC) \
$(LASTFM_SRC) \
2014-12-21 14:41:44 -05:00
$(MPD_SRC) \
listener.c listener.h \
commands.c commands.h \
ffmpeg-compat.h \
$(GPERF_SRC) \
$(ANTLR_SRC)
2009-06-02 09:51:38 -04:00
# built by maintainers, and distributed. Clean with maintainer-clean
BUILT_SOURCES = \
$(GPERF_SRC) \
$(ANTLR_SRC) \
$(ANTLR_TOKENS) \
$(ANTLR_DEPS)
2009-06-02 09:51:38 -04:00
EXTRA_DIST = \
$(GPERF_FILES) \
$(ANTLR_GRAMMARS) \
$(ANTLR_TOKENS) \
$(ANTLR_DEPS)
2009-06-02 09:51:38 -04:00
# gperf construction rules
%_hash.h: %.gperf
$(AM_V_GEN)$(GPERF) --output-file=$@ $<
2009-06-02 09:51:38 -04:00
# ANTLR grammar products
2009-06-02 09:51:38 -04:00
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
@$(AM_V_P) || echo " GEN " $< "products"
$(AM_V_at)$(ANTLR) -Xconversiontimeout 30000 $(ANTLR_OPTIONS) -fo . $<
2009-06-02 09:51:38 -04:00
# ANTLR dependency files (bypass circular dependency of .g on .tokens)
2009-06-02 09:51:38 -04:00
%.u: %.g
$(AM_V_GEN)$(ANTLR) -depend -fo . $< > $@
$(AM_V_at)sed -n -e '/^.*\.g[ ]*:\(.*\)/ { s//\1/;h;d; }' -e '/\.tokens.*:/ { p;d; }' -e '/:/ { G;s/\n/ /;p; }' $@ > $@-t
$(AM_V_at)mv $@-t $@
-include $(ANTLR_DEPS)