summaryrefslogtreecommitdiffstats
path: root/src/util/gss-kernel-lib/Makefile.in
blob: 6bf904ea9915a69a24ee295abf0520245105f165 (plain)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
mydir=util/gss-kernel-lib
BUILDTOP=$(REL)..$(S)..

KRB5_RUN_ENV=@KRB5_RUN_ENV@

DEFINES=-DKRB5_KERNEL
ALL_CFLAGS=$(CFLAGS) $(DEFS) $(DEFINES) -I. -Igssapi
PROG_LIBPATH=-L$(TOPLIBD)

SHLIB_EXPDEPS = \
	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \
	$(TOPLIBD)/libkrb5$(SHLIBEXT)
SHLIB_EXPLIBS=-lgssrpc -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB) $(LIBS)

STOBJLISTS=OBJS.ST

SRCS= \
	kernel_gss.c \
	k5seal.c \
	k5sealiov.c \
	k5unseal.c \
	k5unsealiov.c \
	k5sealv3.c \
	k5sealv3iov.c \
	util_cksum.c \
	util_crypt.c \
	util_seqnum.c \
	util_seed.c \
	util_token.c \
	util_set.c \
	util_ordering.c

EXTRADEPSRCS= t_kgss_common.c t_kgss_user.c t_kgss_kernel.c

OBJS= \
	kernel_gss.o \
	k5seal.o \
	k5sealiov.o \
	k5unseal.o \
	k5unsealiov.o \
	k5sealv3.o \
	k5sealv3iov.o \
	util_cksum.o \
	util_crypt.o \
	util_seqnum.o \
	util_seed.o \
	util_token.o \
	util_set.o \
	util_ordering.o

HEADERS= \
	gssapi/gssapi.h \
	gssapi/gssapi_krb5.h \
	gssapi/gssapi_ext.h \
	gssapi.h \
	gssapiP_krb5.h \
	gssapi_err_krb5.h \
	gssapiP_generic.h \
	gssapi_generic.h \
	gssapi_err_generic.h \
	k5-int.h \
	k5-int-pkinit.h \
	k5-thread.h \
	k5-platform.h \
	k5-buf.h \
	k5-trace.h \
	k5-err.h \
	k5-plugin.h \
	k5-gmt_mktime.h \
	krb5.h \
	osconf.h \
	autoconf.h \
	port-sockets.h \
	socket-utils.h \
	krb5/krb5.h \
	krb5/plugin.h \
	krb5/preauth_plugin.h \
	krb5/authdata_plugin.h \
	profile.h \
	$(MAYBE_COMERR_@COM_ERR_VERSION@)

MAYBE_COMERR_k5 = com_err.h
MAYBE_COMERR_sys =

check-pytests:: t_kgss_user t_kgss_kernel
	$(RUNPYTEST) $(srcdir)/t_kgss.py $(PYTESTFLAGS)

libkgss.a: $(OBJS)
	$(RM) $@
	$(AR) cq $@ $(OBJS)
	$(RANLIB) $@

t_kgss_user: t_kgss_user.o t_kgss_common.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o t_kgss_user t_kgss_user.o t_kgss_common.o $(GSS_LIBS) \
		$(KRB5_BASE_LIBS)

t_kgss_kernel: libkgss.a t_kgss_kernel.o t_kgss_common.o $(K5CRYPTO_DEPLIB)
	$(CC_LINK) -o $@ t_kgss_kernel.o t_kgss_common.o libkgss.a \
		$(K5CRYPTO_LIB)

depend:: $(SRCS) $(HEADERS)

clean::
	$(RM) $(SRCS) $(HEADERS) libkgss.a testlog OBJS.SH
	$(RM) -r gssapi krb5 testdir
	$(RM) t_kgss_user.o t_kgss_kernel.o t_kgss_common.o
	$(RM) t_kgss_user t_kgss_kernel

GSS_KRB5=$(top_srcdir)/lib/gssapi/krb5
GSS_KRB5_BUILD=$(BUILDTOP)/lib/gssapi/krb5
GSS_GENERIC=$(top_srcdir)/lib/gssapi/generic
GSS_GENERIC_BUILD=$(BUILDTOP)/lib/gssapi/generic
INCLUDE=$(top_srcdir)/include
INCLUDE_BUILD=$(BUILDTOP)/include

# Rules to copy sources from their real homes in the source or build tree.
# If we switch to requiring gnu make, we can use $(CP) $< $@ in these rules.
k5seal.c: $(GSS_KRB5)/k5seal.c
	$(CP) $(GSS_KRB5)/k5seal.c $@
k5sealiov.c: $(GSS_KRB5)/k5sealiov.c
	$(CP) $(GSS_KRB5)/k5sealiov.c $@
k5unseal.c: $(GSS_KRB5)/k5unseal.c
	$(CP) $(GSS_KRB5)/k5unseal.c $@
k5unsealiov.c: $(GSS_KRB5)/k5unsealiov.c
	$(CP) $(GSS_KRB5)/k5unsealiov.c $@
k5sealv3.c: $(GSS_KRB5)/k5sealv3.c
	$(CP) $(GSS_KRB5)/k5sealv3.c $@
k5sealv3iov.c: $(GSS_KRB5)/k5sealv3iov.c
	$(CP) $(GSS_KRB5)/k5sealv3iov.c $@
util_cksum.c: $(GSS_KRB5)/util_cksum.c
	$(CP) $(GSS_KRB5)/util_cksum.c $@
util_crypt.c: $(GSS_KRB5)/util_crypt.c
	$(CP) $(GSS_KRB5)/util_crypt.c $@
