mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-12 14:35:14 +00:00
010fdedc37
This is a very simple service that implement a "random" ip reputation service. It will return random scores for all checked IP addresses. It only shows you how to implement a ip reputation service or such kind of services using the SPOE.
25 lines
311 B
Makefile
25 lines
311 B
Makefile
DESTDIR =
|
|
PREFIX = /usr/local
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
CC = gcc
|
|
LD = $(CC)
|
|
|
|
CFLAGS = -g -O2 -Wall -Werror -pthread
|
|
LDFLAGS = -lpthread
|
|
|
|
OBJS = spoa.o
|
|
|
|
|
|
spoa: $(OBJS)
|
|
$(LD) $(LDFLAGS) -o $@ $^
|
|
|
|
install: spoa
|
|
install spoa $(DESTDIR)$(BINDIR)
|
|
|
|
clean:
|
|
rm -f spoa $(OBJS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|