subdirs=16x16,24x24,32x32,48x48,gprs,ussd
targets=blacklist,console,debug,engineering,gprs,gps,n900,openmoko,oss,panel,password,profiles,smscrypt,systray,template,ussd,video
cppflags_force=-I ../../include
cppflags=
cflags_force=`pkg-config --cflags libDesktop` -fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --cflags libDesktop`
ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile

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

[blacklist.c]
depends=../../include/Phone.h

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

[debug.c]
depends=../../include/Phone.h

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

[debug.c]
depends=../../include/Phone.h

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

[engineering.c]
depends=../../include/Phone.h

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

[gprs.c]
depends=../../include/Phone.h,../../config.h

[gps]
type=plugin
sources=gps.c
cppflags=-I../modems
install=$(LIBDIR)/Phone/plugins

[gps.c]
depends=../../include/Phone.h

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

[n900.c]
depends=../../include/Phone.h

[openmoko]
type=plugin
sources=openmoko.c
cppflags=-I../modems
cflags=`pkg-config --cflags alsa`
ldflags=`pkg-config --libs alsa`
install=$(LIBDIR)/Phone/plugins

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

[oss]
type=plugin
sources=oss.c
ldflags=-lossaudio
install=$(LIBDIR)/Phone/plugins

[oss.c]
depends=../../include/Phone.h,../../config.h

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

[panel.c]
depends=../../include/Phone.h

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

[password.c]
depends=../../include/Phone.h

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

[profiles.c]
depends=../../include/Phone.h

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

[smscrypt.c]
depends=../../include/Phone.h

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

[systray.c]
depends=../../include/Phone.h,../../config.h

[template]
type=plugin
sources=template.c

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

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

[ussd.c]
depends=../../include/Phone.h,../../config.h

[video]
type=plugin
sources=video.c

[video.c]
depends=../../include/Phone.h
