Mailer
targets=clint.log,date,email,fixme.log,imap4,plugins,tests.log,xmllint.log
cppflags_force=-I ../include
cflags_force=-fPIE
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,clint.sh,embedded.sh,fixme.sh,pkgconfig.sh,tests.sh,xmllint.sh
#targets
[clint.log]
type=script
script=./clint.sh
enabled=0
depends=clint.sh
[date]
type=binary
sources=date.c
[email]
type=binary
sources=email.c
ldflags=-L$(OBJDIR)../src -Wl,-rpath,$(OBJDIR)../src -lMailer
[fixme.log]
type=script
script=./fixme.sh
enabled=0
depends=fixme.sh
[imap4]
type=binary
sources=imap4.c
cflags=`pkg-config --cflags glib-2.0 libSystem` `pkg-config --cflags openssl`
ldflags=`pkg-config --libs glib-2.0 libSystem` `pkg-config --libs openssl`
[plugins]
type=binary
#for Gtk+ 2
#cflags=`pkg-config --cflags gtk+-2.0`
#ldflags=`pkg-config --libs gtk+-2.0`
#for Gtk+ 3
cflags=`pkg-config --cflags gtk+-3.0`
ldflags=`pkg-config --libs gtk+-3.0`
sources=plugins.c
[tests.log]
type=script
script=./tests.sh
enabled=0
depends=$(OBJDIR)date,$(OBJDIR)email,$(OBJDIR)imap4,pkgconfig.sh,$(OBJDIR)plugins,tests.sh
[xmllint.log]
type=script
script=./xmllint.sh
enabled=0
depends=xmllint.sh
#sources
[date.c]
depends=../src/helper.c
[email.c]
#XXX should use $(SOEXT)
depends=$(OBJDIR)../src/libMailer.a
[imap4.c]
depends=../src/account/imap4.c