targets=battery,bluetooth,brightness,clock,close,cpu,cpufreq,desktop,embed,gps,gsm,leds,lock,logout,menu,memory,mixer,mpd,network,pager,rotate,separator,shutdown,spacer,suspend,swap,systray,tasks,template,title,usb,user,volume,wpa_supplicant
cppflags_force=-I ../../include
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=
cflags_force=-W `pkg-config --cflags libDesktop` -fPIC
ldflags_force=`pkg-config --libs libDesktop` -lPanel -L$(OBJDIR)..
dist=Makefile,tasks.atoms

#modes
[mode::embedded-debug]
cppflags_force=-DEMBEDDED

[mode::embedded-release]
cppflags_force=-DEMBEDDED -DNDEBUG
cflags=-W -Wall -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector

[mode::release]
cppflags_force=-DNDEBUG
cflags=-W -Wall -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector

[battery]
type=plugin
sources=battery.c
install=$(LIBDIR)/Panel/applets

[battery.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[bluetooth]
type=plugin
sources=bluetooth.c
install=$(LIBDIR)/Panel/applets

[bluetooth.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[brightness]
type=plugin
sources=brightness.c
install=$(LIBDIR)/Panel/applets

[brightness.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[clock]
type=plugin
sources=clock.c
install=$(LIBDIR)/Panel/applets

[clock.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[close]
type=plugin
sources=close.c
cflags=`pkg-config --cflags x11`
ldflags=`pkg-config --libs x11`
install=$(LIBDIR)/Panel/applets

[close.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[cpu]
type=plugin
sources=cpu.c
install=$(LIBDIR)/Panel/applets

[cpu.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[cpufreq]
type=plugin
sources=cpufreq.c
install=$(LIBDIR)/Panel/applets

[cpufreq.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[desktop]
type=plugin
sources=desktop.c
cflags=`pkg-config --cflags x11`
ldflags=`pkg-config --libs x11`
install=$(LIBDIR)/Panel/applets

[desktop.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[embed]
type=plugin
sources=embed.c
#for Gtk+ 2
cflags=`pkg-config --cflags libDesktop`
ldflags=`pkg-config --libs libDesktop`
#for Gtk+ 3
#cflags=`pkg-config --cflags libDesktop gtk+-x11-3.0`
#ldflags=`pkg-config --libs libDesktop gtk+-x11-3.0`
install=$(LIBDIR)/Panel/applets

[embed.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[gps]
type=plugin
sources=gps.c
install=$(LIBDIR)/Panel/applets

[gps.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[gsm]
type=plugin
sources=gsm.c
install=$(LIBDIR)/Panel/applets

[gsm.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[leds]
type=plugin
sources=leds.c
cflags=`pkg-config --cflags x11 xkbfile`
ldflags=`pkg-config --libs x11 xkbfile`
install=$(LIBDIR)/Panel/applets

[leds.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[lock]
type=plugin
sources=lock.c
install=$(LIBDIR)/Panel/applets

[lock.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[logout]
type=plugin
sources=logout.c
install=$(LIBDIR)/Panel/applets

[logout.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[menu]
type=plugin
sources=menu.c
cppflags=-D PREFIX=\"$(PREFIX)\"
install=$(LIBDIR)/Panel/applets

[menu.c]
depends=../../include/Panel.h,../../include/Panel/applet.h,../../config.h

[memory]
type=plugin
sources=memory.c
install=$(LIBDIR)/Panel/applets

[memory.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[mixer]
type=plugin
sources=mixer.c
install=$(LIBDIR)/Panel/applets

[mixer.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[mpd]
type=plugin
sources=mpd.c
#install=$(LIBDIR)/Panel/applets

[mpd.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[network]
type=plugin
sources=network.c
install=$(LIBDIR)/Panel/applets

[network.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[pager]
type=plugin
sources=pager.c
cflags=`pkg-config --cflags libDesktop x11`
ldflags=`pkg-config --libs libDesktop x11`
install=$(LIBDIR)/Panel/applets

[pager.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[rotate]
type=plugin
sources=rotate.c
install=$(LIBDIR)/Panel/applets

[rotate.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[separator]
type=plugin
sources=separator.c
install=$(LIBDIR)/Panel/applets

[separator.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[shutdown]
type=plugin
sources=shutdown.c
install=$(LIBDIR)/Panel/applets

[shutdown.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[spacer]
type=plugin
sources=spacer.c
install=$(LIBDIR)/Panel/applets

[spacer.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[suspend]
type=plugin
sources=suspend.c
install=$(LIBDIR)/Panel/applets

[suspend.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[swap]
type=plugin
sources=swap.c
install=$(LIBDIR)/Panel/applets

[swap.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[systray]
type=plugin
sources=systray.c
cflags=`pkg-config --cflags x11`
ldflags=`pkg-config --libs x11`
install=$(LIBDIR)/Panel/applets

[systray.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[tasks]
type=plugin
sources=tasks.c
cflags=`pkg-config --cflags libDesktop x11`
ldflags=`pkg-config --libs libDesktop x11`
install=$(LIBDIR)/Panel/applets

[tasks.c]
depends=../../include/Panel.h,../../include/Panel/applet.h,tasks.atoms

[template]
type=plugin
sources=template.c

[template.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[title]
type=plugin
sources=title.c
cflags=`pkg-config --cflags x11`
ldflags=`pkg-config --libs x11`
install=$(LIBDIR)/Panel/applets

[title.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[usb]
type=plugin
sources=usb.c
install=$(LIBDIR)/Panel/applets

[usb.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[user]
type=plugin
sources=user.c
install=$(LIBDIR)/Panel/applets

[user.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[volume]
type=plugin
sources=volume.c
cppflags=`pkg-config --cflags alsa`
ldflags=`pkg-config --libs alsa`
install=$(LIBDIR)/Panel/applets

[volume.c]
depends=../../include/Panel.h,../../include/Panel/applet.h

[wpa_supplicant]
type=plugin
sources=wpa_supplicant.c
install=$(LIBDIR)/Panel/applets

[wpa_supplicant.c]
depends=../../include/Panel.h,../../include/Panel/applet.h
