-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
86 lines (65 loc) · 1.95 KB
/
Makefile.in
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Makefile for qdkim
#
VERSION =
CFLAGS = -c -IQLIBDIR/include -DVERSION=\"${VERSION}\"
CFLAGS += -Wno-narrowing
LFLAGS =
LFLAGS += -LQLIBDIR -lqlibs
LFLAGS += -lcrypto
SRCS = dkim.cpp dns.cpp dkimbase.cpp dkimsign.cpp dkimverify.cpp
OBJS = $(SRCS:.cpp=.o)
default: all conf man
@echo Done!
all: libqdkim qdkimcrlf mkdkimkey qmail-sdkim qmail-vdkim
clean:
@echo -n Cleaning up ...
@rm -f *.o *.a *.tmp libqdkim qdkimcrlf Makefile qdkim.conf
@rm -f conf-qlibs conf-home
@rm -f mkdkimkey qmail-sdkim qmail-vdkim *.8 qdkim.conf.5
@echo " done!"
install: setup
setup:
@echo Installing qdkim
@./install
@echo ... done!
libqdkim.a: $(OBJS)
@rm -f libqdkim.a
ar cr libqdkim.a $(OBJS)
ranlib libqdkim.a
libqdkim: libqdkim.a libqdkim.o
g++ -o libqdkim libqdkim.o $(LFLAGS) -L . -lqdkim
# g++ -o libqdkim $(LFLAGS) libqdkim.o libqdkim.a
libqdkim.o: libqdkim.cpp
.cpp.o:
g++ $(CFLAGS) $<
qdkimcrlf:
cc -O2 $(CFLAGS) -Wall -c qdkimcrlf.c
cc -s -o qdkimcrlf qdkimcrlf.o $(LFLAGS)
mkdkimkey:
@echo creating $@
@cat warn-auto.sh $@.sh | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
@chmod 755 $@
qmail-sdkim:
@echo creating $@
@cat warn-auto.sh qmail-sdkim.sh | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
@chmod 755 $@
qmail-vdkim:
@echo creating $@
@cat warn-auto.sh qmail-vdkim.sh | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
@chmod 755 $@
conf:
@cat qdkim-conf.sh | sed s}QMAILHOME}"`head -1 conf-home`"}g > qdkim.conf
@chmod 644 qdkim.conf
man: mkdkimkey.8 qmail-sdkim.8 qmail-vdkim.8 qdkim.conf.5
@echo Creating man pages
@chmod 644 *.8 *.5
libqdkim.8:
@cat libqdkim.man | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
mkdkimkey.8:
@cat mkdkimkey.man | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
qmail-sdkim.8:
@cat qmail-sdkim.man | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
qmail-vdkim.8:
@cat qmail-vdkim.man | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@
qdkim.conf.5:
@cat qdkim.conf.man | sed s}QMAILHOME}"`head -1 conf-home`"}g > $@