Sort the targets and sources

This commit is contained in:
Pierre Pronchery 2020-01-12 09:40:55 +01:00
parent 528b110865
commit 54d7b0a3c5

View File

@ -5,22 +5,16 @@ cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,embedded.sh,fixme.sh,pkgconfig.sh,tests.sh
#targets
[date]
type=binary
sources=date.c
[date.c]
depends=../src/helper.c
[email]
type=binary
sources=email.c
ldflags=-L$(OBJDIR)../src -Wl,-rpath,$(OBJDIR)../src -lMailer
[email.c]
#XXX should use $(SOEXT)
depends=$(OBJDIR)../src/libMailer.a
[fixme.log]
type=script
script=./fixme.sh
@ -32,9 +26,6 @@ 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`
[imap4.c]
depends=../src/account/imap4.c
[plugins]
type=binary
#for Gtk+ 2
@ -49,3 +40,14 @@ sources=plugins.c
type=script
script=./tests.sh
depends=$(OBJDIR)date,$(OBJDIR)email,$(OBJDIR)imap4,pkgconfig.sh,$(OBJDIR)plugins,tests.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