2006-11-11 17:00:56 +03:00
|
|
|
# $NetBSD: Makefile,v 1.22 2006/11/11 14:00:56 dsl Exp $
|
2001-12-12 03:51:00 +03:00
|
|
|
|
|
|
|
NOLINT= # defined
|
2000-12-30 20:21:44 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-08-19 13:41:27 +04:00
|
|
|
DIST= ${NETBSDSRCDIR}/crypto/dist
|
2001-12-12 03:51:00 +03:00
|
|
|
.PATH: ${DIST}/heimdal/lib/kadm5
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
WARNS?= 1
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
LIB= kadm5clnt
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2006-03-18 00:43:16 +03:00
|
|
|
LIBDPLIBS= krb5 ${.CURDIR}/../libkrb5 \
|
|
|
|
hdb ${.CURDIR}/../libhdb \
|
|
|
|
roken ${.CURDIR}/../libroken
|
|
|
|
|
2001-10-31 19:15:00 +03:00
|
|
|
.if ${USETOOLS} != "yes"
|
2003-07-10 14:33:58 +04:00
|
|
|
COMPILEETOBJ!= cd ${NETBSDSRCDIR}/lib/libcom_err/compile_et && ${PRINTOBJDIR}
|
|
|
|
TOOL_COMPILE_ET= ${COMPILEETOBJ}/compile_et
|
2001-09-22 02:58:59 +04:00
|
|
|
.endif
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2003-07-10 14:33:58 +04:00
|
|
|
kadm5_err.c kadm5_err.h: kadm5_err.et ${TOOL_COMPILE_ET}
|
|
|
|
${TOOL_COMPILE_ET} ${DIST}/heimdal/lib/kadm5/kadm5_err.et
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2006-11-11 17:00:56 +03:00
|
|
|
ERR_FILES= kadm5_err.c
|
|
|
|
DPSRCS+= kadm5_err.h
|
|
|
|
CLEANFILES+= kadm5_err.h kadm5_err.c
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
SRCS = \
|
|
|
|
chpass_c.c \
|
|
|
|
common_glue.c \
|
2001-02-07 13:36:38 +03:00
|
|
|
client_glue.c \
|
2000-06-16 23:27:31 +04:00
|
|
|
create_c.c \
|
|
|
|
delete_c.c \
|
|
|
|
destroy_c.c \
|
|
|
|
flush_c.c \
|
|
|
|
free.c \
|
|
|
|
get_c.c \
|
|
|
|
get_princs_c.c \
|
|
|
|
init_c.c \
|
|
|
|
kadm5_err.c \
|
|
|
|
marshall.c \
|
|
|
|
modify_c.c \
|
|
|
|
privs_c.c \
|
|
|
|
randkey_c.c \
|
|
|
|
rename_c.c \
|
|
|
|
send_recv.c \
|
2001-02-11 21:02:04 +03:00
|
|
|
client_glue.c \
|
2000-06-16 23:27:31 +04:00
|
|
|
$(ERR_FILES)
|
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
INCS= kadm5_err.h admin.h kadm5-protos.h private.h kadm5-private.h
|
|
|
|
INCSDIR= /usr/include/kadm5
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2002-08-19 17:35:05 +04:00
|
|
|
ASN1!= cd ${NETBSDSRCDIR}/lib/libasn1 && ${PRINTOBJDIR}
|
|
|
|
KRB5!= cd ${NETBSDSRCDIR}/lib/libkrb5 && ${PRINTOBJDIR}
|
|
|
|
HDB!= cd ${NETBSDSRCDIR}/lib/libhdb && ${PRINTOBJDIR}
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
CPPFLAGS+= -I. \
|
|
|
|
-I${ASN1} \
|
|
|
|
-I${KRB5} \
|
|
|
|
-I${DIST}/heimdal/lib/krb5 \
|
|
|
|
-I${DIST}/heimdal/lib/asn1 \
|
|
|
|
-I${HDB} \
|
|
|
|
-I${DIST}/heimdal/lib/hdb \
|
|
|
|
-I${DIST}/heimdal/lib/asn1 \
|
|
|
|
-I${DIST}/heimdal/lib/com_err \
|
2002-08-19 13:41:27 +04:00
|
|
|
-I${NETBSDSRCDIR}/include/heimdal \
|
|
|
|
-I${NETBSDSRCDIR}/lib/libroken \
|
2000-06-16 23:27:31 +04:00
|
|
|
-I${DIST}/heimdal/lib/roken \
|
|
|
|
-DHAVE_CONFIG_H
|
|
|
|
|
2005-01-10 06:11:17 +03:00
|
|
|
.if (${USE_INET6} != "no")
|
|
|
|
CPPFLAGS+=-DHAVE_IPV6
|
|
|
|
.endif
|
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
${SRCS:.c=.o}: kadm5_err.h
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
CLEANFILES= kadm5_err.h kadm5_err.c
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2000-06-21 09:43:50 +04:00
|
|
|
# Prevent collision with old MIT Kerberos includes -- require manual
|
|
|
|
# intervention of the operator.
|
|
|
|
.BEGIN:
|
|
|
|
.ifmake includes
|
|
|
|
@if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \
|
|
|
|
echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
|
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
2006-05-12 03:16:28 +04:00
|
|
|
.if ${HAVE_GCC} == 4
|
|
|
|
COPTS.marshall.c+= -Wno-pointer-sign
|
|
|
|
.endif
|
|
|
|
|
2000-06-16 23:27:31 +04:00
|
|
|
.include <bsd.lib.mk>
|