blob: 680a5b730a1f86ffb2b2a84c047164a8e3d9fadb [file] [log] [blame]
Willy Tarreau45cb4fb2009-10-26 21:10:04 +01001EBTREE_DIR = ../../ebtree
Willy Tarreau0b9da8d2010-01-02 12:23:30 +01002INCLUDE = -I../../include -I$(EBTREE_DIR)
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 Tarreaude5dc052012-06-09 09:44:03 +02009OBJS = halog
Willy Tarreau214c2032009-02-20 11:02:32 +010010
11halog: halog.c fgets2.c
Willy Tarreauabe45b62010-10-28 20:33:46 +020012 $(CC) $(OPTIMIZE) -o $@ $(INCLUDE) $(EBTREE_DIR)/ebtree.c $(EBTREE_DIR)/eb32tree.c $(EBTREE_DIR)/eb64tree.c $(EBTREE_DIR)/ebmbtree.c $(EBTREE_DIR)/ebsttree.c $(EBTREE_DIR)/ebistree.c $(EBTREE_DIR)/ebimtree.c $^
Willy Tarreau72c28532009-01-22 18:56:50 +010013
Willy Tarreau72c28532009-01-22 18:56:50 +010014clean:
Willy Tarreau6ee71752011-09-16 15:00:48 +020015 rm -f $(OBJS)