summaryrefslogtreecommitdiff
path: root/lib/libcom_err/compile_et/Makefile
blob: 169823fef9858c9af9b3cd1a4ffd3397f5dfd80a (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
# $NetBSD: Makefile,v 1.17 2006/03/20 21:20:59 christos Exp $

NOMAN=		# defined

.include <bsd.own.mk>

DIST=		${NETBSDSRCDIR}/crypto/dist

.PATH: ${DIST}/heimdal/lib/com_err ${DIST}/heimdal/lib/roken ${DIST}/heimdal/lib/vers

HOSTPROG= compile_et

SRCS+=	compile_et.c parse.y lex.l \
	getarg.c print_version.c warnerr.c strupr.c get_window_size.c

YHEADER=	# defined

BINDIR=		/usr/bin

LIBROKEN!=	cd ${NETBSDSRCDIR}/lib/libroken && ${PRINTOBJDIR}

HOST_CPPFLAGS+= -I.				\
	 -I${NETBSDSRCDIR}/include/heimdal	\
	 -I${LIBROKEN}				\
	 -I${DIST}/heimdal/lib/com_err		\
	 -I${DIST}/heimdal/lib/roken		\
	 -DKRB5=1				\
	 -DHAVE_CONFIG_H

.if (${USE_INET6} != "no")
HOST_CPPFLAGS+=-DHAVE_IPV6
.endif

DPSRCS=		print_version.h

make-print-version.lo: ${NETBSDSRCDIR}/include/heimdal/version.h

make-print-version: make-print-version.lo
	${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC}

print_version.h: make-print-version
	./make-print-version print_version.h

CLEANFILES+=	print_version.h make-print-version make-print-version.lo

.include <bsd.hostprog.mk>