dist=Makefile
targets=locker,notify,pulseaudio
cflags_force=`pkg-config --cflags libDesktop` -fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-Wl,-z,relro -Wl,-z,now

#targets
[locker]
type=plugin
sources=locker.c
install=$(LIBDIR)/Phone/plugins

[notify]
type=plugin
sources=notify.c
cflags=`pkg-config --cflags Panel`
#for Gtk+ 3
#cflags=`pkg-config --cflags Panel gtk+-x11-3.0`
#ldflags=`pkg-config --cflags gtk+-x11-3.0`
install=$(LIBDIR)/Phone/plugins

[pulseaudio]
type=plugin
sources=pulseaudio.c
cflags=`pkg-config --cflags libpulse`
ldflags=`pkg-config --libs libpulse`
install=$(LIBDIR)/Phone/plugins
