Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 112 lines (95 sloc) 2.381 kb
c358c30 use HOSTINFO and RADIUS_VERSION variables
mcr authored
1 # -*- makefile -*-
5efe513 Changed comments calling the code Cistron to FreeRADIUS. Corrected some
cmiller authored
2 # Make.inc.in
e9afde3 Initial revision
aland authored
3 #
fa04309 Change a couple of Makefile.ins to plain Makefiles
miquels authored
4 # Version: $Id$
e9afde3 Initial revision
aland authored
5 #
6
7 # Location of files.
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10 sysconfdir = @sysconfdir@
11 localstatedir = @localstatedir@
12 libdir = @libdir@
abc73c0 Diego Elio Pettenò build: install libraries on package-specific paths
Flameeyes authored
13 pkglibdir = @libdir@/freeradius
e9afde3 Initial revision
aland authored
14 bindir = @bindir@
15 sbindir = @sbindir@
a04e4dc Get a variable "docdir" from configure, too.
nbk authored
16 docdir = @docdir@
e9afde3 Initial revision
aland authored
17 mandir = @mandir@
fea3d3a OK, datadir is now ${prefix}/share, which is what it's supposed
aland authored
18 datadir = @datadir@
19 dictdir = $(datadir)/freeradius
e9afde3 Initial revision
aland authored
20 logdir = @logdir@
5d4c979 Get the variable $(includedir) from autoconf, too.
nbk authored
21 includedir = @includedir@
e9afde3 Initial revision
aland authored
22 raddbdir = @raddbdir@
23 radacctdir = @radacctdir@
c358c30 use HOSTINFO and RADIUS_VERSION variables
mcr authored
24 top_builddir = @abs_top_builddir@
bbe2346 Alan DeKok Fixes for Libtool 2.6 and Autoconf 2.67
alandekok authored
25 top_build_prefix=@abs_top_builddir@/
0c45f72 update libtool and libltdl to 1.5.22, and improve the integration
fcusack authored
26 top_srcdir = @abs_top_srcdir@
0875064 Alan DeKok Add datarootdir from bug #51
alandekok authored
27 datarootdir = @datarootdir@
e9afde3 Initial revision
aland authored
28
7dcb918 Hmm, how does this work? My changelog is in doc/ChangeLog
miquels authored
29 MAKE = @MAKE@
e9afde3 Initial revision
aland authored
30 CC = @CC@
31 RANLIB = @RANLIB@
ce27f4e Alan DeKok What appears to be the definitive fix to libltl nonsense
alandekok authored
32 INCLUDE = -I${top_srcdir} -I${top_srcdir}/src
55011e1 Add support so using autoheader to generate autoconf.h, and add
phampson authored
33 CFLAGS = $(INCLUDE) @CFLAGS@
b5b88f5 Remember CPPFLAGS, too.
aland authored
34 CPPFLAGS = @CPPFLAGS@
1d10e1b * Added LIBPREFIX, set to "" on OS/2 and "lib" on Unix
miquels authored
35 LIBPREFIX = @LIBPREFIX@
5f3e8b8 Delete trailing whitespace.
nbk authored
36 EXEEXT = @EXEEXT@
e9afde3 Initial revision
aland authored
37
6802e4c set a variable LIBTOOL in Make.inc.in, so that the later
aland authored
38 LIBTOOL = @LIBTOOL@
aee4754 add checks for missing autoconf, autoheader, and aclocal.
aland authored
39 ACLOCAL = @ACLOCAL@
40 AUTOCONF = @AUTOCONF@
41 AUTOHEADER = @AUTOHEADER@
3501b0f ALWAYS use our own 'install-sh' program, as we cannot depend
aland authored
42 INSTALL = ${top_builddir}/install-sh -c
43 INSTALL_PROGRAM = ${INSTALL}
44 INSTALL_DATA = ${INSTALL} -m 644
45 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
a509084 Prevent stripping of executables, when devel flags are on.
cmiller authored
46 INSTALLSTRIP = @INSTALLSTRIP@
6802e4c set a variable LIBTOOL in Make.inc.in, so that the later
aland authored
47
e9afde3 Initial revision
aland authored
48 LCRYPT = @CRYPTLIB@
55011e1 Add support so using autoheader to generate autoconf.h, and add
phampson authored
49 LIBS = @LIBS@
50 LDFLAGS = @LDFLAGS@
e9afde3 Initial revision
aland authored
51
5273c74 Moved a number of definitions from configure-time substitution
aland authored
52 LOGDIR = ${logdir}
53 RADDBDIR = ${raddbdir}
7678456 Change run_dir default from /var/run to /var/run/radiusd.
fcusack authored
54 RUNDIR = ${localstatedir}/run/radiusd
5273c74 Moved a number of definitions from configure-time substitution
aland authored
55 SBINDIR = ${sbindir}
56 RADIR = ${radacctdir}
848545a Define LIBRADIUS
aland authored
57 LIBRADIUS = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la
e9afde3 Initial revision
aland authored
58
028d675 check if libltdl is to be installable, and set LIBLTDL and INCLTDL
aland authored
59 LIBLTDL = @LIBLTDL@
60 INCLTDL = @INCLTDL@
0c45f72 update libtool and libltdl to 1.5.22, and improve the integration
fcusack authored
61 LTDL_SUBDIRS = @LTDL_SUBDIRS@
668ec6f Alan DeKok Use INCLTDL in CFLAGS
alandekok authored
62 CFLAGS += $(INCLTDL)
81de230 define USE_SHARED_LIBS and USE_STATIC_LIBS in the top-level
aland authored
63
64 USE_SHARED_LIBS = @USE_SHARED_LIBS@
5b706db new configure option: --with-static-modules=QUOTED-MODULE-LIST
aland authored
65 USE_STATIC_LIBS = @USE_STATIC_LIBS@
66 STATIC_MODULES = @STATIC_MODULES@
a57f9b6 PostgreSQL configure checks, from a patch by
aland authored
67
c358c30 use HOSTINFO and RADIUS_VERSION variables
mcr authored
68 OPENSSL_LIBS = @OPENSSL_LIBS@
69 OPENSSL_INCLUDE = @OPENSSL_INCLUDE@
70
ea53115 Alan DeKok -lreadline && getpeereid checks
alandekok authored
71 LIBREADLINE = @LIBREADLINE@
72
a57f9b6 PostgreSQL configure checks, from a patch by
aland authored
73 #
81bf6d9 Modified the rlm_sql driver Makefiles to use the new autoconf values. Re...
mmachado authored
74 # SQL driver defines
a57f9b6 PostgreSQL configure checks, from a patch by
aland authored
75 #
d953110 Copied MySQL checks to similar code for Oracle && ODBC.
aland authored
76 SQL_ODBC_LIBS = @ODBC_LIBS@
77 SQL_ODBC_INCLUDE = @ODBC_INCLUDE@
81bf6d9 Modified the rlm_sql driver Makefiles to use the new autoconf values. Re...
mmachado authored
78
b143c50 removed no longer needed define for WITH_THREAD_POOL
aland authored
79 RADIUSD_MAJOR_VERSION = @RADIUSD_MAJOR_VERSION@
80 RADIUSD_MINOR_VERSION = @RADIUSD_MINOR_VERSION@
8712acd centralized the handling of the version number, prior to going
aland authored
81 RADIUSD_VERSION = @RADIUSD_VERSION@
b143c50 removed no longer needed define for WITH_THREAD_POOL
aland authored
82
4c037b2 After configuring for only certain modules, we should only build
aland authored
83 MODULES = @MODULES@
55011e1 Add support so using autoheader to generate autoconf.h, and add
phampson authored
84 HOSTINFO = @HOSTINFO@
3826e70 Ensure that the libraries are set up right if we're using
aland authored
85
86 ifneq ($(WITH_OPENSSL_MD5),)
87 LIBRADIUS_WITH_OPENSSL = 1
88 CFLAGS += -DWITH_OPENSSL_MD5
89 endif
90
91 ifneq ($(WITH_OPENSSL_SHA1),)
92 LIBRADIUS_WITH_OPENSSL = 1
93 CFLAGS += -DWITH_OPENSSL_SHA1
94 endif
95
96 ifneq ($(LIBRADIUS_WITH_OPENSSL),)
97 ifeq ($(OPENSSL_LIBS),)
98 $(error OPENSSL_LIBS must be define in order to use WITH_OPENSSL_*)
99 else
100 LIBRADIUS += $(OPENSSL_LIBS)
101 endif
102 endif
7621735 Alan DeKok Added scan targets for LLVM checker
alandekok authored
103
104 # http://clang.llvm.org/StaticAnalysis.html
e44e71d Alan DeKok Fix issues found by LLVM checker.
alandekok authored
105 #
f54e0ab Alan DeKok Simplified use of llvm checker
alandekok authored
106 # $ make SCAN=/path/to/checker/
e44e71d Alan DeKok Fix issues found by LLVM checker.
alandekok authored
107 #
aad311a Alan DeKok Fix typo in c0d32bd24
alandekok authored
108 ifneq ($(SCAN),)
f54e0ab Alan DeKok Simplified use of llvm checker
alandekok authored
109 CC := $(SCAN)/scan-build gcc -DFR_SCAN_BUILD
110 LIBTOOL :=
e44e71d Alan DeKok Fix issues found by LLVM checker.
alandekok authored
111 endif
Something went wrong with that request. Please try again.