summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 9cfbf8bf3996126a17e4ed1b324419380a50eb3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
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: