blob: 6055d929b2bba11cac60c55dea2be7d3819b5f32 [file] [log] [blame]
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = agmtest.pc
EXTRA_DIST = $(pkgconfig_DATA)
AM_CFLAGS := -Wno-unused-parameter -Wno-unused-result
if !BUILDSYSTEM_OPENWRT
AM_CFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/
endif
AM_CFLAGS += $(GLIB_CFLAGS) -Dstrlcpy=g_strlcpy -Dstrlcat=g_strlcat -include glib.h
AM_CFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/acdbdata
AM_CFLAGS += -DBACKEND_CONF_FILE=\"/etc/backend_conf.xml\"
lib_LTLIBRARIES = libagmmixer.la
libagmmixer_la_SOURCES = agmmixer.c
libagmmixer_la_CFLAGS := $(AM_CFLAGS)
libagmmixer_la_LDFLAGS = -lcutils -ldl -lexpat -ltinyalsa -avoid-version
bin_PROGRAMS := agmplay
agmplay_SOURCES := agmplay.c
agmplay_la_CFLAGS := $(AM_CFLAGS)
agmplay_LDADD := -ltinyalsa libagmmixer.la
bin_PROGRAMS += agmcap
agmcap_SOURCES := agmcap.c
agmcap_la_CFLAGS := $(AM_CFLAGS)
agmcap_LDADD := -ltinyalsa libagmmixer.la
bin_PROGRAMS += agmhostless
agmhostless_SOURCES := agmhostless.c
agmhostless_la_CFLAGS := $(AM_CFLAGS)
agmhostless_LDADD := -ltinyalsa libagmmixer.la
if !BUILDSYSTEM_OPENWRT
bin_PROGRAMS += agmcompressplay
agmcompressplay_SOURCES := agmcompressplay.c
agmcompressplay_la_CFLAGS := $(AM_CFLAGS)
agmcompressplay_LDADD := -ltinycompress -ltinyalsa libagmmixer.la
bin_PROGRAMS += agmcompresscap
agmcompresscap_SOURCES := agmcompresscap.c
agmcompresscap_la_CFLAGS := $(AM_CFLAGS)
agmcompresscap_LDADD := -ltinycompress -ltinyalsa libagmmixer.la
endif
bin_PROGRAMS += agmvoiceui
agmvoiceui_SOURCES := agm_voiceui.c
agmvoiceui_la_CFLAGS := $(AM_CFLAGS)
agmvoiceui_LDADD := -lpthread -ltinyalsa libagmmixer.la