-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
28 lines (22 loc) · 911 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PROG= sigbak
SRCS= cmd-check-backup.c cmd-dump-backup.c cmd-export-attachments.c \
cmd-export-avatars.c cmd-export-database.c \
cmd-export-messages.c mime.c sbk-attachment-tree.c \
sbk-attachment.c sbk-database.c sbk-edit.c sbk-file.c \
sbk-frame.c sbk-mention.c sbk-message.c sbk-open.c \
sbk-quote.c sbk-reaction.c sbk-read.c sbk-recipient-tree.c \
sbk-recipient.c sbk-sqlite.c sbk-thread.c sigbak.c
PROTOS= backup.proto database.proto
SRCS+= ${PROTOS:.proto=.pb-c.c}
BUILDFIRST= ${PROTOS:.proto=.pb-c.h}
CLEANFILES= ${PROTOS:.proto=.pb-c.c} ${PROTOS:.proto=.pb-c.h}
CFLAGS+= -I.
LDADD+= -lcrypto
.if !(make(clean) || make(cleandir) || make(obj))
CFLAGS+!= pkg-config --cflags libprotobuf-c sqlite3
LDADD+!= pkg-config --libs libprotobuf-c sqlite3
.endif
.SUFFIXES: .pb-c.c .pb-c.h .proto
.proto.pb-c.c .proto.pb-c.h:
protoc --c_out=. --proto_path=${.CURDIR} $<
.include <bsd.prog.mk>