mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-29 08:02:08 +00:00
074d65bf25
The goal is to have a collection of quick-n-dirty utilities that make debugging easier and that can easily be modified when needed. The first utility in this series is called "flags". For a given numeric argument, it reports the various known combinations of flags for channels, streams and so on. This way it's easy to copy-paste values from the CLI or from gdb and immediately know what state a stream-interface or connection is in.
13 lines
200 B
Makefile
13 lines
200 B
Makefile
INCLUDE = -I../../include -I../../ebtree
|
|
|
|
CC = gcc
|
|
OPTIMIZE = -O2
|
|
DEFINE =
|
|
OBJS = flags
|
|
|
|
flags: flags.c
|
|
$(CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^
|
|
|
|
clean:
|
|
rm -f $(OBJS) *.[oas] *~
|