targets=engineering,gprs,pdu,smscrypt
cppflags_force=-I ../include
cppflags=
cflags_force=
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,common.c,xsltproc.sh

[engineering]
type=binary
cflags=`pkg-config --cflags libDesktop`
ldflags=`pkg-config --libs libDesktop`
sources=engineering.c

[engineering.c]
depends=../include/Phone.h,../src/plugins/engineering.c,common.c

[gprs]
type=binary
cflags=`pkg-config --cflags libDesktop`
ldflags=`pkg-config --libs libDesktop`
sources=gprs.c
install=$(BINDIR)

[gprs.c]
depends=../include/Phone.h,../src/plugins/gprs.c,common.c

[pdu]
type=binary
sources=pdu.c
cflags=`pkg-config --cflags libSystem glib-2.0`
ldflags=`pkg-config --libs libSystem glib-2.0`

[pdu.c]
depends=../include/Phone.h,../src/modems/hayes.c
cppflags=-I../src/modems

[smscrypt]
type=binary
sources=smscrypt.c
cflags=`pkg-config --cflags openssl libDesktop`
ldflags=`pkg-config --libs openssl libDesktop`

[smscrypt.c]
depends=../include/Phone.h,../src/plugins/smscrypt.c
