Locker
targets=colors,gtk-demo,logo,template,xscreensaver,xterm
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 x11` -fPIC
ldflags_force=`pkg-config --libs libDesktop x11` -fPIC
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
[colors]
type=plugin
sources=colors.c
install=$(LIBDIR)/Locker/demos
[gtk-demo]
type=plugin
sources=gtk-demo.c
install=$(LIBDIR)/Locker/demos
[logo]
type=plugin
sources=logo.c
install=$(LIBDIR)/Locker/demos
[template]
type=plugin
sources=template.c
[xscreensaver]
type=plugin
sources=xscreensaver.c
install=$(LIBDIR)/Locker/demos
[xterm]
type=plugin
sources=xterm.c
install=$(LIBDIR)/Locker/demos
#sources
[colors.c]
depends=../../include/Locker.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[gtk-demo.c]
depends=../../include/Locker/demo.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[logo.c]
depends=../../include/Locker/demo.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[xscreensaver.c]
depends=../../include/Locker.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"
[xterm.c]
depends=../../include/Locker.h,../../config.h
cppflags=-D PREFIX=\"$(PREFIX)\"