-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (56 loc) · 1.88 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
UNAME := $(shell uname)
DATE := $(shell date +%Y%m%d)
VERSION := $(shell git rev-parse --short HEAD)
GOLDFLAGS += -X main.Version=$(DATE)_$(VERSION)
GOFLAGS = -ldflags "$(GOLDFLAGS) -s -w"
all: asncheck badhelo badrcptto bouncelimit checkpassword-client checkpassword-server chpasswd deliver filterservice greylist messageid mfcheck rblcheck rcpt-verify returnpath rwlcheck sessionid spfcheck trust-log
clean:
rm asncheck badhelo badrcptto bouncelimit checkpassword-client checkpassword-server chpasswd deliver filterservice greylist messageid mfcheck rblcheck rcpt-verify returnpath rwlcheck sessionid spfcheck trust-log
asncheck: FORCE
go build $(GOFLAGS) asncheck.go
badhelo:
gcc -O2 -D_FORTIFY_SOURCE -o badhelo badhelo.c
strip badhelo
badrcptto: FORCE
go build $(GOFLAGS) badrcptto.go
bouncelimit:
gcc -O2 -D_FORTIFY_SOURCE -o bouncelimit bouncelimit.c
strip bouncelimit
checkpassword-client: FORCE
go build $(GOFLAGS) checkpassword-client.go
checkpassword-server: FORCE
go build $(GOFLAGS) checkpassword-server.go
chpasswd: FORCE
go build $(GOFLAGS) chpasswd.go
deliver: FORCE
go build $(GOFLAGS) deliver.go
filterservice: FORCE
go build $(GOFLAGS) filterservice.go
greylist: FORCE
go build $(GOFLAGS) greylist.go
messageid:
gcc -O2 -D_FORTIFY_SOURCE -luuid -o messageid messageid.c
strip messageid
mfcheck: FORCE
go build $(GOFLAGS) mfcheck.go
rblcheck:
gcc -O2 -D_FORTIFY_SOURCE -o rblcheck rblcheck.c
strip rblcheck
rcpt-verify: FORCE
go build $(GOFLAGS) rcpt-verify.go
returnpath:
gcc -O2 -D_FORTIFY_SOURCE -o returnpath returnpath.c
strip returnpath
rwlcheck:
gcc -O2 -D_FORTIFY_SOURCE -o rwlcheck rwlcheck.c
strip rwlcheck
sessionid:
# requires libuuid-devel on CentOS 7
gcc -O2 -D_FORTIFY_SOURCE -luuid -o sessionid sessionid.c
strip sessionid
spfcheck: FORCE
go build $(GOFLAGS) spfcheck.go
trust-log:
gcc -O2 -D_FORTIFY_SOURCE -o trust-log trust-log.c
strip trust-log
FORCE: ;