charon-tkm: Support for out-of-tree build added
This commit is contained in:
+11
-11
@@ -1,23 +1,23 @@
|
|||||||
SRC = $(top_builddir)/src
|
SRC = $(abs_top_srcdir)/src
|
||||||
|
OBJ = $(abs_top_builddir)/src
|
||||||
|
|
||||||
# includes relative to obj directory
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-include $(top_builddir)/config.h \
|
-include $(abs_top_builddir)/config.h \
|
||||||
-I../$(SRC)/libstrongswan \
|
-I$(SRC)/libstrongswan \
|
||||||
-I../$(SRC)/libhydra \
|
-I$(SRC)/libhydra \
|
||||||
-I../$(SRC)/libcharon
|
-I$(SRC)/libcharon
|
||||||
|
|
||||||
LIBLD = \
|
LIBLD = \
|
||||||
-L$(SRC)/libstrongswan/.libs \
|
-L$(OBJ)/libstrongswan/.libs \
|
||||||
-L$(SRC)/libhydra/.libs \
|
-L$(OBJ)/libhydra/.libs \
|
||||||
-L$(SRC)/libcharon/.libs
|
-L$(OBJ)/libcharon/.libs
|
||||||
LIBPT = $(SRC)/libstrongswan/.libs:$(SRC)/libhydra/.libs:$(SRC)/libcharon/.libs
|
LIBPT = $(OBJ)/libstrongswan/.libs:$(OBJ)/libhydra/.libs:$(OBJ)/libcharon/.libs
|
||||||
LIBFL = -lstrongswan -lhydra -lcharon
|
LIBFL = -lstrongswan -lhydra -lcharon
|
||||||
|
|
||||||
DEFS += -DPLUGINS=\""$(PLUGINS)\"" -DIPSEC_PIDDIR=\"${piddir}\"
|
DEFS += -DPLUGINS=\""$(PLUGINS)\"" -DIPSEC_PIDDIR=\"${piddir}\"
|
||||||
|
|
||||||
BUILD_OPTS = \
|
BUILD_OPTS = \
|
||||||
-XOBJ_DIR=$(CURDIR)/obj \
|
-XOBJ_DIR=$(abs_builddir)/obj \
|
||||||
-cargs $(AM_CPPFLAGS) $(DEFS) \
|
-cargs $(AM_CPPFLAGS) $(DEFS) \
|
||||||
-largs $(LIBLD) $(LIBFL)
|
-largs $(LIBLD) $(LIBFL)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ project Build_Common is
|
|||||||
|
|
||||||
for Source_Dirs use ();
|
for Source_Dirs use ();
|
||||||
|
|
||||||
Obj_Dir := "obj";
|
Obj_Dir := external ("OBJ_DIR", "obj");
|
||||||
|
|
||||||
C_Compiler_Switches := ("-W",
|
C_Compiler_Switches := ("-W",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
|
|||||||
Reference in New Issue
Block a user