2 CFLAGS
=-std
=c99
-Wall
-Werror
-g
3 # Large files needed by GPGME
4 CFLAGS
+= -D_FILE_OFFSET_BITS
=64 -DLARGEFILE_SOURCE
=1
6 LDFLAGS
=-L
$(LIBDIR
) -lisds
7 BINS
=isdsclient login progressbar sendmultiple getsent getsignedsent \
8 loadreceivedmessage loadcmssignedsentmessage \
9 getreceived getsignedreceived \
10 getreceivedenvelope markasread markasreceived \
11 downloadmessagehash verifyreceivedhash computemessagehash \
12 loaddelivery getreceiveddelivery getreceivedsigneddelivery
14 .PHONY
: libisds depend
19 $(MAKE
) -C
$(LIBDIR
) all
22 $(CC
) $(CFLAGS
) -c
-o
$@
$<
24 isdsclient
: isdsclient.o common.o
25 $(CC
) $(LDFLAGS
) -o
$@
$^
27 login
: login.o common.o
28 $(CC
) $(LDFLAGS
) -o
$@
$^
30 progressbar
: progressbar.o common.o
31 $(CC
) $(LDFLAGS
) -o
$@
$^
33 sendmultiple
: sendmultiple.o common.o
34 $(CC
) $(LDFLAGS
) -o
$@
$^
36 getsent
: getsent.o common.o
37 $(CC
) $(LDFLAGS
) -o
$@
$^
39 getsignedsent
: getsignedsent.o common.o
40 $(CC
) $(LDFLAGS
) -o
$@
$^
42 loadreceivedmessage
: loadreceivedmessage.o common.o
43 $(CC
) $(LDFLAGS
) -o
$@
$^
45 loadcmssignedsentmessage
: loadcmssignedsentmessage.o common.o
46 $(CC
) $(LDFLAGS
) -o
$@
$^
48 getreceived
: getreceived.o common.o
49 $(CC
) $(LDFLAGS
) -o
$@
$^
51 getsignedreceived
: getsignedreceived.o common.o
52 $(CC
) $(LDFLAGS
) -o
$@
$^
54 getreceivedenvelope
: getreceivedenvelope.o common.o
55 $(CC
) $(LDFLAGS
) -o
$@
$^
57 downloadmessagehash
: downloadmessagehash.o common.o
58 $(CC
) $(LDFLAGS
) -o
$@
$^
60 verifyreceivedhash
: verifyreceivedhash.o common.o
61 $(CC
) $(LDFLAGS
) -o
$@
$^
63 computemessagehash
: computemessagehash.o common.o
64 $(CC
) $(LDFLAGS
) -o
$@
$^
66 markasread
: markasread.o common.o
67 $(CC
) $(LDFLAGS
) -o
$@
$^
69 markasreceived
: markasreceived.o common.o
70 $(CC
) $(LDFLAGS
) -o
$@
$^
72 loaddelivery
: loaddelivery.o common.o
73 $(CC
) $(LDFLAGS
) -o
$@
$^
75 getreceiveddelivery
: getreceiveddelivery.o common.o
76 $(CC
) $(LDFLAGS
) -o
$@
$^
78 getreceivedsigneddelivery
: getreceivedsigneddelivery.o common.o
79 $(CC
) $(LDFLAGS
) -o
$@
$^
83 -rm -f
$(BINS
) *.o output
86 LD_LIBRARY_PATH
=$(LIBDIR
) .
/$<
90 for F in
*.c
; do
cpp $(CFLAGS
) -MM
"$$F"; done
> Makefile.deps