summaryrefslogtreecommitdiffstats
path: root/src/modules/rlm_eap/radeapclient.mk
blob: 6068f548137700ab8705f246e53d1ad55be82861 (plain)
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
TARGET   := radeapclient
SOURCES := radeapclient.c

SOURCES += ${top_srcdir}/src/main/files.c \
	   ${top_srcdir}/src/main/threads.c \
	   ${top_srcdir}/src/main/version.c

TGT_PREREQS := libfreeradius-radius.a libfreeradius-server.a
TGT_LDLIBS  := $(LIBS)

#
#  For future work, if we want radeapclient to become radclient
#
ifneq "$(filter libfreeradius-eap%,${ALL_TGTS})" ""
TGT_PREREQS += libfreeradius-eap.a

ifneq ($(OPENSSL_LIBS),)
SOURCES += ${top_srcdir}/src/main/cb.c ${top_srcdir}/src/main/tls.c
TGT_LDLIBS  += $(OPENSSL_LIBS)
endif

SRC_CFLAGS += -DWITH_EAPCLIENT
SRC_INCDIRS  := ${top_srcdir}/src/modules/rlm_eap/libeap

ifneq ($(MAKECMDGOALS),scan)
SRC_CFLAGS	+= -DBUILT_WITH_CPPFLAGS=\"$(CPPFLAGS)\" -DBUILT_WITH_CFLAGS=\"$(CFLAGS)\" -DBUILT_WITH_LDFLAGS=\"$(LDFLAGS)\" -DBUILT_WITH_LIBS=\"$(LIBS)\"
endif

endif