blob: 57ec024c1ae0e1b130ef141dc86c767075c8fa72 (
plain) (
tree)
|
|
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
|