Whamcloud - gitweb
LU-16977 utils: access_log_reader accesses beyond batch array
[fs/lustre-release.git] / lustre / utils / gss / Makefile.am
1 # GSS daemons & tools Makefile
2
3 AM_CFLAGS := -fPIC \
4              -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 \
5              -D_GNU_SOURCE
6
7 sbin_PROGRAMS = l_idmap
8
9 if GSS_KEYRING
10 sbin_PROGRAMS += lsvcgssd lgss_keyring
11 if GSS_SSK
12 sbin_PROGRAMS += lgss_sk
13 endif
14 endif
15
16 COMMON_SRCS = \
17         context.c \
18         context_lucid.c \
19         context_mit.c \
20         context_heimdal.c \
21         context_spkm3.c \
22         gss_util.c \
23         gss_oids.c \
24         err_util.c \
25         lsupport.c \
26         \
27         context.h \
28         err_util.h \
29         gss_oids.h \
30         gss_util.h \
31         lsupport.h \
32         write_bytes.h
33
34 if GSS_SSK
35 COMMON_SRCS += sk_utils.h sk_utils.c
36 endif
37
38 lsvcgssd_SOURCES = \
39         $(COMMON_SRCS) \
40         cacheio.c \
41         svcgssd.c \
42         svcgssd_main_loop.c \
43         svcgssd_mech2file.c \
44         svcgssd_proc.c \
45         cacheio.h \
46         svcgssd.h
47
48 lsvcgssd_CFLAGS = $(AM_CFLAGS) $(CFLAGS) $(KRBCFLAGS)
49 lsvcgssd_LDADD = $(top_builddir)/lustre/utils/liblustreapi.la $(GSSAPI_LIBS) $(KRBLIBS) -lkeyutils -lm
50 lsvcgssd_LDFLAGS = $(KRBLDFLAGS)
51 if GSS_SSK
52 lsvcgssd_LDADD += -lcrypto -lssl
53 endif
54
55 l_idmap_SOURCES = \
56         l_idmap.c \
57         lsupport.c \
58         err_util.c \
59         \
60         lsupport.h
61
62 l_idmap_LDADD = $(top_builddir)/lustre/utils/liblustreapi.la
63
64 lgss_keyring_SOURCES = \
65         lgss_keyring.c \
66         context.c \
67         context_lucid.c \
68         context_mit.c \
69         context_heimdal.c \
70         lgss_krb5_utils.c \
71         lgss_null_utils.c \
72         lgss_utils.c \
73         lsupport.c \
74         err_util.c \
75         lgss_krb5_utils.h \
76         lgss_utils.h \
77         err_util.h \
78         lsupport.h
79
80 lgss_keyring_CFLAGS = $(AM_CFLAGS) $(CFLAGS) $(KRBCFLAGS) -D _NEW_BUILD_
81 lgss_keyring_LDADD = $(top_builddir)/lustre/utils/liblustreapi.la $(GSSAPI_LIBS) $(KRBLIBS) -lm -lkeyutils
82 lgss_keyring_LDFLAGS = $(KRBLDFLAGS)
83
84 if GSS_SSK
85 lgss_keyring_SOURCES += sk_utils.c sk_utils.h lgss_sk_utils.c
86 lgss_keyring_LDADD += -lcrypto -lssl
87
88 lgss_sk_SOURCES = \
89         lgss_sk.c \
90         err_util.c \
91         sk_utils.c \
92         sk_utils.h
93
94 lgss_sk_CFLAGS = $(AM_CFLAGS) $(CFLAGS) $(KRBCFLAGS)
95 lgss_sk_LDADD = $(top_builddir)/lustre/utils/liblustreapi.la $(GSSAPI_LIBS) $(KRBLIBS) -lcrypto -lssl -lm -lkeyutils
96 lgss_sk_LDFLAGS = $(KRBLDFLAGS)
97 endif
98
99 EXTRA_DIST =