mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 05:54:39 +00:00
57dc283014
Libraries should always be listed last. Should be backported to 1.8. Signed-off-by: Christian Ruppert <idl0r@qasl.de>
26 lines
384 B
Makefile
26 lines
384 B
Makefile
DESTDIR =
|
|
PREFIX = /usr/local
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
CC = gcc
|
|
LD = $(CC)
|
|
|
|
CFLAGS = -g -O2 -Wall -Werror -pthread
|
|
INCS += -I../../ebtree -I./include
|
|
LIBS = -lpthread -levent -levent_pthreads
|
|
|
|
OBJS = spoa.o
|
|
|
|
|
|
spoa: $(OBJS)
|
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
install: spoa
|
|
install spoa $(DESTDIR)$(BINDIR)
|
|
|
|
clean:
|
|
rm -f spoa $(OBJS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(INCS) -c -o $@ $<
|