haproxy/contrib/spoa_example/Makefile
Eric Salama 8a9c6c2154 CONTRIB: spoa_example: allow to compile outside HAProxy.
Don't include haproxy's includes anymore and use a local copy instead.
2017-11-21 21:32:52 +01:00

27 lines
394 B
Makefile

DESTDIR =
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
CC = gcc
LD = $(CC)
CFLAGS = -g -O2 -Wall -Werror -pthread
LDFLAGS = -lpthread -levent -levent_pthreads
INCS += -I../../ebtree -I./include
LIBS =
OBJS = spoa.o
spoa: $(OBJS)
$(LD) $(LDFLAGS) $(LIBS) -o $@ $^
install: spoa
install spoa $(DESTDIR)$(BINDIR)
clean:
rm -f spoa $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) $(INCS) -c -o $@ $<