9 SRCS = dict.c filters.c hash.c hmac.c hmacsha1.c isaac.c log.c \
10 misc.c missing.c md4.c md5.c print.c radius.c rbtree.c \
11 sha1.c snprintf.c strlcat.c strlcpy.c token.c udpfromto.c \
14 INCLUDES = ../include/radius.h ../include/libradius.h \
15 ../include/missing.h ../include/autoconf.h
17 CFLAGS += -D_LIBRADIUS -I$(top_builddir)/src
19 # if you have problems with things that need SHA1-HMAC, this will
20 # dump the key and the input to the hash so you can compare to what
21 # the other end is doing.
22 CFLAGS += -DHMAC_SHA1_DATA_PROBLEMS
24 TARGET=$(LIBPREFIX)radius
28 STATIC_OBJS = $(SRCS:.c=.o)
29 DYNAMIC_OBJS = $(SRCS:.c=.lo)
31 $(STATIC_OBJS): $(INCLUDES)
32 $(DYNAMIC_OBJS): $(INCLUDES)
34 #######################################################################
38 #######################################################################
40 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $< -o $@
43 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
46 ifneq ($(USE_SHARED_LIBS),yes)
50 $(TARGET).la: $(DYNAMIC_OBJS)
51 $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
52 $(LINK_MODE) $(CFLAGS) -o $@ -rpath $(libdir) $^ $(LCRYPT)
59 rm -f *.o *.lo $(TARGET).a $(TARGET).la
63 $(LIBTOOL) --mode=install $(INSTALL) -c \
64 $(TARGET).la $(R)$(libdir)/$(TARGET).la;
65 rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la;
66 ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la