blob: 57ec024c1ae0e1b130ef141dc86c767075c8fa72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
TARGET=volume-change-notify
MODULE=module-$(TARGET)
PULSEAUDIO=$(HOME)/tmp/pulseaudio-2.1
DBUS_CFLAGS=$(shell pkg-config --cflags dbus-1)
DBUS_LDFLAGS=$(shell pkg-config --libs dbus-1)
CFLAGS=-I$(PULSEAUDIO) -I$(PULSEAUDIO)/src $(DBUS_CFLAGS)
LDFLAGS=$(DBUS_LDFLAGS)
$(MODULE).so: $(MODULE).c
gcc $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $<
install: $(MODULE).so
install -d $(HOME)/.pulse/modules/
install $(MODULE).so $(HOME)/.pulse/modules/
clean:
$(RM) $(MODULE).so
|