Fix changelog syntax
[freeradius.git] / Make.inc.in
1 # -*- makefile -*-
2 # Make.inc.in
3 #
4 # Version:      $Id$
5 #
6
7 # Location of files.
8 prefix          = @prefix@
9 exec_prefix     = @exec_prefix@
10 sysconfdir      = @sysconfdir@
11 localstatedir   = @localstatedir@
12 libdir          = @libdir@
13 bindir          = @bindir@
14 sbindir         = @sbindir@
15 docdir          = @docdir@
16 mandir          = @mandir@
17 datadir         = @datadir@
18 dictdir         = @dictdir@
19 logdir          = @logdir@
20 includedir      = @includedir@
21
22 #
23 #  In some systems, we don't want to over-write ANY configuration.
24 #  So we do:
25 #
26 #       $./configure
27 #       $ make
28 #       $ make -Draddbdir=/tmp/garbage install
29 #
30 #  and all of the configuration files go into /tmp/garbage
31 #
32 ifeq "${raddbdir}" ""
33 raddbdir        = @raddbdir@
34 endif
35 modconfdir      = @modconfdir@
36 radacctdir      = @radacctdir@
37 top_builddir    = @abs_top_builddir@
38 top_build_prefix=@abs_top_builddir@/
39 top_srcdir      = @abs_top_srcdir@
40 datarootdir     = @datarootdir@
41
42 MAKE            = @MAKE@
43
44 # Makeflags set within the makefile appear to be additive and override
45 # flags set on the command line and the environmental variables
46 MAKEFLAGS       = @FR_MAKEFLAGS@
47
48 CC              = @CC@
49 RANLIB          = @RANLIB@
50 INCLUDE         = -I. -Isrc \
51                   -include src/freeradius-devel/autoconf.h \
52                   -include src/freeradius-devel/build.h \
53                   -include src/freeradius-devel/features.h \
54                   -include src/freeradius-devel/radpaths.h
55 CFLAGS          = $(INCLUDE) -fno-strict-aliasing @CFLAGS@
56 CPPFLAGS        = @CPPFLAGS@
57 LIBPREFIX       = @LIBPREFIX@
58 EXEEXT          = @EXEEXT@
59
60 LIBTOOL         = JLIBTOOL
61 ACLOCAL         = @ACLOCAL@
62 AUTOCONF        = @AUTOCONF@
63 AUTOHEADER      = @AUTOHEADER@
64 INSTALL         = ${top_builddir}/install-sh -c
65 INSTALL_PROGRAM = ${INSTALL}
66 INSTALL_DATA    = ${INSTALL} -m 644
67 INSTALL_SCRIPT  = ${INSTALL_PROGRAM}
68 INSTALLSTRIP    = @INSTALLSTRIP@
69
70 #
71 #  Linker arguments for libraries searched for by the main
72 #  configure script.
73 #
74 TALLOC_LIBS     = @TALLOC_LIBS@
75 TALLOC_LDFLAGS  = @TALLOC_LDFLAGS@
76
77 OPENSSL_LIBS    = @OPENSSL_LIBS@
78 OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@
79 OPENSSL_CPPFLAGS = @OPENSSL_CPPFLAGS@
80
81 PCAP_LIBS       = @PCAP_LIBS@
82 PCAP_LDFLAGS    = @PCAP_LDFLAGS@
83
84 COLLECTDC_LIBS  = @COLLECTDC_LIBS@
85 COLLECTDC_LDFLAGS = @COLLECTDC_LDFLAGS@
86
87 LCRYPT          = @CRYPTLIB@
88
89 #
90 #  OpenSSL libs (if used) must be linked everywhere in order for
91 #  the server to work properly on on all platforms.
92 #
93 LIBS            = $(OPENSSL_LIBS) $(TALLOC_LIBS) @LIBS@
94 LDFLAGS         = $(OPENSSL_LDFLAGS) $(TALLOC_LDFLAGS) @LDFLAGS@
95
96 LOGDIR          = ${logdir}
97 RADDBDIR        = ${raddbdir}
98 RUNDIR          = ${localstatedir}/run/radiusd
99 SBINDIR         = ${sbindir}
100 RADIR           = ${radacctdir}
101 LIBRADIUS       = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la $(TALLOC_LIBS)
102
103 USE_SHARED_LIBS = @USE_SHARED_LIBS@
104 bm_shared_libs  = @USE_SHARED_LIBS@
105 USE_STATIC_LIBS = @USE_STATIC_LIBS@
106 bm_static_libs  = @USE_STATIC_LIBS@
107
108 STATIC_MODULES  = @STATIC_MODULES@
109 LIBREADLINE     = @LIBREADLINE@
110
111 WITH_DHCP       = @WITH_DHCP@
112
113 #
114 #  Version to use for packaging and other Make related things
115 #
116 RADIUSD_VERSION_STRING = @RADIUSD_VERSION_STRING@
117
118 #
119 #  This allows dlopen to do runtime checks for version mismatches
120 #  between what it was originally linked with, and the library it's
121 #  actually loading.
122 #
123 MODULES         = @MODULES@
124 HOSTINFO        = @HOSTINFO@
125
126 #
127 #  If the system has OpenSSL, use it's version of MD4/MD5/SHA1, instead of
128 #  using ours.
129 #
130 #  We don't use OpenSSL SHA1 by default because src/modules/rlm_eap/libeap/fips186prf.c
131 #  needs access to the SHA internals.
132 #
133 ifeq "$(WITH_OPENSSL)" "yes"
134 CFLAGS          +=  -DWITH_OPENSSL_MD4 -DWITH_OPENSSL_MD5
135 CPPFLAGS        := "$(OPENSSL_CPPFLAGS) $(CPPFLAGS)"
136 endif
137
138 OPENSSL_LIBS    = @OPENSSL_LIBS@
139
140 ifneq ($(WITH_OPENSSL_MD5),)
141 LIBRADIUS_WITH_OPENSSL = 1
142 CFLAGS += -DWITH_OPENSSL_MD5
143 endif
144
145 ifneq ($(WITH_OPENSSL_SHA1),)
146 LIBRADIUS_WITH_OPENSSL = 1
147 CFLAGS += -DWITH_OPENSSL_SHA1
148 endif
149
150 ifneq ($(LIBRADIUS_WITH_OPENSSL),)
151 ifeq ($(OPENSSL_LIBS),)
152 $(error OPENSSL_LIBS must be define in order to use WITH_OPENSSL_*)
153 else
154 LIBRADIUS += $(OPENSSL_LIBS)
155 endif
156 endif
157
158 # Path to clang, setting this enables the 'scan.*' build targets
159 # which perform static analysis on various server components.
160 ANALYZE.c       := @clang_path@
161
162 #
163 #  With shared libs, the test binaries are in a different place
164 #  AND the method we use to run those binaries changes.
165 #
166 ifeq "$(USE_SHARED_LIBS)" "yes"
167         TESTBINDIR = ./$(BUILD_DIR)/bin/local
168         TESTBIN    =  FR_LIBRARY_PATH=./build/lib/.libs $(JLIBTOOL) --quiet --mode=execute $(TESTBINDIR)
169 else
170         TESTBINDIR = ./$(BUILD_DIR)/bin
171         TESTBIN    = ./$(BUILD_DIR)/bin
172 endif