mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-25 06:02:08 +00:00
1f40b91a83
SPOA example has been Updated accordingly
27 lines
399 B
Makefile
27 lines
399 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../../include -I../../ebtree
|
|
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 $@ $<
|