ttls: return channel bindings on half round trip success
[freeradius.git] / Make.inc.in
index 6bde399..6950044 100644 (file)
@@ -26,15 +26,21 @@ top_srcdir  = @abs_top_srcdir@
 datarootdir    = @datarootdir@
 
 MAKE           = @MAKE@
+
+# Makeflags set within the makefile appear to be additive and override
+# flags set on the command line and the environmental variables
+MAKEFLAGS      = @MAKEFLAGS@
+
 CC             = @CC@
 RANLIB         = @RANLIB@
+IMACROS                = -imacros ${top_srcdir}/src/freeradius-devel/autoconf.h -imacros ${top_srcdir}/src/freeradius-devel/features.h
 INCLUDE                = -I${top_srcdir} -I${top_srcdir}/src
-CFLAGS         = $(INCLUDE) @CFLAGS@
+CFLAGS         = $(IMACROS) $(INCLUDE) -fno-strict-aliasing @CFLAGS@
 CPPFLAGS       = @CPPFLAGS@
 LIBPREFIX      = @LIBPREFIX@
 EXEEXT         = @EXEEXT@
 
-LIBTOOL                = @LIBTOOL@
+LIBTOOL                = JLIBTOOL
 ACLOCAL                = @ACLOCAL@
 AUTOCONF       = @AUTOCONF@
 AUTOHEADER     = @AUTOHEADER@
@@ -53,13 +59,9 @@ RADDBDIR     = ${raddbdir}
 RUNDIR         = ${localstatedir}/run/radiusd
 SBINDIR                = ${sbindir}
 RADIR          = ${radacctdir}
-LIBRADIUS      = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la
-
-LIBLTDL                = @LIBLTDL@
-INCLTDL                = @INCLTDL@
-CFLAGS         += $(INCLTDL)
+LIBRADIUS      = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la -l talloc
 
-#USE_SHARED_LIBS       = @USE_SHARED_LIBS@
+#USE_SHARED_LIBS = @USE_SHARED_LIBS@
 #USE_STATIC_LIBS = @USE_STATIC_LIBS@
 
 USE_SHARED_LIBS = yes
@@ -73,17 +75,19 @@ CFLAGS              += $(OPENSSL_INCLUDE)
 LIBREADLINE    = @LIBREADLINE@
 
 #
-#  SQL driver defines
+#  Version to use for packaging and other Make related things
 #
-SQL_ODBC_LIBS = @ODBC_LIBS@
-SQL_ODBC_INCLUDE = @ODBC_INCLUDE@
+RADIUSD_VERSION_STRING = @RADIUSD_VERSION_STRING@
 
-RADIUSD_MAJOR_VERSION  = @RADIUSD_MAJOR_VERSION@
-RADIUSD_MINOR_VERSION  = @RADIUSD_MINOR_VERSION@
-RADIUSD_VERSION                = @RADIUSD_VERSION@
+#
+#  This allows dlopen to do runtime checks for version mistmatches
+#  between what it was originally linked with, and the library it's
+#  actually loading.
+#
+#LDFLAGS += -release=$(RADIUSD_VERSION_STRING)
 
-MODULES                        = @MODULES@
-HOSTINFO               = @HOSTINFO@
+MODULES                = @MODULES@
+HOSTINFO       = @HOSTINFO@
 
 ifneq ($(WITH_OPENSSL_MD5),)
 LIBRADIUS_WITH_OPENSSL = 1
@@ -124,8 +128,8 @@ LINK_MODE.exe       = -static
 endif
 
 ifneq "$(LIBTOOL)" ""
-COMPILE.c      := $(LIBTOOL) --quiet --mode=compile $(CC)
-LINK.lib       := $(LIBTOOL) --quiet --mode=link $(CC) -release $(RADIUSD_VERSION) -rpath $(libdir) -o
+COMPILE.c      := $(LIBTOOL) --quiet --mode=compile $(CC) 
+LINK.lib       := $(LIBTOOL) --quiet --mode=link $(CC) -rpath $(libdir) -o
 LO             := lo
 LA             := la
 else
@@ -147,15 +151,3 @@ ifneq "$(findstring Darwin,$(shell uname -a))" ""
 LA             := dylib
 endif
 endif
-
-all: $(top_srcdir)/scripts/jlibtool
-
-$(top_srcdir)/scripts/jlibtool: $(top_srcdir)/scripts/jlibtool.c
-       $(CC) $^ -o $@
-
-# Add -module for normal libtool.  It doesn't like building "foo.la"
-# as a library unless you tell it to shut up, yes, I KNOW this is a module
-ifeq "$(findstring jlibtool,$(LIBTOOL))" ""
-  RLM_MOD = "-module"
-endif
-