From 525861cab3a82b5aa1a77865ba4587a2c5a05e69 Mon Sep 17 00:00:00 2001 From: vraatikka Date: Mon, 17 Jun 2013 18:05:53 +0300 Subject: [PATCH] Moved from query_classifier --- build_gateway.inc | 32 ++++++++++++++++++++++++++++++++ makefile.inc | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 build_gateway.inc create mode 100644 makefile.inc diff --git a/build_gateway.inc b/build_gateway.inc new file mode 100644 index 000000000..50289b58a --- /dev/null +++ b/build_gateway.inc @@ -0,0 +1,32 @@ +# +# This file includes all dynamically changing build-related +# variables. +# +# Modify to match with your needs. Do not commit any private +# changes to this file! +# + +# +# Set debug flags +# +# DEBUG := +# DEBUGGER := +# DEBUGGER_PATH := +# DEBUGGER_BIN := +# +# Set build env +# +UNIX := + +# +# Set path for root directory, that is, path to directory where +# makefile.inc and build_gateway.inc are located. +# ROOT_PATH is used in makefile. +# +ROOT_PATH := + +# MARIADB_SRC_PATH may be defined either as an environment variable or +# specifically here +ifndef $(MARIADB_SRC_PATH) + MARIADB_SRC_PATH := +endif diff --git a/makefile.inc b/makefile.inc new file mode 100644 index 000000000..a4cfdea62 --- /dev/null +++ b/makefile.inc @@ -0,0 +1,43 @@ +# +# This file is static. It handles the dynamic content of build.inc, +# for example, by setting compiler flags etc. + +# Changes to environment, such as building directories etc. are made to +# build_gateway.inc. +# A template file build_gateway_l2x64.inc is stored in directory 'config'. +# Template can't be used as such, but hopefully only little modifications are +# needed, such as setting build directory etc. +# + +#ifdef UNIX + DEL := rm -f + LINK := ln -s + COPY := cp + NOHUP := nohup +#endif + +#ifdef DEBUGGER + BACKGR := >> /dev/null & +#else + BACKGR := +#endif + +CFLAGS := -Wall +LDLIBS := $(LDLIBS) -lmysqld -lpthread +CPP_LDLIBS := -lstdc++ + +# +# Compiler flags, httpd arguments and debugger options +# +ifdef DEBUG + DEBUG_FLAGS := -DSS_DEBUG + CFLAGS := $(CFLAGS) -ggdb -O0 -pthread $(DEBUG_FLAGS) +endif + +ifdef DEBUGGER + DEBUG := Y + LAUNCH_DEBUGGER := $(NOHUP) $(DEBUGGER_PATH)/$(DEBUGGER_BIN) \ + $(DEBUGGER_PARAMS) +else + LAUNCH_DEBUGGER := +endif