CONTRIB: mod_defender: make the code build with the embedded includes

From now on the code only needs its embedded dependencies and does not
depend any more on external haproxy dependencies. It can now be built
as a standalone project.
This commit is contained in:
Willy Tarreau 2021-04-20 19:19:53 +02:00
parent fe5d501c4d
commit 131799fc97
3 changed files with 1 additions and 5 deletions

View File

@ -28,7 +28,7 @@ EVENT_INC := /usr/include
endif
CFLAGS += -g -Wall -pthread
INCS += -I../../include -I$(MOD_DEFENDER_SRC) -I$(APACHE2_INC) -I$(APR_INC) -I$(EVENT_INC)
INCS += -Iinclude -I$(MOD_DEFENDER_SRC) -I$(APACHE2_INC) -I$(APR_INC) -I$(EVENT_INC)
LIBS += -lpthread $(EVENT_LIB) -levent_pthreads -lapr-1 -laprutil-1 -lstdc++ -lm
CXXFLAGS = -g -std=gnu++11

View File

@ -18,10 +18,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <haproxy/api.h>
#include <haproxy/chunk.h>
#include <haproxy/spoe.h>
#include <haproxy/time.h>
#include <haproxy/tools.h>
#include <http_core.h>

View File

@ -31,7 +31,6 @@
#include <event2/event_struct.h>
#include <event2/thread.h>
#include <haproxy/chunk.h>
#include <haproxy/list.h>
#include <haproxy/spoe.h>