summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2aef974228d62876695933791f87dae672e46799 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 $@ $<

clean:
	$(RM) $(MODULE).so