summaryrefslogtreecommitdiff
path: root/crypto/external/bsd/heimdal/lib/libvers/Makefile
blob: d3307aac59d84e177e57e86636b5d9726c4c262d (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
# $NetBSD: Makefile,v 1.2 2011/08/28 11:20:16 elric Exp $

NOLINKLIB=	# defined
NOPIC=		# defined
NOPROFILE=	# defined

.include <bsd.own.mk>
.include <${.CURDIR}/../../Makefile.inc>

.PATH:		${HEIMDIST}/lib/vers

LIB=		vers

includes: print_version.h

SRCS=		print_version.c
DPSRCS=		print_version.h
 
HOST_CPPFLAGS+=	-I${HEIMBASE}/include -DHAVE_CONFIG_H

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

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

print_version.h: make-print-version
	${_MKTARGET_CREATE}
	./make-print-version print_version.h

print_version.o print_version.ln: print_version.h

CLEANFILES+=	print_version.h make-print-version make-print-version.lo
 
.include <${HEIMBASE}/Makefile.rules.inc>
.include <bsd.lib.mk>