summaryrefslogblamecommitdiff
path: root/Makefile.am
blob: 9cfbf8bf3996126a17e4ed1b324419380a50eb3b (plain) (tree)
1
2
3
4
5
6
7
8





                                               
                                  
                    















                        
                   

                          
                    
                      

                                






                                                         
 

















                                                                                                         















                                                                                                  
                
                      
 
                        
                                            
                  
 


                          














                                         


                                   

                               
                                            
                  
 

                                                     

            
                         
 
                           
                                  

                                    
                                      
 
               

                         
                    



                    


                                  




                                                           
            
ACLOCAL_AMFLAGS = -I m4
AM_MAKEFLAGS = --no-print-directory
AM_CFLAGS = \
	-DPACKAGE_DATA_DIR=\"$(pkgdatadir)/\" \
	-DPACKAGE_BIN_DIR=\"$(bindir)\" \
	-DPACKAGE_LIB_DIR=\"$(libdir)\" \
	-I$(top_srcdir)/src/lib/ \
	@EFL_CFLAGS@

MAINTAINERCLEANFILES = \
	aclocal.m4 \
	compile \
	config.guess \
	config.h.in \
	config.sub \
	configure \
	depcomp \
	install-sh \
	ltmain.sh \
	Makefile.in \
	missing \
	mkinstalldirs
EXTRA_DIST =

lib_LTLIBRARIES = \
	src/lib/libemix.la

includes_HEADERS = \
	src/lib/emix.h
includesdir = $(includedir)/emix

src_lib_libemix_la_SOURCES = \
	src/lib/emix.h \
	src/lib/emix.c

src_lib_libemix_la_LIBADD = @EFL_LIBS@
src_lib_libemix_la_LDFLAGS = -no-undefined -avoid-version
src_lib_libemix_la_LIBTOOLFLAGS = --tag=disable-static

if HAVE_PULSEAUDIO_PKG
backendpulseaudiopkgdir = $(libdir)/emix/pulseaudio/$(MODULE_ARCH)
backendpulseaudiopkg_LTLIBRARIES = src/lib/backends/pulseaudio/module.la
src_lib_backends_pulseaudio_module_la_SOURCES = \
	src/lib/backends/pulseaudio/pulse.c \
	src/lib/backends/pulseaudio/pulse_ml.c
src_lib_backends_pulseaudio_module_la_CFLAGS = \
	-DPACKAGE_DATA_DIR=\"$(pkgdatadir)/\" \
	-DPACKAGE_BIN_DIR=\"$(bindir)\" \
	-DPACKAGE_LIB_DIR=\"$(libdir)\" \
	-I$(top_srcdir)/src/lib/ \
	@EFL_CFLAGS@ \
	@PULSE_CFLAGS@
src_lib_backends_pulseaudio_module_la_LIBADD = @EFL_LIBS@ @PULSE_LIBS@ $(top_builddir)/src/lib/libemix.la
src_lib_backends_pulseaudio_module_la_LDFLAGS = -module
src_lib_backends_pulseaudio_module_la_LIBTOOLFLAGS = --tag=disable-static
endif

if HAVE_ALSA_PKG
backendalsapkgdir = $(libdir)/emix/alsa/$(MODULE_ARCH)
backendalsapkg_LTLIBRARIES = src/lib/backends/alsa/module.la
src_lib_backends_alsa_module_la_SOURCES = src/lib/backends/alsa/alsa.c
src_lib_backends_alsa_module_la_CFLAGS = \
	-DPACKAGE_DATA_DIR=\"$(pkgdatadir)/\" \
	-DPACKAGE_BIN_DIR=\"$(bindir)\" \
	-DPACKAGE_LIB_DIR=\"$(libdir)\" \
	-I$(top_srcdir)/src/lib/ \
	@EFL_CFLAGS@ \
	@ALSA_CFLAGS@
src_lib_backends_alsa_module_la_LIBADD = @EFL_LIBS@ @ALSA_LIBS@ $(top_builddir)/src/lib/libemix.la
src_lib_backends_alsa_module_la_LDFLAGS = -module
src_lib_backends_alsa_module_la_LIBTOOLFLAGS = --tag=disable-static
endif

bin_PROGRAMS = \
	src/bin/emixer

src_bin_emixer_LDADD = \
	$(top_builddir)/src/lib/libemix.la \
	@EFL_LIBS@

src_bin_emixer_SOURCES = \
	src/bin/common.h \
	src/bin/common.c \
	src/bin/main_window.h \
	src/bin/main_window.c \
	src/bin/playbacks_view.h \
	src/bin/playbacks_view.c \
	src/bin/sinks_view.h \
	src/bin/sinks_view.c \
	src/bin/sources_view.h \
	src/bin/sources_view.c \
	src/bin/main.c

moduledir = $(pkgdir)/$(MODULE_ARCH)
module_LTLIBRARIES = src/module/module.la

src_module_module_la_SOURCES = \
	src/module/e_mod_main.c \
	src/module/e_mod_main.h \
	src/module/e_mod_config.c \
	src/module/e_mod_config.h

src_module_module_la_LIBADD = \
	$(top_builddir)/src/lib/libemix.la \
	@EFL_LIBS@

src_module_module_la_LDFLAGS = -module -avoid-version

SUBDIRS = po

include Makefile_Theme.am

iconsdir = $(datadir)/icons
icons_DATA = data/icons/emixer.png

desktopdir = $(datadir)/applications
desktop_DATA = data/xml/emixer.desktop

EXTRA_DIST += \
	$(icons_DATA) \
	$(desktop_DATA) \
	emix.pc.in \
	mksnapshot \
	mksubmit \
	autogen.sh

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = emix.pc

.PHONY: update-potfiles
update-potfiles:
	cd $(top_srcdir) && \
	find -type f -name '*.[ch]' | sort > po/POTFILES.in

clean-local: