blob: bf67c1f13fa4056127dfac5c969471ec33332868 [file] [log] [blame]
Willy Tarreaufc80e302020-05-27 11:05:33 +02001INCLUDE = -I../../include
Willy Tarreauff0e8a42020-05-27 10:43:24 +02002SRC = ../../src
Willy Tarreau6ee71752011-09-16 15:00:48 +02003
4CC = gcc
Willy Tarreaude5dc052012-06-09 09:44:03 +02005
6# note: it is recommended to also add -fomit-frame-pointer on i386
Willy Tarreaudb40a1c2009-11-17 10:08:17 +01007OPTIMIZE = -O3
Willy Tarreau72c28532009-01-22 18:56:50 +01008
Willy Tarreau419a5982012-06-12 08:52:22 +02009# most recent glibc provide platform-specific optimizations that make
10# memchr faster than the generic C implementation (eg: SSE and prefetch
11# on x86_64). Try with an without. In general, on x86_64 it's better to
12# use memchr using the define below.
13# DEFINE = -DUSE_MEMCHR
14DEFINE =
15
Willy Tarreaude5dc052012-06-09 09:44:03 +020016OBJS = halog
Willy Tarreau214c2032009-02-20 11:02:32 +010017
18halog: halog.c fgets2.c
Willy Tarreauff0e8a42020-05-27 10:43:24 +020019 $(CC) $(OPTIMIZE) $(DEFINE) -o $@ $(INCLUDE) $(SRC)/ebtree.c $(SRC)/eb32tree.c $(SRC)/eb64tree.c $(SRC)/ebmbtree.c $(SRC)/ebsttree.c $(SRC)/ebistree.c $(SRC)/ebimtree.c $^
Willy Tarreau72c28532009-01-22 18:56:50 +010020
Willy Tarreau72c28532009-01-22 18:56:50 +010021clean:
Willy Tarreau8ad41932012-06-12 07:59:16 +020022 rm -f $(OBJS) *.[oas]