1#	$NetBSD: Makefile,v 1.4 2012/08/10 16:10:29 joerg Exp $
2
3NOLINKLIB=	# defined
4
5.include <bsd.own.mk>
6
7LIB=	amu
8
9LIBAMUOBJDIR!=cd ${.CURDIR}/../../lib/libamu && ${PRINTOBJDIR}
10
11.include "${.CURDIR}/../../Makefile.inc"
12
13DIST=	${IDIST}/libamu
14.PATH:	${DIST} ${IDIST}/conf/mtab ${IDIST}/conf/transp ${IDIST}/conf/umount
15
16SRCS=	hasmntopt.c misc_rpc.c mount_fs.c mtab.c mtab_bsd.c \
17	nfs_prot_xdr.c strutil.c transp_sockets.c ualarm.c umount_bsd44.c \
18	wire.c xdr_func.c xutil.c
19
20# XXX
21.if defined(HAVE_GCC) || defined(HAVE_LLVM)
22COPTS.xdr_func.c+=	-fno-strict-aliasing
23.endif
24
25# some host specific compile time settings amd wants to have compiled in
26config_local.h: mkconf
27	${_MKTARGET_CREATE}
28	rm -f ${.TARGET}
29	${HOST_SH} ${.ALLSRC} \
30	    `${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh` > ${.TARGET}
31
32CLEANFILES+=	config_local.h
33
34.include <bsd.lib.mk>
35
36${SRCS}: config_local.h
37