~ubuntu-branches/ubuntu/vivid/haproxy/vivid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2008-06-20 00:38:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080620003850-hvvx94g2xz2l2xbg
Tags: 1.3.15.1-1
* New Upstream Version
* Upgrade standards version to 3.8.0 (no change needed).
* Build with TARGET=linux26 on linux, TARGET=generic on other systems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#   USE_STATIC_PCRE      : enable static libpcre. Recommended.
21
21
#   USE_TCPSPLICE        : enable tcp_splice() on Linux (needs kernel patch).
22
22
#   USE_TPROXY           : enable transparent proxy. Automatic.
 
23
#   USE_LINUX_TPROXY     : enable full transparent proxy (need kernel patch).
23
24
#
24
25
# Options can be forced by specifying "USE_xxx=1" or can be disabled by using
25
26
# "USE_xxx=" (empty string).
69
70
# following list (use the default "generic" if uncertain) :
70
71
#    generic, linux22, linux24, linux24e, linux24eold, linux26, solaris,
71
72
#    freebsd, openbsd, custom
72
 
TARGET = generic
 
73
TARGET =
73
74
 
74
75
#### TARGET CPU
75
76
# Use CPU=<cpu_name> to optimize for a particular CPU, among the following
308
309
BUILD_OPTIONS  += $(call ignore_implicit,USE_TPROXY)
309
310
endif
310
311
 
 
312
ifneq ($(USE_LINUX_TPROXY),)
 
313
OPTIONS_CFLAGS += -DCONFIG_HAP_LINUX_TPROXY
 
314
BUILD_OPTIONS  += $(call ignore_implicit,USE_LINUX_TPROXY)
 
315
endif
 
316
 
311
317
ifneq ($(USE_POLL),)
312
318
OPTIONS_CFLAGS += -DENABLE_POLL
313
319
OPTIONS_OBJS   += src/ev_poll.o
417
423
# add options at the beginning of the "ld" command line if needed.
418
424
LDOPTS = $(TARGET_LDFLAGS) $(OPTIONS_LDFLAGS) $(ADDLIB)
419
425
 
420
 
 
 
426
ifeq ($(TARGET),)
 
427
all:
 
428
        @echo
 
429
        @echo "Due to too many reports of suboptimized setups, building without"
 
430
        @echo "specifying the target is no longer supported. Please specify the"
 
431
        @echo "target OS in the TARGET variable, in the following form:"
 
432
        @echo
 
433
        @echo "   $ make TARGET=xxx"
 
434
        @echo
 
435
        @echo "Please choose the target among the following supported list :"
 
436
        @echo
 
437
        @echo "   linux26, linux24, linux24e, linux24eold, linux22, solaris"
 
438
        @echo "   freebsd, openbsd, custom, generic"
 
439
        @echo
 
440
        @echo "Use \"generic\" if you don't want any optimization, \"custom\" if you"
 
441
        @echo "want to precisely tweak every option, or choose the target which"
 
442
        @echo "matches your OS the most in order to gain the maximum performance"
 
443
        @echo "out of it. Please check the Makefile in case of doubts."
 
444
        @echo
 
445
        @exit 1
 
446
else
421
447
all: haproxy
 
448
endif
422
449
 
423
450
OBJS = src/haproxy.o src/sessionhash.o src/base64.o src/protocols.o \
424
451
       src/uri_auth.o src/standard.o src/buffers.o src/log.o src/task.o \