willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 1 | # This makefile supports different OS and CPU setups. |
| 2 | # You should use it this way : |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 3 | # make TARGET=os CPU=cpu REGEX=lib |
Willy Tarreau | f2ef8c5 | 2007-07-11 09:19:31 +0200 | [diff] [blame] | 4 | # |
| 5 | # Some external components may be build with it, such dlmalloc : |
| 6 | # |
| 7 | # make DLMALLOC_SRC=/usr/local/src/dlmalloc.c |
willy tarreau | cee272f | 2006-03-19 21:16:26 +0100 | [diff] [blame] | 8 | |
willy tarreau | 750a472 | 2005-12-17 13:21:24 +0100 | [diff] [blame] | 9 | # Select target OS. TARGET must match a system for which COPTS and LIBS are |
| 10 | # correctly defined below. |
willy tarreau | 1c2ad21 | 2005-12-18 01:11:29 +0100 | [diff] [blame] | 11 | #TARGET = linux26 |
willy tarreau | 750a472 | 2005-12-17 13:21:24 +0100 | [diff] [blame] | 12 | TARGET = linux24 |
willy tarreau | 64a3cc3 | 2005-12-18 01:13:11 +0100 | [diff] [blame] | 13 | #TARGET = linux24e |
willy tarreau | 750a472 | 2005-12-17 13:21:24 +0100 | [diff] [blame] | 14 | #TARGET = linux22 |
| 15 | #TARGET = solaris |
willy tarreau | 750a472 | 2005-12-17 13:21:24 +0100 | [diff] [blame] | 16 | |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 17 | USE_POLL = 1 |
| 18 | |
| 19 | ifeq ($(TARGET),linux24e) |
| 20 | USE_EPOLL = 1 |
Willy Tarreau | de99e99 | 2007-04-16 00:53:59 +0200 | [diff] [blame] | 21 | USE_SEPOLL = 1 |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 22 | endif |
| 23 | |
| 24 | ifeq ($(TARGET),linux26) |
| 25 | USE_EPOLL = 1 |
Willy Tarreau | de99e99 | 2007-04-16 00:53:59 +0200 | [diff] [blame] | 26 | USE_SEPOLL = 1 |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 27 | endif |
| 28 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 29 | # pass CPU=<cpu_name> to make to optimize for a particular CPU |
| 30 | CPU = generic |
| 31 | #CPU = i586 |
| 32 | #CPU = i686 |
| 33 | #CPU = ultrasparc |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 34 | |
willy tarreau | 4373b96 | 2005-12-18 01:32:31 +0100 | [diff] [blame] | 35 | # By default, we use libc's regex. WARNING! On Solaris 8/Sparc, group |
| 36 | # references seem broken using libc ! Use pcre instead. |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 37 | REGEX=libc |
| 38 | #REGEX=pcre |
willy tarreau | 4373b96 | 2005-12-18 01:32:31 +0100 | [diff] [blame] | 39 | #REGEX=static-pcre |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 40 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 41 | # tools options |
| 42 | CC = gcc |
| 43 | LD = gcc |
| 44 | |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 45 | # This is the directory hosting include/pcre.h and lib/libpcre.* when REGEX=pcre |
willy tarreau | 2f6ba65 | 2005-12-17 13:57:42 +0100 | [diff] [blame] | 46 | PCREDIR := $(shell pcre-config --prefix 2>/dev/null || :) |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 47 | #PCREDIR=/usr/local |
| 48 | |
Willy Tarreau | 6d1a988 | 2007-01-07 02:03:04 +0100 | [diff] [blame] | 49 | # This is the directory hosting libtcpsplice.[ah] when USE_TCPSPLICE is set |
| 50 | TCPSPLICEDIR := |
| 51 | |
willy tarreau | 64a3cc3 | 2005-12-18 01:13:11 +0100 | [diff] [blame] | 52 | # This is for standard Linux 2.6 with netfilter and epoll() |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 53 | COPTS.linux26 = -DNETFILTER |
willy tarreau | 1c2ad21 | 2005-12-18 01:11:29 +0100 | [diff] [blame] | 54 | LIBS.linux26 = |
| 55 | |
willy tarreau | b952e1d | 2005-12-18 01:31:20 +0100 | [diff] [blame] | 56 | # This is for enhanced Linux 2.4 with netfilter and epoll() patch. |
| 57 | # Warning! If kernel is 2.4 with epoll-lt <= 0.21, then you must add |
| 58 | # -DEPOLL_CTL_MOD_WORKAROUND to workaround a very rare bug. |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 59 | #COPTS.linux24e = -DNETFILTER -DUSE_MY_EPOLL -DEPOLL_CTL_MOD_WORKAROUND |
| 60 | COPTS.linux24e = -DNETFILTER -DUSE_MY_EPOLL |
willy tarreau | 64a3cc3 | 2005-12-18 01:13:11 +0100 | [diff] [blame] | 61 | LIBS.linux24e = |
| 62 | |
| 63 | # This is for standard Linux 2.4 with netfilter but without epoll() |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 64 | COPTS.linux24 = -DNETFILTER |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 65 | LIBS.linux24 = |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 66 | |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 67 | # This is for Linux 2.2 |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 68 | COPTS.linux22 = -DUSE_GETSOCKNAME |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 69 | LIBS.linux22 = |
| 70 | |
| 71 | # This is for Solaris 8 |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 72 | COPTS.solaris = -fomit-frame-pointer -DFD_SETSIZE=65536 |
willy tarreau | 9da061b | 2005-12-17 12:29:56 +0100 | [diff] [blame] | 73 | LIBS.solaris = -lnsl -lsocket |
| 74 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 75 | # CPU dependant optimizations |
| 76 | COPTS.generic = -O2 |
Willy Tarreau | 390223b | 2006-10-15 23:43:42 +0200 | [diff] [blame] | 77 | COPTS.i586 = -O2 -march=i586 -DCONFIG_HAP_USE_REGPARM |
| 78 | COPTS.i686 = -O2 -march=i686 -DCONFIG_HAP_USE_REGPARM |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 79 | COPTS.ultrasparc = -O6 -mcpu=v9 -mtune=ultrasparc |
| 80 | |
| 81 | # options for standard regex library |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 82 | COPTS.libc= |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 83 | LIBS.libc= |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 84 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 85 | # options for libpcre |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 86 | COPTS.pcre=-DUSE_PCRE -I$(PCREDIR)/include |
| 87 | LIBS.pcre=-L$(PCREDIR)/lib -lpcreposix -lpcre |
| 88 | |
willy tarreau | 4373b96 | 2005-12-18 01:32:31 +0100 | [diff] [blame] | 89 | # options for static libpcre |
| 90 | COPTS.static-pcre=-DUSE_PCRE -I$(PCREDIR)/include |
| 91 | LIBS.static-pcre=-L$(PCREDIR)/lib -Wl,-Bstatic -lpcreposix -lpcre -Wl,-Bdynamic |
| 92 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 93 | # you can enable debug arguments with "DEBUG=-g" or disable them with "DEBUG=" |
willy tarreau | d38e72d | 2006-03-19 20:56:52 +0100 | [diff] [blame] | 94 | #DEBUG = -g -DDEBUG_MEMORY -DDEBUG_FULL |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 95 | DEBUG = -g |
willy tarreau | 9da061b | 2005-12-17 12:29:56 +0100 | [diff] [blame] | 96 | |
willy tarreau | 0174f31 | 2005-12-18 01:02:42 +0100 | [diff] [blame] | 97 | # if small memory footprint is required, you can reduce the buffer size. There |
| 98 | # are 2 buffers per concurrent session, so 16 kB buffers will eat 32 MB memory |
willy tarreau | 64a3cc3 | 2005-12-18 01:13:11 +0100 | [diff] [blame] | 99 | # with 1000 concurrent sessions. Putting it slightly lower than a page size |
willy tarreau | d38e72d | 2006-03-19 20:56:52 +0100 | [diff] [blame] | 100 | # will avoid the additionnal paramters to overflow a page. 8030 bytes is |
| 101 | # exactly 5.5 TCP segments of 1460 bytes. |
| 102 | #SMALL_OPTS = -DBUFSIZE=8030 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=1024 |
willy tarreau | 0174f31 | 2005-12-18 01:02:42 +0100 | [diff] [blame] | 103 | SMALL_OPTS = |
| 104 | |
willy tarreau | 1c2ad21 | 2005-12-18 01:11:29 +0100 | [diff] [blame] | 105 | # redefine this if you want to add some special PATH to include/libs |
| 106 | ADDINC = |
| 107 | ADDLIB = |
| 108 | |
| 109 | # set some defines when needed. |
willy tarreau | d38e72d | 2006-03-19 20:56:52 +0100 | [diff] [blame] | 110 | # - use -DTPROXY to compile with transparent proxy support. |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 111 | DEFINE = -DTPROXY |
willy tarreau | 0174f31 | 2005-12-18 01:02:42 +0100 | [diff] [blame] | 112 | |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 113 | # Now let's determine the version, sub-version and release date. |
| 114 | # If we're in the GIT tree, we can use the last commit's version and date. |
Willy Tarreau | 6620dbb | 2007-01-02 00:44:53 +0100 | [diff] [blame] | 115 | ifeq ($(IGNOREGIT),) |
Willy Tarreau | a1973c4 | 2007-04-09 22:07:11 +0200 | [diff] [blame] | 116 | VERSION := $(shell [ -d .git/. ] && ref=`git-describe --tags 2>/dev/null` && ref=$${ref%-g*} && echo "$${ref\#v}" ) |
Willy Tarreau | 6620dbb | 2007-01-02 00:44:53 +0100 | [diff] [blame] | 117 | endif |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 118 | |
| 119 | ifneq ($(VERSION),) |
| 120 | # OK git is there and works. |
Willy Tarreau | a1973c4 | 2007-04-09 22:07:11 +0200 | [diff] [blame] | 121 | SUBVERS := $(shell comms=`git-log --no-merges v$(VERSION).. 2>/dev/null |grep -c ^commit `; [ $$comms -gt 0 ] && echo "-$$comms" ) |
| 122 | VERDATE := $(shell date +%Y/%m/%d -d "`git-log HEAD^.. 2>/dev/null | grep -m 1 ^Date: | cut -f2- -d: | cut -f1 -d+`" ) |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 123 | else |
| 124 | # Otherwise, use the hard-coded version of last tag, number of changes |
| 125 | # since last tag, and release date. |
Willy Tarreau | b21152b | 2007-06-17 23:41:40 +0200 | [diff] [blame] | 126 | VERSION := 1.3.12 |
Willy Tarreau | 6620dbb | 2007-01-02 00:44:53 +0100 | [diff] [blame] | 127 | SUBVERS := |
Willy Tarreau | b21152b | 2007-06-17 23:41:40 +0200 | [diff] [blame] | 128 | VERDATE := 2007/06/17 |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 129 | endif |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 130 | |
| 131 | #### build options |
| 132 | |
| 133 | # do not change this one, enable USE_* variables instead. |
| 134 | OPTIONS = |
Willy Tarreau | b38651a | 2007-03-24 17:24:39 +0100 | [diff] [blame] | 135 | OPT_OBJS = |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 136 | |
Willy Tarreau | 6d1a988 | 2007-01-07 02:03:04 +0100 | [diff] [blame] | 137 | ifneq ($(USE_TCPSPLICE),) |
| 138 | OPTIONS += -DCONFIG_HAP_TCPSPLICE |
| 139 | endif |
| 140 | |
Willy Tarreau | b38651a | 2007-03-24 17:24:39 +0100 | [diff] [blame] | 141 | # - set USE_CTTPROXY to enable full transparent proxy support |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 142 | ifneq ($(USE_CTTPROXY),) |
| 143 | OPTIONS += -DCONFIG_HAP_CTTPROXY |
Willy Tarreau | b38651a | 2007-03-24 17:24:39 +0100 | [diff] [blame] | 144 | OPT_OBJS += src/cttproxy.o |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 145 | endif |
| 146 | |
| 147 | ifneq ($(USE_TPROXY),) |
| 148 | OPTIONS += -DTPROXY |
| 149 | endif |
| 150 | |
| 151 | ifneq ($(USE_POLL),) |
| 152 | OPTIONS += -DENABLE_POLL |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 153 | OPT_OBJS += src/ev_poll.o |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 154 | endif |
| 155 | |
| 156 | ifneq ($(USE_EPOLL),) |
| 157 | OPTIONS += -DENABLE_EPOLL |
Willy Tarreau | 4f60f16 | 2007-04-08 16:39:58 +0200 | [diff] [blame] | 158 | OPT_OBJS += src/ev_epoll.o |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 159 | endif |
| 160 | |
Willy Tarreau | de99e99 | 2007-04-16 00:53:59 +0200 | [diff] [blame] | 161 | ifneq ($(USE_SEPOLL),) |
| 162 | OPTIONS += -DENABLE_SEPOLL |
| 163 | OPT_OBJS += src/ev_sepoll.o |
| 164 | endif |
| 165 | |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 166 | ifneq ($(USE_MY_EPOLL),) |
| 167 | OPTIONS += -DUSE_MY_EPOLL |
| 168 | endif |
| 169 | |
| 170 | ifneq ($(USE_NETFILTER),) |
| 171 | OPTIONS += -DNETFILTER |
| 172 | endif |
| 173 | |
| 174 | ifneq ($(USE_EPOLL_WORKAROUND),) |
| 175 | OPTIONS += -DEPOLL_CTL_MOD_WORKAROUND |
| 176 | endif |
| 177 | |
| 178 | ifneq ($(USE_GETSOCKNAME),) |
| 179 | OPTIONS += -DUSE_GETSOCKNAME |
| 180 | endif |
| 181 | |
| 182 | ifneq ($(USE_REGPARM),) |
| 183 | OPTIONS += -DCONFIG_HAP_USE_REGPARM |
| 184 | endif |
| 185 | |
Willy Tarreau | f2ef8c5 | 2007-07-11 09:19:31 +0200 | [diff] [blame] | 186 | ifneq ($(DLMALLOC_SRC),) |
| 187 | # May be changed to patch PAGE_SIZE on every platform |
| 188 | DLMALLOC_THRES=4096 |
| 189 | OPT_OBJS += src/dlmalloc.o |
| 190 | endif |
| 191 | |
Willy Tarreau | 79b34bf | 2006-12-22 15:28:43 +0100 | [diff] [blame] | 192 | ifneq ($(VERSION),) |
| 193 | OPTIONS += -DCONFIG_HAPROXY_VERSION=\"$(VERSION)$(SUBVERS)\" |
| 194 | endif |
| 195 | |
| 196 | ifneq ($(VERDATE),) |
| 197 | OPTIONS += -DCONFIG_HAPROXY_DATE=\"$(VERDATE)\" |
| 198 | endif |
| 199 | |
Willy Tarreau | 77074d5 | 2006-11-12 23:57:19 +0100 | [diff] [blame] | 200 | #### end of build options |
| 201 | |
| 202 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 203 | # global options |
| 204 | TARGET_OPTS=$(COPTS.$(TARGET)) |
| 205 | REGEX_OPTS=$(COPTS.$(REGEX)) |
| 206 | CPU_OPTS=$(COPTS.$(CPU)) |
| 207 | |
Willy Tarreau | 6d1a988 | 2007-01-07 02:03:04 +0100 | [diff] [blame] | 208 | COPTS = -Iinclude $(CPU_OPTS) $(TARGET_OPTS) $(REGEX_OPTS) $(SMALL_OPTS) $(DEFINE) $(OPTIONS) |
| 209 | LIBS=$(LIBS.$(TARGET)) $(LIBS.$(REGEX)) |
| 210 | |
| 211 | ifneq ($(USE_TCPSPLICE),) |
| 212 | COPTS += -I$(TCPSPLICEDIR) |
| 213 | LIBS += -L$(TCPSPLICEDIR) -ltcpsplice |
| 214 | endif |
| 215 | |
| 216 | COPTS += $(ADDINC) |
| 217 | LIBS += $(ADDLIB) |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 218 | |
willy tarreau | d38e72d | 2006-03-19 20:56:52 +0100 | [diff] [blame] | 219 | CFLAGS = -Wall $(COPTS) $(DEBUG) |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 220 | LDFLAGS = -g |
| 221 | |
| 222 | all: haproxy |
| 223 | |
Willy Tarreau | 51041c7 | 2007-09-09 21:56:53 +0200 | [diff] [blame] | 224 | OBJS = src/haproxy.o src/sessionhash.o src/base64.o \ |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 225 | src/uri_auth.o src/standard.o src/buffers.o src/log.o src/task.o \ |
| 226 | src/time.o src/fd.o src/regex.o src/cfgparse.o src/server.o \ |
Willy Tarreau | 086b3b4 | 2007-05-13 21:45:51 +0200 | [diff] [blame] | 227 | src/checks.o src/queue.o src/client.o src/proxy.o \ |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 228 | src/proto_http.o src/stream_sock.o src/appsession.o src/backend.o \ |
Willy Tarreau | 50e608d | 2007-05-13 18:26:08 +0200 | [diff] [blame] | 229 | src/session.o src/hdr_idx.o src/ev_select.o src/acl.o src/memory.o |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 230 | |
Willy Tarreau | b38651a | 2007-03-24 17:24:39 +0100 | [diff] [blame] | 231 | haproxy: $(OBJS) $(OPT_OBJS) |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 232 | $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) |
| 233 | |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 234 | objsize: haproxy |
| 235 | @objdump -t $^|grep ' g '|grep -F '.text'|awk '{print $$5 FS $$6}'|sort |
| 236 | |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 237 | %.o: %.c |
| 238 | $(CC) $(CFLAGS) -c -o $@ $< |
| 239 | |
Willy Tarreau | f2ef8c5 | 2007-07-11 09:19:31 +0200 | [diff] [blame] | 240 | src/dlmalloc.o: $(DLMALLOC_SRC) |
| 241 | $(CC) $(CFLAGS) -DDEFAULT_MMAP_THRESHOLD=$(DLMALLOC_THRES) -c -o $@ $< |
| 242 | |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 243 | clean: |
Willy Tarreau | 1a58749 | 2006-10-15 23:40:58 +0200 | [diff] [blame] | 244 | rm -f *.[oas] src/*.[oas] core haproxy test |
| 245 | for dir in . src include/* doc; do rm -f $$dir/*~ $$dir/*.rej;done |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 246 | rm -f haproxy-$(VERSION).tar.gz haproxy-$(VERSION)$(SUBVERS).tar.gz |
| 247 | rm -f haproxy-$(VERSION) nohup.out gmon.out |
willy tarreau | efae184 | 2005-12-17 12:51:03 +0100 | [diff] [blame] | 248 | |
willy tarreau | e114bf9 | 2006-03-19 21:30:14 +0100 | [diff] [blame] | 249 | tar: clean |
willy tarreau | cee272f | 2006-03-19 21:16:26 +0100 | [diff] [blame] | 250 | ln -s . haproxy-$(VERSION) |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 251 | tar --exclude=haproxy-$(VERSION)/.git \ |
| 252 | --exclude=haproxy-$(VERSION)/haproxy-$(VERSION) \ |
| 253 | --exclude=haproxy-$(VERSION)/haproxy-$(VERSION).tar.gz \ |
| 254 | -cf - haproxy-$(VERSION)/* | gzip -c9 >haproxy-$(VERSION).tar.gz |
willy tarreau | cee272f | 2006-03-19 21:16:26 +0100 | [diff] [blame] | 255 | rm -f haproxy-$(VERSION) |
| 256 | |
Willy Tarreau | 9f0a901 | 2006-10-15 14:24:14 +0200 | [diff] [blame] | 257 | git-tar: clean |
Willy Tarreau | 9bf6c6e | 2006-12-23 11:12:04 +0100 | [diff] [blame] | 258 | git-tar-tree HEAD haproxy-$(VERSION) | gzip -9 > haproxy-$(VERSION)$(SUBVERS).tar.gz |