This repository has been archived by the owner on Apr 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
70 lines (52 loc) · 2.21 KB
/
Makefile.am
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
# Copyright (C) 2014-2015 Cryptotronix, LLC.
# This file is part of libjosec.
# libjosec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
# libjosec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
# along with libjosec. If not, see <http://www.gnu.org/licenses/>.
SUBDIRS = lib . test
AUTOMAKE_OPTIONS = subdir-objects
AM_CFLAGS = -DDATA_DIR=\"$(pkgdatadir)\"
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
libjosec_la_CPPFLAGS = $(CRYPTO_CFLAGS) $(OPENSSL_CFLAGS) \
$(YACL_CFLAGS) $(JANSSON_CFLAGS) \
-I$(top_srcdir)/lib $(LIBGCRYPT_CFLAGS)
libjosec_la_LIBADD = $(CRYPTO_LIBS) $(OPENSSL_LIBS) \
$(YACL_LIBS) $(JANSSON_LIBS) \
lib/libgnu.la $(LIBGCRYPT_LIBS)
if BUILD_TOOLS
bin_PROGRAMS = jwt-decode
jwt_decode_SOURCES = src/tools/jwt_decode.c
jwt_decode_CFLAGS = $(JANSSON_CFLAGS) -I$(top_srcdir)/lib
jwt_decode_LDADD = libjosec.la $(JANSSON_LIBS) lib/libgnu.la
endif
lib_LTLIBRARIES = libjosec.la
libjosec_la_SOURCES = src/jwt.c \
src/jwk.c \
src/base64url.c \
src/jws.c \
src/context.c \
src/hs256.c \
src/soft_crypto.c \
src/base64url.h \
src/hs256.h \
src/jwa.h \
src/jwk.h \
src/jws.h \
src/jwt.h \
src/soft_crypto.h \
src/jwa.c \
src/jwe.c
libjosec_la_LDFLAGS = -version-info $(JOSEC_SO_VERSION) -release $(JOSEC_API_VERSION)
josec_includedir = $(includedir)/josec-$(JOSEC_API_VERSION)
nobase_josec_include_HEADERS = libjosec.h
josec_libincludedir = $(libdir)/josec-$(JOSEC_API_VERSION)/include
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = josec.pc
dist_noinst_SCRIPTS = autogen.sh install-sh