forked from cosignweblogin/cosign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
executable file
·75 lines (61 loc) · 1.91 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
srcdir= @srcdir@
CC= @CC@
ALL= common libsnet libcgi cgi html daemon
FILTERS= @FILTERS@
SERVER_TARGETS= cgi html daemon
TARGETS= ${SERVER_TARGETS} ${FILTERS}
OPTOPTS= @OPTOPTS@ @UNIVERSAL_OPTOPTS@
CFLAGS= ${OPTOPTS} @CFLAGS@
LDFLAGS= @LDFLAGS@
filters: ${FILTERS}
all: filters
server: ${ALL}
everything: ${ALL} filters
cgi daemon: version.o common libsnet
cgi: libcgi
${ALL}: version.o
${ALL} filters/apache filters/apache2 filters/lighttpd: FRC
cd $@; ${MAKE} ${MFLAGS} all
FRC:
clean:
rm -f version.o
for i in ${ALL} ${FILTERS} ; \
do (cd $$i; ${MAKE} ${MFLAGS} clean); \
done
VERSION=`date +%Y%m%d`
DISTDIR=../cosign-${VERSION}
test : everything
(cd tests && sh ./tests.sh)
dist : distclean
mkdir ${DISTDIR}
tar -c -f - -X EXCLUDE . | tar xpf - -C ${DISTDIR}
echo ${VERSION} > ${DISTDIR}/VERSION
sed -e "s@INTERNAL@${VERSION}@" \
< configure.ac > ${DISTDIR}/configure.ac
(cd "${DISTDIR}"; autoconf; rm -rf autom4te.cache)
sed -e "s@INTERNAL@${VERSION}@" < scripts/startup/configure.ac \
> ${DISTDIR}/scripts/startup/configure.ac
(cd "${DISTDIR}/scripts/startup"; autoconf; rm -rf autom4te.cache)
distclean: clean
( cd libsnet ; make distclean )
( cd libcgi ; make distclean )
rm -f config.log config.status config.cache Makefile \
libcgi/Makefile cgi/Makefile html/Makefile daemon/Makefile \
filters/apache/Makefile filters/apache2/Makefile \
common/Makefile version.c filters/common/cosignpaths.h \
scripts/startup/{debian,redhat}/{cosignd,monster} \
scripts/startup/solaris10/{cosign,cosign.xml}
rm -rf autom4te.cache
( cd tests && rm -rf *.testlog CA certs cosign openssl.cnf tmp )
install: @FILTERS@
for i in ${FILTERS}; \
do (cd $$i; ${MAKE} ${MFLAGS} install); \
done
install-server : server
for i in ${SERVER_TARGETS}; \
do (cd $$i; ${MAKE} ${MFLAGS} install); \
done
install-all : everything
for i in ${TARGETS}; \
do (cd $$i; ${MAKE} ${MFLAGS} install); \
done