-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.in
86 lines (66 loc) · 2.85 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
# Pound - the reverse-proxy load-balancer
# Copyright (C) 2002-2010 Apsis GmbH
#.
# This file is part of Pound.
#
# Pound is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Pound is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Contact information:
# Apsis GmbH
# P.O.Box
# 8707 Uetikon am See
# Switzerland
# EMail: [email protected]
#INCLUDES=-I/usr/local/modsecurity/include/ -L/usr/local/modsecurity/lib -Wl,-rpath=/usr/local/modsecurity/lib
CC=@PTHREAD_CC@ -g -ldl -rdynamic $(INCLUDES)
# TODO: add to configure
C_WAF=-DWAF=1
CFLAGS=-DF_CONF=\"@sysconfdir@/pound.cfg\" -DVERSION=\"@PACKAGE_VERSION@\" -DC_SSL=\"@C_SSL@\" -DC_T_RSA=\"@C_T_RSA@\" \
-DC_DH_LEN=\"@C_DH_LEN@\" -DC_MAXBUF=\"@C_MAXBUF@\" -DC_OWNER=\"@C_OWNER@\" -DC_GROUP=\"@C_GROUP@\" \
-DC_SUPER=\"@C_SUPER@\" -DC_CERT1L=\"@C_CERT1L@\" @CFLAGS@ @PTHREAD_CFLAGS@ @CPPFLAGS@ ${C_WAF}
LIBS=@LIBS@ @PTHREAD_LIBS@ -lmodsecurity -ldl
prefix=@prefix@
exec_prefix=@exec_prefix@
# Configuration file default; if none, look at config.c for default!
OBJS=pound.o http.o config.o svc.o pound_sync.o waf.o
all: pound poundctl pound.8 dh2048.pem
pound: $(OBJS)
${CC} @LDFLAGS@ -o pound $(OBJS) $(LIBS)
poundctl: poundctl.o
${CC} @LDFLAGS@ -pthread -o poundctl poundctl.o $(LIBS)
dh512.h:
openssl dhparam -5 -C -noout 512 > dh512.h
openssl dhparam -5 -C -noout @C_DH_LEN@ > dh@[email protected]
pound_sync.o: pound_sync.c pound_sync.h pound.h svc.h pound_sync_enum.h
${CC} -pthread -c -o pound_sync.o pound_sync.c
svc.o: svc.h svc.c pound_sync_enum.h dh512.h dh@[email protected]
${CC} ${CFLAGS} -c -o svc.o svc.c
dh2048.pem:
openssl dhparam -5 -out dh2048.pem 2048
$(OBJS) poundctl.o: pound.h config.h
install: all
@INSTALL@ -d ${DESTDIR}@sbindir@
@INSTALL@ -o @I_OWNER@ -g @I_GRP@ -m 555 pound ${DESTDIR}@sbindir@/pound
@INSTALL@ -o @I_OWNER@ -g @I_GRP@ -m 555 poundctl ${DESTDIR}@sbindir@/poundctl
@INSTALL@ -d ${DESTDIR}@mandir@/man8
@INSTALL@ -o @I_OWNER@ -g @I_GRP@ -m 644 pound.8 ${DESTDIR}@mandir@/man8/pound.8
@INSTALL@ -o @I_OWNER@ -g @I_GRP@ -m 644 poundctl.8 ${DESTDIR}@mandir@/man8/poundctl.8
clean:
rm -f pound $(OBJS) poundctl poundctl.o
rm -f dh512.h dh@[email protected]
distclean: clean
-rm -f config.h config.log config.status Makefile
uninstall:
-rm -f @sbindir@/pound @sbindir@/poundctl @mandir@/man8/pound.8 @mandir@/cat8/pound.8 @mandir@/man8/poundctl.8 @mandir@/cat8/poundctl.8