1 |
#------------------------------------------------------------------------------ |
2 |
# |
3 |
# oooo o8o .o8 .oooooo..o ooooooooo. oooooooooooo |
4 |
# `888 `"' "888 d8P' `Y8 `888 `Y88. `888' `8 |
5 |
# 888 oooo 888oooo. Y88bo. 888 .d88' 888 |
6 |
# 888 `888 d88' `88b `"Y8888o. 888ooo88P' 888oooo8 |
7 |
# 888 888 888 888 `"Y88b 888 888 " |
8 |
# 888 888 888 888 oo .d8P 888 888 |
9 |
# o888o o888o `Y8bod8P' 8""88888P' o888o o888o |
10 |
# |
11 |
#------------------------------------------------------------------------------- |
12 |
# An ANSI C Implementation of the Sender Policy Framework |
13 |
#------------------------------------------------------------------------------- |
14 |
# |
15 |
# File: Makefile.am |
16 |
# Author: James Couzens <jcouzens@codeshare.ca> |
17 |
# Date: June 15, 2004 |
18 |
# Info: Makefile base for Autotools for the libSPF library |
19 |
# ------------------------------------------------------------------------------ |
20 |
|
21 |
AUTOMAKE_OPTIONS = foreign |
22 |
|
23 |
# ------------------------------------------------------------------------------ |
24 |
# Compiler Flags |
25 |
# ------------------------------------------------------------------------------ |
26 |
|
27 |
if GCC |
28 |
AM_CFLAGS = -D_BSD_SOURCE |
29 |
endif |
30 |
|
31 |
# ------------------------------------------------------------------------------ |
32 |
# Build subdirectoriee |
33 |
# ------------------------------------------------------------------------------ |
34 |
|
35 |
SUBDIRS = src |
36 |
EXTRA_DIST = \ |
37 |
docs/spfqtool \ |
38 |
docs/qmail \ |
39 |
docs/qmail/1.03 \ |
40 |
docs/qmail/1.04 \ |
41 |
docs/qmail/1.05 \ |
42 |
docs/Sendmail \ |
43 |
docs/Sendmail/8.12.x \ |
44 |
docs/Sendmail/8.13.x \ |
45 |
docs/Postfix \ |
46 |
docs/Postfix/2.1.x \ |
47 |
docs/Courier-MTA \ |
48 |
docs/API \ |
49 |
docs/RFC \ |
50 |
docs/README \ |
51 |
docs/history \ |
52 |
build_tools/bewm.sh \ |
53 |
examples \ |
54 |
examples/qmail \ |
55 |
examples/Sendmail \ |
56 |
patches \ |
57 |
patches/Courier-MTA \ |
58 |
patches/qmail \ |
59 |
patches/Sendmail \ |
60 |
patches/Sendmail/8.12.x \ |
61 |
patches/Sendmail/8.13.x \ |
62 |
patches/Postfix \ |
63 |
patches/Postfix/2.1.x \ |
64 |
patches/README \ |
65 |
AUTHORS \ |
66 |
README \ |
67 |
FAQ \ |
68 |
VERSION \ |
69 |
LICENSE \ |
70 |
CHANGELOG |
71 |
|
72 |
# ------------------------------------------------------------------------------ |
73 |
# LIBTOOL dependancies |
74 |
# ------------------------------------------------------------------------------ |
75 |
|
76 |
LIBTOOL_DEPS = @LIBTOOL_DEPS@ |
77 |
libtool: $(LIBTOOL_DEPS) |
78 |
$(SHELL) ./config.status --recheck |
79 |
|
80 |
distclean-generic: |
81 |
rm -rf ./bin |
82 |
rm -rf ./lib |
83 |
rm -f Makefile |
84 |
rm -f src/spfmilter/Makefile |
85 |
rm -rf src/spfmilter/.deps |
86 |
rm -f stamp* |
87 |
|
88 |
clean-local: |
89 |
@[ -d ./bin ] || rm -rf ./bin |
90 |
@[ -d ./lib ] || rm -rf ./lib |
91 |
rm -f stamp* |
92 |
|
93 |
|
94 |
# ------------------------------------------------------------------------------ |
95 |
# test |
96 |
# ------------------------------------------------------------------------------ |
97 |
|
98 |
test : |
99 |
if test -x "/usr/bin/perl"; then \ |
100 |
cd src/spfqtool; \ |
101 |
/usr/bin/perl test.pl; \ |
102 |
elif test -x "/usr/local/bin/perl"; then \ |
103 |
cd src/spfqtool; \ |
104 |
/usr/local/bin/perl test.pl; \ |
105 |
elif test -x "/bin/perl"; then \ |
106 |
cd src/spfqtool; \ |
107 |
/bin/perl test.pl; \ |
108 |
fi; |
109 |
|
110 |
|
111 |
# ------------------------------------------------------------------------------ |
112 |
# test_valgrind |
113 |
# ------------------------------------------------------------------------------ |
114 |
|
115 |
test_valgrind : |
116 |
if test -x "/usr/bin/perl"; then \ |
117 |
cd src/spfqtool; \ |
118 |
/usr/bin/perl test_valgrind.pl; \ |
119 |
elif test -x "/usr/local/bin/perl"; then \ |
120 |
cd src/spfqtool; \ |
121 |
/usr/local/bin/perl test_valgrind.pl; \ |
122 |
elif test -x "/bin/perl"; then \ |
123 |
cd src/spfqtool; \ |
124 |
/bin/perl test_valgrind.pl; \ |
125 |
fi; |
126 |
|
127 |
# end of Makefile.am |