4 SRCS = dict.c print.c radius.c valuepair.c token.c misc.c \
5 log.c filters.c missing.c md4.c md5.c sha1.c \
6 hmac.c hmacsha1.c snprintf.c isaac.c \
9 INCLUDES = ../include/radius.h ../include/libradius.h \
10 ../include/missing.h ../include/autoconf.h
12 CFLAGS += -D_LIBRADIUS -I../include
14 # if you have problems with things that need SHA1-HMAC, this will
15 # dump the key and the input to the hash so you can compare to what
16 # the other end is doing.
17 CFLAGS += -DHMAC_SHA1_DATA_PROBLEMS
19 TARGET=$(LIBPREFIX)radius
23 STATIC_OBJS = $(SRCS:.c=.o)
24 DYNAMIC_OBJS = $(SRCS:.c=.lo)
26 $(STATIC_OBJS): $(INCLUDES)
27 $(DYNAMIC_OBJS): $(INCLUDES)
29 #######################################################################
33 #######################################################################
35 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $< -o $@
38 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
41 ifneq ($(USE_SHARED_LIBS),yes)
45 $(TARGET).la: $(DYNAMIC_OBJS)
46 $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
47 $(LINK_MODE) $(CFLAGS) -o $@ -rpath $(libdir) $^ $(LCRYPT)
54 rm -f *.o *.lo $(TARGET).a $(TARGET).la
58 $(LIBTOOL) --mode=install $(INSTALL) -c \
59 $(TARGET).la $(R)$(libdir)/$(TARGET).la;
60 rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la;
61 ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la