util_seqnum.c: $(GSS_KRB5)/util_seqnum.c
	$(CP) $(GSS_KRB5)/util_seqnum.c $@
util_seed.c: $(GSS_KRB5)/util_seed.c
	$(CP) $(GSS_KRB5)/util_seed.c $@
util_token.c: $(GSS_GENERIC)/util_token.c
	$(CP) $(GSS_GENERIC)/util_token.c $@
util_set.c: $(GSS_GENERIC)/util_set.c
	$(CP) $(GSS_GENERIC)/util_set.c $@
util_ordering.c: $(GSS_GENERIC)/util_ordering.c
	$(CP) $(GSS_GENERIC)/util_ordering.c $@

# Rules to copy headers from their real homes in the source or build tree.
gssapi.h: $(INCLUDE)/gssapi.h
	$(CP) $(INCLUDE)/gssapi.h $@
gssapi/gssapi.h: gssapi $(GSS_GENERIC_BUILD)/gssapi.h
	$(CP) $(GSS_GENERIC_BUILD)/gssapi.h $@
gssapi/gssapi_krb5.h: gssapi $(GSS_KRB5_BUILD)/gssapi_krb5.h
	$(CP) $(GSS_KRB5_BUILD)/gssapi_krb5.h $@
gssapi/gssapi_ext.h: gssapi $(GSS_GENERIC)/gssapi_ext.h
	$(CP) $(GSS_GENERIC)/gssapi_ext.h $@
gssapiP_krb5.h: $(GSS_KRB5)/gssapiP_krb5.h
	$(CP) $(GSS_KRB5)/gssapiP_krb5.h $@
gssapi_err_krb5.h: $(GSS_KRB5_BUILD)/gssapi_err_krb5.h
	$(CP) $(GSS_KRB5_BUILD)/gssapi_err_krb5.h $@
gssapiP_generic.h: $(GSS_GENERIC)/gssapiP_generic.h
	$(CP) $(GSS_GENERIC)/gssapiP_generic.h $@
gssapi_generic.h: $(GSS_GENERIC)/gssapi_generic.h
	$(CP) $(GSS_GENERIC)/gssapi_generic.h $@
gssapi_err_generic.h: $(GSS_GENERIC_BUILD)/gssapi_err_generic.h
	$(CP) $(GSS_GENERIC_BUILD)/gssapi_err_generic.h $@
k5-int.h: $(INCLUDE)/k5-int.h
	$(CP) $(INCLUDE)/k5-int.h $@
k5-int-pkinit.h: $(INCLUDE)/k5-int-pkinit.h
	$(CP) $(INCLUDE)/k5-int-pkinit.h $@
k5-thread.h: $(INCLUDE)/k5-thread.h
	$(CP) $(INCLUDE)/k5-thread.h $@
k5-platform.h: $(INCLUDE)/k5-platform.h
	$(CP) $(INCLUDE)/k5-platform.h $@
k5-buf.h: $(INCLUDE)/k5-buf.h
	$(CP) $(INCLUDE)/k5-buf.h $@
k5-trace.h: $(INCLUDE)/k5-trace.h
	$(CP) $(INCLUDE)/k5-trace.h $@
k5-err.h: $(INCLUDE)/k5-err.h
	$(CP) $(INCLUDE)/k5-err.h $@
k5-plugin.h: $(INCLUDE)/k5-plugin.h
	$(CP) $(INCLUDE)/k5-plugin.h $@
k5-gmt_mktime.h: $(INCLUDE)/k5-gmt_mktime.h
	$(CP) $(INCLUDE)/k5-gmt_mktime.h $@
krb5.h: $(INCLUDE)/krb5.h
	$(CP) $(INCLUDE)/krb5.h $@
osconf.h: $(INCLUDE_BUILD)/osconf.h
	$(CP) $(INCLUDE_BUILD)/osconf.h $@
autoconf.h: $(INCLUDE_BUILD)/autoconf.h
	$(CP) $(INCLUDE_BUILD)/autoconf.h $@
port-sockets.h: $(INCLUDE)/port-sockets.h
	$(CP) $(INCLUDE)/port-sockets.h $@
socket-utils.h: $(INCLUDE)/socket-utils.h
	$(CP) $(INCLUDE)/socket-utils.h $@
krb5/krb5.h: krb5 $(INCLUDE_BUILD)/krb5/krb5.h
	$(CP) $(INCLUDE_BUILD)/krb5/krb5.h $@
krb5/plugin.h: krb5 $(INCLUDE)/krb5/plugin.h
	$(CP) $(INCLUDE)/krb5/plugin.h $@
krb5/preauth_plugin.h: krb5 $(INCLUDE)/krb5/preauth_plugin.h
	$(CP) $(INCLUDE)/krb5/preauth_plugin.h $@
krb5/authdata_plugin.h: krb5 $(INCLUDE)/krb5/authdata_plugin.h
	$(CP) $(INCLUDE)/krb5/authdata_plugin.h $@
profile.h: $(INCLUDE_BUILD)/profile.h
	$(CP) $(INCLUDE_BUILD)/profile.h $@
com_err.h: $(INCLUDE_BUILD)/com_err.h
	$(CP) $(INCLUDE_BUILD)/com_err.h $@

gssapi:
	test -d gssapi || mkdir gssapi
krb5:
	test -d krb5 || mkdir krb5

LIBBASE=kgss
LIBMAJOR=1
LIBMINOR=0

LIBINITFUNC=
LIBFINIFUNC=