X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Flib%2FMakefile;h=25572015cd7fb5997823c899bef23109ee0e6891;hb=df38586ae7d06ffc50a7b6d115b95797f61fca16;hp=792a3d98834add1bb549b76e7891499e91c0c5c5;hpb=5a1879ed76a9fe8759493d174bb95d6f0f583342;p=freeradius.git diff --git a/src/lib/Makefile b/src/lib/Makefile index 792a3d9..2557201 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -6,22 +6,24 @@ include ../../Make.inc -SRCS = crypt.c dict.c filters.c hash.c hmac.c hmacsha1.c \ - isaac.c log.c misc.c missing.c md4.c md5.c print.c \ - radius.c rbtree.c sha1.c snprintf.c token.c udpfromto.c \ - valuepair.c +SRCS = dict.c filters.c hash.c hmac.c hmacsha1.c isaac.c log.c \ + misc.c missing.c md4.c md5.c print.c radius.c rbtree.c \ + sha1.c snprintf.c strlcat.c strlcpy.c token.c udpfromto.c \ + valuepair.c fifo.c packet.c event.c getaddrinfo.c vqp.c \ + heap.c dhcp.c tcp.c LT_OBJS = $(SRCS:.c=.lo) INCLUDES = ../include/radius.h ../include/libradius.h \ - ../include/missing.h ../include/autoconf.h + ../include/missing.h ../include/autoconf.h \ + ../include/ident.h -CFLAGS += -D_LIBRADIUS -I../include +CFLAGS += -D_LIBRADIUS -I$(top_builddir)/src # if you have problems with things that need SHA1-HMAC, this will # dump the key and the input to the hash so you can compare to what # the other end is doing. -CFLAGS += -DHMAC_SHA1_DATA_PROBLEMS +#CFLAGS += -DHMAC_SHA1_DATA_PROBLEMS ifeq ($(USE_SHARED_LIBS),yes) LINK_MODE = -export-dynamic @@ -29,17 +31,18 @@ else LINK_MODE = -static endif -TARGET = $(LIBPREFIX)radius +TARGET = $(LIBPREFIX)freeradius-radius # Define new rule for libtool objects %.lo : %.c $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $< +.PHONY: all clean install reconfig all: $(TARGET).la $(TARGET).la: $(LT_OBJS) $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \ - $(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^ $(LCRYPT) + $(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^ $(LT_OBJS): $(INCLUDES) @@ -48,6 +51,10 @@ clean: rm -rf .libs install: all - $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la $(R)$(libdir) + $(INSTALL) -d -m 755 $(R)$(libdir) + $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la \ + $(R)$(libdir)/$(TARGET).la rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la; ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la + +reconfig: