1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
JWT_SRC = \
src/jose/apr_jwt.c \
src/jose/apr_jwk.c \
src/jose/apr_jws.c \
src/jose/apr_jwe.c
JWT_HDRS = \
src/jose/apr_jose.h
# Source files. mod_auth_openidc.c must be the first file.
SRC=src/mod_auth_openidc.c \
src/cache/file.c \
src/cache/memcache.c \
src/cache/shm.c \
src/cache/lock.c \
src/oauth.c \
src/proto.c \
src/crypto.c \
src/config.c \
src/util.c \
src/authz.c \
src/session.c \
src/metadata.c \
$(JWT_SRC)
ifeq (@HAVE_LIBHIREDIS@, 1)
SRC += \
src/cache/redis.c
REDIS_CFLAGS=-DUSE_LIBHIREDIS @HIREDIS_CFLAGS@
REDIS_LIBS=@HIREDIS_LIBS@
endif
HDRS = \
$(JWT_HDRS) \
src/mod_auth_openidc.h \
src/cache/cache.h
# Files to include when making a .tar.gz-file for distribution
DISTFILES=$(SRC) \
$(HDRS) \
test/test.c \
test/stub.c \
configure \
configure.ac \
Makefile.in \
autogen.sh \
INSTALL \
README.md \
AUTHORS \
DISCLAIMER \
auth_openidc.conf \
LICENSE.txt \
ChangeLog
all: src/mod_auth_openidc.la
CFLAGS=@OPENSSL_CFLAGS@ @CURL_CFLAGS@ @JANSSON_CFLAGS@ @PCRE_CFLAGS@ $(REDIS_CFLAGS)
LIBS=@OPENSSL_LIBS@ @CURL_LIBS@ @JANSSON_LIBS@ @PCRE_LIBS@ $(REDIS_LIBS)
src/mod_auth_openidc.la: $(SRC) $(HDRS)
@APXS2@ @APXS2_OPTS@ -Wc,"-DNAMEVER=\"@NAMEVER@\" $(CFLAGS)" -Wl,"$(LIBS)" -Wc,-Wall -Wc,-g -c $(SRC)
configure: configure.ac
./autogen.sh
@NAMEVER@.tar.gz: $(DISTFILES)
tar -c --transform="s#^#@NAMEVER@/#" -vzf $@ $(DISTFILES)
test/test: test/*.c src/mod_auth_openidc.la
@APXS2@ @APXS2_OPTS@ $(CFLAGS) -Wl,"$(LIBS)" -Isrc -Wc,-Wall -Wc,-g -c -o $@ test/*.c $(SRC:.c=.lo) @APR_LIBS@
test-compile: test/test
test: test-compile
test/test
.PHONY: install
install: src/mod_auth_openidc.la
@APXS2@ @APXS2_OPTS@ -i -n mod_auth_openidc src/mod_auth_openidc.la
.PHONY: distfile
distfile: @NAMEVER@.tar.gz
.PHONY: clean
clean:
rm -f src/mod_auth_openidc.la
rm -f src/*.o src/cache/*.o src/jose/*.o test/*.o
rm -f src/*.lo src/cache/*.lo src/jose/*.lo test/*.lo
rm -f src/*.slo src/cache/*.slo src/jose/*.slo test/*.slo
rm -rf src/.libs/ src/cache/.libs/ src/jose/.libs/ test/.libs
rm -rf test/test
.PHONY: distclean
distclean: clean
rm -f Makefile config.log config.status @NAMEVER@.tar.gz *~ \
build-stamp config.guess config.sub
rm -rf debian/mod-auth_openidc
rm -f debian/files
.PHONY: fullclean
fullclean: distclean
rm -f configure aclocal.m4
|