~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#######################################################################
#
# TARGET should be set by autoconf only.  Don't touch it.
#
# The SRCS definition should list ALL source files.
#
# The HEADERS definition should list ALL header files
#
# RLM_CFLAGS defines addition C compiler flags.  You usually don't
# want to modify this, though.  Get it from autoconf.
#
# The RLM_LIBS definition should list ALL required libraries.
# These libraries really should be pulled from the 'config.mak'
# definitions, if at all possible.  These definitions are also
# echoed into another file in ../lib, where they're picked up by
# ../main/Makefile for building the version of the server with
# statically linked modules.  Get it from autoconf.
#
# RLM_INSTALL is the names of additional rules you need to install
# some particular portion of the module.  Usually, leave it blank.
#
#######################################################################
TARGET         = @targetname@
SRCS           = otp_rlm.c otp_util.c otp_radstate.c otp_x99.c otp_state.c
SRCS          += otp_site.c otp_pwe.c otp_log.c otp_cardops.c otp_hotp.c
HEADERS        = otp.h otp_rad.h otp_pwe.h otp_cardops.h
RLM_CFLAGS     = @otp_cflags@ $(OPENSSL_INCLUDE)
CARDOPS_LTLIBS = $(patsubst %.c,%.lo,$(wildcard cardops/*.c))
RLM_LIBS       = @otp_ldflags@ $(OPENSSL_LIBS) $(CARDOPS_LTLIBS)
RLM_SUBDIRS    = cardops

## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.
include ../rules.mak

# Not part of RLM_CFLAGS to avoid propagation to subdirs
CFLAGS     += -Wno-unused-label -Wno-cast-qual

$(LT_OBJS): $(HEADERS) $(CARDOPS_LTLIBS)

# Note: dynamic libs only
$(CARDOPS_LTLIBS) common:
	for dir in $(RLM_SUBDIRS); do \
		echo "Making $(WHAT_TO_MAKE) in $$dir ..."; \
		$(MAKE) $(MFLAGS) -C $$dir RLM_CFLAGS="$(RLM_CFLAGS)" $(WHAT_TO_MAKE) || exit $$?; \
	done