6 SRCS = rlm_eap.c eap.c mem.c state.c
7 HEADERS = eap.h rlm_eap.h
8 RLM_CFLAGS = $(INCLTDL) -Ilibeap
9 CLIENTLIBS = libeap/libeap.la
10 RLM_LIBS = libeap/libeap.la $(LIBLTDL)
11 RLM_INSTALL = install-subdirs
12 RLM_SUBDIRS = libeap @eaptypes@
13 RLM_UTILS = radeapclient
16 # Not using shared libraries, add in ALL known static modules
19 #ifneq ($(USE_SHARED_LIBS),yes)
20 #RLM_LIBS += $(shell for x in types/rlm_eap*/rlm_eap*.la;do echo -dlpreopen $$x;done)
23 .PHONY: all install-subdirs common
26 # We need libeap.la before we can build anything else
30 $(LT_OBJS): $(HEADERS)
32 radeapclient: radeapclient.lo $(CLIENTLIBS)
33 $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) -o radeapclient radeapclient.lo $(CLIENTLIBS) $(LIBS) $(OPENSSL_LIBS)
35 radeapclient.lo: radeapclient.c $(HEADERS)
36 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(RLM_CFLAGS) -c radeapclient.c
39 @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=install common
40 $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) radeapclient$(EXEEXT) $(R)$(bindir)
43 @for dir in $(RLM_SUBDIRS); do \
44 echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
45 $(MAKE) $(MFLAGS) -C $$dir $(WHAT_TO_MAKE) || exit $$?; \
48 ## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.