Willy Tarreau | 45cb4fb | 2009-10-26 21:10:04 +0100 | [diff] [blame] | 1 | EBTREE_DIR = ../../ebtree |
Willy Tarreau | 0b9da8d | 2010-01-02 12:23:30 +0100 | [diff] [blame] | 2 | INCLUDE = -I../../include -I$(EBTREE_DIR) |
Willy Tarreau | 6ee7175 | 2011-09-16 15:00:48 +0200 | [diff] [blame] | 3 | |
| 4 | CC = gcc |
Willy Tarreau | de5dc05 | 2012-06-09 09:44:03 +0200 | [diff] [blame] | 5 | |
| 6 | # note: it is recommended to also add -fomit-frame-pointer on i386 |
Willy Tarreau | db40a1c | 2009-11-17 10:08:17 +0100 | [diff] [blame] | 7 | OPTIMIZE = -O3 |
Willy Tarreau | 72c2853 | 2009-01-22 18:56:50 +0100 | [diff] [blame] | 8 | |
Willy Tarreau | de5dc05 | 2012-06-09 09:44:03 +0200 | [diff] [blame] | 9 | OBJS = halog |
Willy Tarreau | 214c203 | 2009-02-20 11:02:32 +0100 | [diff] [blame] | 10 | |
| 11 | halog: halog.c fgets2.c |
Willy Tarreau | abe45b6 | 2010-10-28 20:33:46 +0200 | [diff] [blame] | 12 | $(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 Tarreau | 72c2853 | 2009-01-22 18:56:50 +0100 | [diff] [blame] | 13 | |
Willy Tarreau | 72c2853 | 2009-01-22 18:56:50 +0100 | [diff] [blame] | 14 | clean: |
Willy Tarreau | 6ee7175 | 2011-09-16 15:00:48 +0200 | [diff] [blame] | 15 | rm -f $(OBJS) |