targets=debug,openmoko,suspend,systray,template
cppflags_force=-I ../../include
cppflags=
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-Wl,-z,relro -Wl,-z,now
cflags_force=`pkg-config --cflags libDesktop` -fPIC
ldflags_force=`pkg-config --libs libDesktop`
dist=Makefile

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

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

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

#targets
[debug]
type=plugin
sources=debug.c

[openmoko]
type=plugin
sources=openmoko.c
install=$(LIBDIR)/Locker/plugins

[suspend]
type=plugin
sources=suspend.c
install=$(LIBDIR)/Locker/plugins

[systray]
type=plugin
sources=systray.c
cflags=`pkg-config --cflags libDesktop`
ldflags=`pkg-config --libs libDesktop`
install=$(LIBDIR)/Locker/plugins

[template]
type=plugin
sources=template.c

#sources
[debug.c]
depends=../../include/Locker.h

[openmoko.c]
depends=../../include/Locker.h

[suspend.c]
depends=../../include/Locker.h

[systray.c]
depends=../../include/Locker.h

[template.c]
depends=../../include/Locker.h
