NetBSD/usr.bin/eject/Makefile
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00

34 lines
628 B
Makefile

# $NetBSD: Makefile,v 1.9 2009/04/14 22:15:19 lukem Exp $
.include <bsd.own.mk>
.if !defined(SMALLPROG)
AMD_SUPPORT?=yes
.endif
PROG= eject
SRCS= eject.c
.if ${AMD_SUPPORT:Uno} == "yes"
IDIST= ${NETBSDSRCDIR}/external/bsd/am-utils/dist
LIBAMUOBJDIR!= cd ${IDIST}/../lib/libamu && ${PRINTOBJDIR}
.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
CPPFLAGS+= -I${IDIST}/../include
CPPFLAGS+= -I${LIBAMUOBJDIR}
.endif
LDADD+= -lutil
DPADD+= ${LIBUTIL}
.include <bsd.prog.mk>