owntone-server/src/Makefile.am

77 lines
1.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_FLAC
FLACSRC=scan-flac.c
endif
2005-11-01 23:45:25 -05:00
if COND_MUSEPACK
MUSEPACKSRC=scan-mpc.c
endif
2009-06-02 09:51:38 -04:00
ANTLR_GRAMMARS = \
RSP.g RSP2SQL.g \
2009-06-02 09:51:38 -04:00
DAAP.g DAAP2SQL.g
ANTLR_SOURCES = \
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 =
2009-06-12 05:09:58 -04:00
forked_daapd_CPPFLAGS = -D_GNU_SOURCE @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @FFMPEG_CFLAGS@ @CONFUSE_CFLAGS@ @TAGLIB_CFLAGS@ @MINIXML_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@
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 \
conffile.c conffile.h \
filescanner.c filescanner.h \
filescanner_ffmpeg.c filescanner_urlfile.c filescanner_m3u.c \
2009-04-07 13:32:47 -04:00
mdns_avahi.c mdns_avahi.h \
2009-05-08 12:07:29 -04:00
evhttp/http.c evhttp/evhttp.h evhttp/strlcpy.c \
2009-05-02 11:58:38 -04:00
evhttp/http-internal.h evhttp/log.h evhttp/strlcpy-internal.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 \
2009-05-01 09:31:59 -04:00
transcode.c transcode.h \
2009-04-30 08:25:52 -04:00
misc.c misc.h \
rsp_query.c rsp_query.h \
2009-06-02 09:51:38 -04:00
daap_query.c daap_query.h \
scan-wma.c \
$(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)
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
# Let's help the dependencies a little.
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
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
2009-06-02 09:51:38 -04:00
clean-local:
-rm $(ANTLR_PRODUCTS)
rm $(ANTLR_GRAMMARS:.g=.u)
-include $(ANTLR_GRAMMARS:.g=.u)