4 .PHONY: all clean install
5 all: libnetworkradius-client.a
7 SRCS := dict.c attrs.c packet.c valuepair.c static.c id.c \
8 crypto.c custom.c print.c parse.c
12 HEADERS := client.h radius.h
14 CFLAGS := -I. -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
17 NAME := networkradius-client-$(VERSION)
21 # The DICTIONARIES variable can be used to point to the FreeRADIUS
24 ifeq "${DICTIONARIES}" ""
25 DICTIONARIES := $(filter-out %~,$(wildcard share/dictionary*))
30 radius.h dictionaries.c: ${DICTIONARIES} convert.pl common.pl
31 ./convert.pl ${DICTIONARIES}
33 static.o: static.c dictionaries.c
40 .PHONY: networkradius-devel
42 @[ -e $@ ] || ln -s . $@
44 libnetworkradius-client.a: ${OBJS}
45 ${AR} ${ARFLAGS} $@ $^
47 LIBS := -lcrypto -lssl
48 LDFLAGS = -L. -lnetworkradius-client
55 @rm -rf *.o *.a *~ html
57 install: libnetworkradius-client.a
61 @scp -r html/* networkradius.com@liberty:www.new/site/clientapi/
63 $(NAME).tar.gz: $(wildcard Makefile *.pl *.txt *.[ch] \
64 examples/*.[ch] doc/*.txt share/dictionary*)
65 git archive --format=tar --prefix=$(NAME)/ bsd | gzip > $@