summaryrefslogtreecommitdiff
path: root/mate-volume-control/Makefile.am
blob: b3a599486fcdeaeca7e63be62b00a9b2a2e6982b (plain)
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
if ENABLE_STATUSICON
bin_PROGRAMS = \
	 mate-volume-control-status-icon \
	 mate-volume-control \
	$(NULL)
else
bin_PROGRAMS = \
	 mate-volume-control \
	$(NULL)
endif

AM_CPPFLAGS = \
	$(WARN_CFLAGS) \
	$(VOLUME_CONTROL_CFLAGS) \
	$(DISABLE_DEPRECATED) \
	-DMATELOCALEDIR=\""$(datadir)/locale"\" \
	-DLOCALE_DIR=\""$(datadir)/locale"\" \
	-DICON_DATA_DIR="\"$(pkgdatadir)/icons\"" \
	-DSOUND_SET_DIR="\"$(pkgdatadir)/sounds\"" \
	-I$(srcdir) \
	$(NULL)

if ENABLE_PANELAPPLET
APPLET_LOCATION = $(libdir)/libmate-volume-control-applet.so
appletsdir       = $(datadir)/mate-panel/applets
applets_in_files = org.mate.applets.GvcApplet.mate-panel-applet.desktop.in
applets_DATA     = $(applets_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
mate_volume_control_applet_libdir= $(libdir)
mate_volume_control_applet_lib_LTLIBRARIES=libmate-volume-control-applet.la

$(applets_in_files): $(applets_in_files).in Makefile
	$(AM_V_GEN)sed \
		-e "s|\@APPLET_LOCATION\@|$(APPLET_LOCATION)|" \
		$< > $@

$(applets_DATA): $(applets_in_files) Makefile
	$(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@

EXTRA_DIST = \
	$(applets_in_files).in \
	$(service_in_files)

endif

noinst_LTLIBRARIES = libmatevolumecontrol.la
libmatevolumecontrol_la_SOURCES = \
	gvc-channel-bar.h \
	gvc-channel-bar.c \
	$(NULL)

if ENABLE_STATUSICON
mate_volume_control_status_icon_LDADD = \
	-lm \
	libmatevolumecontrol.la \
	$(VOLUME_CONTROL_LIBS) \
	$(NULL)

mate_volume_control_status_icon_SOURCES = \
	gvc-stream-status-icon.h \
	gvc-stream-status-icon.c \
	gvc-status-icon.h \
	gvc-status-icon.c \
	status-icon-main.c \
	$(NULL)

mate_volume_control_status_icon_CFLAGS = $(WARN_CFLAGS)
endif

if ENABLE_PANELAPPLET

libmate_volume_control_applet_la_LDFLAGS = \
	-module -avoid-version \
	$(WARN_LDFLAGS) \
	$(AM_LDFLAGS) \
	$(NULL)

libmate_volume_control_applet_la_SOURCES = \
	gvc-stream-applet-icon.h \
	gvc-stream-applet-icon.c \
	gvc-applet.h \
	gvc-applet.c \
	applet-main.c \
	$(NULL)

libmate_volume_control_applet_la_CFLAGS = $(WARN_CFLAGS)

libmate_volume_control_applet_la_LIBADD = \
	-lm \
	libmatevolumecontrol.la \
    $(MATE_APPLETS4_CFLAGS)		\
	$(VOLUME_CONTROL_LIBS) \
	$(NULL)

endif

mate_volume_control_LDADD = \
	-lm \
	libmatevolumecontrol.la \
	$(VOLUME_CONTROL_LIBS) \
	$(NULL)

mate_volume_control_SOURCES = \
	gvc-balance-bar.h \
	gvc-balance-bar.c \
	gvc-level-bar.h \
	gvc-level-bar.c \
	gvc-combo-box.h \
	gvc-combo-box.c \
	gvc-sound-theme-chooser.c \
	gvc-sound-theme-chooser.h \
	gvc-speaker-test.h \
	gvc-speaker-test.c \
	gvc-utils.c \
	gvc-utils.h \
	sound-theme-file-utils.c \
	sound-theme-file-utils.h \
	gvc-mixer-dialog.c \
	gvc-mixer-dialog.h \
	dialog-main.c \
	$(NULL)

BUILT_SOURCES = \
	$(NULL)

CLEANFILES = \
	$(applets_in_files) \
	$(BUILT_SOURCES) \
	$(NULL)

MAINTAINERCLEANFILES = \
	*~ \
	Makefile.in

-include $(top_srcdir)/git.mk