Added HTTPD protocol module in configuration and Makefile
This commit is contained in:
10
gateway.cnf
10
gateway.cnf
@ -57,3 +57,13 @@ port=4006
|
|||||||
type=monitor
|
type=monitor
|
||||||
module=mysqlmon
|
module=mysqlmon
|
||||||
servers=server1,server2,server3
|
servers=server1,server2,server3
|
||||||
|
|
||||||
|
[HTTPD Service]
|
||||||
|
type=service
|
||||||
|
router=testroute
|
||||||
|
|
||||||
|
[HTTPD Listener]
|
||||||
|
type=listener
|
||||||
|
service=HTTPD Service
|
||||||
|
protocol=HTTPD
|
||||||
|
port=6444
|
||||||
|
|||||||
@ -18,9 +18,11 @@
|
|||||||
# Date Who Description
|
# Date Who Description
|
||||||
# 13/06/2013 Mark Riddoch Initial protocol module development
|
# 13/06/2013 Mark Riddoch Initial protocol module development
|
||||||
# 17/06/2013 Massimiliano Pinto Added mysql_common top both libraries
|
# 17/06/2013 Massimiliano Pinto Added mysql_common top both libraries
|
||||||
# 27/06/13 Vilho Raatikka Added logmanager-related libs and
|
# 27/06/2013 Vilho Raatikka Added logmanager-related libs and
|
||||||
# headers so that liblog_manager.so can
|
# headers so that liblog_manager.so can
|
||||||
# be linked in.
|
# be linked in.
|
||||||
|
# 09/07/2013 Massimiliano Pinto Added the HTTPD protocol module
|
||||||
|
#
|
||||||
include ../../../build_gateway.inc
|
include ../../../build_gateway.inc
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
LOGPATH := $(ROOT_PATH)/log_manager
|
||||||
@ -39,10 +41,12 @@ MYSQLBACKENDSRCS=mysql_backend.c mysql_common.c
|
|||||||
MYSQLBACKENDOBJ=$(MYSQLBACKENDSRCS:.c=.o)
|
MYSQLBACKENDOBJ=$(MYSQLBACKENDSRCS:.c=.o)
|
||||||
TELNETDSRCS=telnetd.c
|
TELNETDSRCS=telnetd.c
|
||||||
TELNETDOBJ=$(TELNETDSRCS:.c=.o)
|
TELNETDOBJ=$(TELNETDSRCS:.c=.o)
|
||||||
SRCS=$(MYSQLCLIENTSRCS) $(MYSQLBACKENDSRCS) $(TELNETDSRCS)
|
HTTPDSRCS=httpd.c
|
||||||
|
HTTPDOBJ=$(HTTPDSRCS:.c=.o)
|
||||||
|
SRCS=$(MYSQLCLIENTSRCS) $(MYSQLBACKENDSRCS) $(TELNETDSRCS) $(HTTPDSRCS)
|
||||||
OBJ=$(SRCS:.c=.o)
|
OBJ=$(SRCS:.c=.o)
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o
|
LIBS=$(UTILSPATH)/skygw_utils.o
|
||||||
MODULES=libMySQLClient.so libMySQLBackend.so libtelnetd.so
|
MODULES=libMySQLClient.so libMySQLBackend.so libtelnetd.so libHTTPD.so
|
||||||
|
|
||||||
all: $(MODULES)
|
all: $(MODULES)
|
||||||
|
|
||||||
@ -55,6 +59,9 @@ libMySQLBackend.so: $(MYSQLBACKENDOBJ)
|
|||||||
libtelnetd.so: $(TELNETDOBJ)
|
libtelnetd.so: $(TELNETDOBJ)
|
||||||
$(CC) $(LDFLAGS) $(TELNETDOBJ) $(LIBS) -o $@
|
$(CC) $(LDFLAGS) $(TELNETDOBJ) $(LIBS) -o $@
|
||||||
|
|
||||||
|
libHTTPD.so: $(HTTPDOBJ)
|
||||||
|
$(CC) $(LDFLAGS) $(HTTPDOBJ) $(LIBS) -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
$(CC) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user