mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 23:44:41 +00:00
750a47265a
* fixed stats monitoring, and optimized some tv_* for most common cases. * replaced temporary 'newhdr' with 'trash' to reduce stack size * made HTTP errors more HTML-fiendly. * renamed strlcpy() to strlcpy2() because of a slightly difference between their behaviour (return value), to avoid confusion. * restricted HTTP messages to HTTP proxies only * added a 502 message when the connection has been refused by the server, to prevent clients from believing this is a zero-byte HTTP 0.9 reply. * changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when inserting a cookie, because some caches (apache) don't understand it. * fixed processing of server headers when client is in SHUTR state * automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after setpgid() * updated the Makefile and the Formilux build script
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# Select target OS. TARGET must match a system for which COPTS and LIBS are
|
|
# correctly defined below.
|
|
# You can set it on make's command line. eg: make TARGET=solaris
|
|
TARGET = linux24
|
|
#TARGET = linux22
|
|
#TARGET = solaris
|
|
#TARGET = solarisv9
|
|
#TARGET = openbsd
|
|
|
|
CC = gcc
|
|
LD = gcc
|
|
|
|
# This is for Linux 2.4 with netfilter
|
|
COPTS.linux24 = -O2 -DNETFILTER
|
|
LIBS.linux24 =
|
|
|
|
# This is for Linux 2.2
|
|
COPTS.linux22 = -O2 -DUSE_GETSOCKNAME
|
|
LIBS.linux22 =
|
|
|
|
# This is for Solaris 8
|
|
COPTS.solaris = -O2 -fomit-frame-pointer -DSOLARIS
|
|
LIBS.solaris = -lnsl -lsocket
|
|
|
|
# This is for Solaris 8 on UltraSparc2 processor
|
|
COPTS.solarisv9 = -O6 -mcpu=v9 -fomit-frame-pointer -DSOLARIS
|
|
LIBS.solarisv9 = -lnsl -lsocket
|
|
|
|
# This is for OpenBSD 3.0
|
|
COPTS.openbsd = -O2
|
|
LIBS.openbsd =
|
|
|
|
#DEBUG =
|
|
DEBUG = -g
|
|
|
|
COPTS=$(COPTS.$(TARGET))
|
|
LIBS=$(LIBS.$(TARGET))
|
|
|
|
# - use -DSTATTIME=0 to disable statistics, else specify an interval in
|
|
# milliseconds.
|
|
# - use -DTPROXY to compile with transparent proxy support.
|
|
CFLAGS = -Wall $(COPTS) $(DEBUG) -DSTATTIME=0 -DTPROXY
|
|
LDFLAGS = -g
|
|
|
|
all: haproxy
|
|
|
|
haproxy: haproxy.o
|
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.[oas] *~ core haproxy test nohup.out gmon.out
|
|
|