sbin_PROGRAMS = forked-daapd if COND_FLAC FLACSRC=scan-flac.c endif if COND_MUSEPACK MUSEPACKSRC=scan-mpc.c endif if COND_ITUNES ITUNESSRC=filescanner_itunes.c endif ANTLR_GRAMMARS = \ RSP.g RSP2SQL.g \ DAAP.g DAAP2SQL.g ANTLR_SOURCES = \ RSPLexer.c RSPLexer.h RSPParser.c RSPParser.h \ RSP2SQL.c RSP2SQL.h \ DAAPLexer.c DAAPLexer.h DAAPParser.c DAAPParser.h \ DAAP2SQL.c DAAP2SQL.h ANTLR_PRODUCTS = forked_daapd_CPPFLAGS = -D_GNU_SOURCE @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @FFMPEG_CFLAGS@ @CONFUSE_CFLAGS@ @TAGLIB_CFLAGS@ @MINIXML_CFLAGS@ @LIBPLIST_CFLAGS@ @LIBGCRYPT_CFLAGS@ \ -DDATADIR="\"$(pkgdatadir)\"" -DCONFDIR="\"$(sysconfdir)\"" -DSTATEDIR="\"$(localstatedir)\"" forked_daapd_LDADD = @AVAHI_LIBS@ @SQLITE3_LIBS@ @FFMPEG_LIBS@ @CONFUSE_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBEVENT_LIBS@ @LIBAVL_LIBS@ @MINIXML_LIBS@ @ANTLR3C_LIBS@ @LIBPLIST_LIBS@ @LIBGCRYPT_LIBS@ forked_daapd_SOURCES = main.c \ db.c db.h \ logger.c logger.h \ conffile.c conffile.h \ filescanner.c filescanner.h \ filescanner_ffmpeg.c filescanner_urlfile.c filescanner_m3u.c $(ITUNESSRC) \ mdns_avahi.c mdns_avahi.h \ remote_pairing.c remote_pairing.h \ evhttp/http.c evhttp/evhttp.h \ evhttp/http-internal.h evhttp/log.h \ ffmpeg_url_evbuffer.c ffmpeg_url_evbuffer.h \ httpd.c httpd.h \ httpd_rsp.c httpd_rsp.h \ httpd_daap.c httpd_daap.h \ httpd_dacp.c httpd_dacp.h \ dmap_helpers.c dmap_helpers.h \ transcode.c transcode.h \ artwork.c artwork.h \ misc.c misc.h \ rsp_query.c rsp_query.h \ daap_query.c daap_query.h \ scan-wma.c \ $(FLACSRC) $(MUSEPACKSRC) nodist_forked_daapd_SOURCES = \ $(ANTLR_SOURCES) EXTRA_DIST = \ $(ANTLR_GRAMMARS) \ scan-mpc.c \ scan-flac.c # Let's help the dependencies a little. rsp_query.c: RSPLexer.h RSPParser.h RSP2SQL.h daap_query.c: DAAPLexer.h DAAPParser.h DAAP2SQL.h SUFFIXES = .g .u %.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g @ANTLR@ $(ANTLR_OPTIONS) $< %.u: %.g @ANTLR@ -depend $< > $@ @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 >> $@ @rm $@.tmp clean-local: -rm $(ANTLR_PRODUCTS) rm $(ANTLR_GRAMMARS:.g=.u) -include $(ANTLR_GRAMMARS:.g=.u)