2009-04-15 02:15:16 +04:00
|
|
|
# $NetBSD: Makefile,v 1.9 2009/04/14 22:15:19 lukem Exp $
|
2009-01-16 20:31:22 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2009-03-28 15:19:51 +03:00
|
|
|
.if !defined(SMALLPROG)
|
2009-03-23 07:00:44 +03:00
|
|
|
AMD_SUPPORT?=yes
|
2009-03-28 15:19:51 +03:00
|
|
|
.endif
|
1995-10-22 19:48:52 +03:00
|
|
|
|
|
|
|
PROG= eject
|
|
|
|
SRCS= eject.c
|
|
|
|
|
2009-01-16 20:31:22 +03:00
|
|
|
.if ${AMD_SUPPORT:Uno} == "yes"
|
2009-03-23 07:00:44 +03:00
|
|
|
IDIST= ${NETBSDSRCDIR}/external/bsd/am-utils/dist
|
|
|
|
LIBAMUOBJDIR!= cd ${IDIST}/../lib/libamu && ${PRINTOBJDIR}
|
|
|
|
|
2009-01-16 20:31:22 +03:00
|
|
|
.PATH: ${IDIST}/libamu
|
|
|
|
|
|
|
|
SRCS+= am_glue.c
|
|
|
|
SRCS+= nfs_prot_xdr.c
|
|
|
|
|
|
|
|
CPPFLAGS+= -DAMD_SUPPORT
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H
|
|
|
|
CPPFLAGS+= -I${IDIST}
|
|
|
|
CPPFLAGS+= -I${IDIST}/libamu
|
|
|
|
CPPFLAGS+= -I${IDIST}/include
|
2009-03-23 07:00:44 +03:00
|
|
|
CPPFLAGS+= -I${IDIST}/../include
|
|
|
|
CPPFLAGS+= -I${LIBAMUOBJDIR}
|
2009-01-16 20:31:22 +03:00
|
|
|
.endif
|
|
|
|
|
2001-08-20 12:21:09 +04:00
|
|
|
LDADD+= -lutil
|
|
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
|
1995-10-22 19:48:52 +03:00
|
|
|
.include <bsd.prog.mk>
|